91
tatane
Re: XOOPS 2.6.0 Alpha 2 released for Testing
  • 2013/1/15 15:06

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello
I just put up on my local server the new version. My first test was the implementation of the menu module to see how it was displayed. Is there something to add to the theme for displaying menus created ?

Resized Image


Resized Image


Resized Image



92
tatane
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/9/11 12:11

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


if I only show top block right and bottom right, the block of lines are shifted left
Resized Image

Resized Image



93
tatane
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/9/7 17:29

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello,
Today many CMS use libraries such as Gravatar avatar
Would it be possible to integrate this system in version 2.6 Xoops ?



94
tatane
Re: XOOPS 2.6.0 Alpha 1 Testing
  • 2012/8/19 15:04

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Resized Image

1 - When there is no center block, the block is shifted right
2 - I do not see this option



95
tatane
Re: Roadmap 2.6.0 Discussion
  • 2012/8/17 7:04

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

mariane wrote:
Quote:
What do you mean?
You can do this now with the "blocks anywhere" hack.
(May need to update it for 2.5.5 if you are using the newest stable xoops)
You can go further with this with the block permissions to show a block or not on a page.

Block anywhere allows you to place a block anywhere in your theme, but what you can do if the module dosnt have a block? for example if you wish to show a quick contact us form in your footer, what is the best solution to do it with xoops? the module contact dosnt have a block.


it's exactly like mehttps://xoops.org/modules/newbb/viewtopic.php?post_id=348764#forumpost348764



96
tatane
Re: Roadmap 2.6.0 Discussion
  • 2012/8/15 7:16

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

redheadedrod wrote:

What do you mean?
You can do this now with the "blocks anywhere" hack.
(May need to update it for 2.5.5 if you are using the newest stable xoops)
You can go further with this with the block permissions to show a block or not on a page.



not, for example tried to contact the module footer! it is impossible. You understand?



97
tatane
Re: Roadmap 2.6.0 Discussion
  • 2012/8/14 11:13

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


The display system of content on xoops can not do whatever you want.

I faced some time ago in a display problem that I have also not been resolved: I wanted to incorporate this theme to xoops. Unfortunately I can not display one module per page. If for example I want to display in the contact module contact page I can not because xoops does not allow display modules separately.

Joomla allows it to display the modules to where we want.



98
tatane
Re: smarty
  • 2012/8/1 7:19

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I would like to xoops.org, display the number of comment in a tooltip
Resized Image



99
tatane
Re: smarty
  • 2012/7/31 13:39

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

irmtfan wrote:
dont be unhappy my friend.
fortunately, today i had time for you and it just take one hour to show you how you can remove at least this one hardcode.

1- in news/language/YOUR_LANG/main.php change the following:
// START hacked by irmtfan
define('_NW_ONECOMMENT',"comment");
// END hacked by irmtfan

define('_NW_BYTESMORE',"%s bytes more");
// START hacked by irmtfan
define('_NW_NUMCOMMENTS',"comments");
// END hacked by irmtfan


2- in news/class/class.newsstory.php change the following:
$morelink '';
        if ( 
$fullcount ) {
            
$morelink .= '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$this->storyid().'';
            
$morelink .= '">'._NW_READMORE.'</a>';
            
$morelink .= ' | '.sprintf(_NW_BYTESMORE,$totalcount);
            if (
XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
                
$morelink .= ' | ';
            }
        }
        if (
XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
            
$ccount $this->comments();
            
$morelink .= '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$this->storyid().'';
            
$morelink2 '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$this->storyid().'';
            if ( 
$ccount == ) {
                
$morelink .= '">'._NW_COMMENTS.'</a>';
            } else {
                if ( 
$fullcount ) {
                    
// START hacked by irmtfan
                    //if ( $ccount == 1 ) {
                    //    $morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">'._NW_ONECOMMENT.'</a>';
                    //} else {
                          
$morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">';
                    
//    $morelink .= sprintf(_NW_NUMCOMMENTS, $ccount);
                          
$morelink .= '</a>';
                    
//}
                
} else {
                    
//if ( $ccount == 1 ) {
                    //    $morelink .= '">'._NW_ONECOMMENT.'</a>';
                    //} else {
                        
$morelink .= '">';
                    
//    $morelink .= sprintf(_NW_NUMCOMMENTS, $ccount);
                        
$morelink .= '</a>';
                    
//}
                    // END hacked by irmtfan
                    
                
}
            }
        }
           
// START hacked by irmtfan
        
$story['numcomments'] = $ccount;
           
// END hacked by irmtfan
        
$story['morelink'] = $morelink;


3- then in news/templates/news_item.html change the following:
<!--  START hacked by irmtfan to remove num comments hard-code" -->
        <span class="
itemPermaLink"><{$story.morelink}> <{if $story.numcomments gt 0}> <{$story.numcomments}> <{if $story.numcomments gt 1}> <{$smarty.const._NW_NUMCOMMENTS}> <{else}> <{$smarty.const._NW_ONECOMMENT}> <{/if}> <{/if}></span>
        <!--  END hacked by irmtfan to remove num comments hard-code" 
-->


you can see the right way of doing that. One smarty variable should only used for one php variable.

Edit:
by the way, english language is weak in this point because it needs to add a "s" to make a countable word plural (1 comment and 2 comments) . in persian we dont have this obstacle! (comment=nazar and comments=nazar)

IMO the best way for localize it for languages like english is adding a "s" suffix that can be used in such a situation. eg:
for english:
define("_COUNT_SUFFIX","s");

for persian:
define("_COUNT_SUFFIX","");


Great would it be possible to put the byte into a smarty too?



100
tatane
Re: smarty
  • 2012/7/31 8:33

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


pity that the function has not been separated during the creation of the class




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 38 »



Login

Who's Online

215 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits