51
banned
Re: XOOPS eXtreme
  • 2005/12/12 2:51

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Looking at your website looks like that you've just cutted out inline editing, comments, and or notification.
After that you've probably set the right cache time to the various modules and smarty has do the rest.
As many peoples probably know: smarty is not what you can call 'fast and furious' with cache == 0.

@JMorris
Quote:
When page load statistics are under 0.5 seconds with minimal caching, a difference of +/- 0.25 seconds is not that noticeable.

This is totally wrong.
Is not noticeable for 'an user', IS noticeable for 10, 100, more users browsing your site at the same time.

banned,



52
banned
XoopsPageNav->renderNav($offset, $anchor)
  • 2005/12/6 1:20

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Hi, there
Today I was in need to pass an html anchor (#something) to XoopsPageNav, the easiest way was to pass it after the url generation, as the #anchors need to be at the end of an url string.
So, I've changed a little the renderNav function (only an $anchor added 4 times), maybe it can be usefull for someone or something - and maybe we can have a pagenav class that pass #anchors in future versions.
here the code..
function renderNav($offset 4, [color=FF0000]$anchor[/color])
    {
        
$ret '';
        if ( 
$this->total <= $this->perpage ) {
            return 
$ret;
        }
        
$total_pages ceil($this->total $this->perpage);
        if ( 
$total_pages ) {
            
$prev $this->current $this->perpage;
            if ( 
$prev >= ) {
                
$ret .= '<a href="'.$this->url.$prev.[color=FF0000]$anchor.[/color]'">«</a> ';
            }
            
$counter 1;
            
$current_page intval(floor(($this->current $this->perpage) / $this->perpage));
            while ( 
$counter <= $total_pages ) {
                if ( 
$counter == $current_page ) {
                    
$ret .= '<b>('.$counter.')</b> ';
                } elseif ( (
$counter $current_page-$offset && $counter $current_page $offset ) || $counter == || $counter == $total_pages ) {
                    if ( 
$counter == $total_pages && $current_page $total_pages $offset ) {
                        
$ret .= '... ';
                    }
                    
$ret .= '<a href="'.$this->url.(($counter 1) * $this->perpage).[color=FF0000]$anchor.[/color]'">'.$counter.'</a> ';
                    if ( 
$counter == && $current_page $offset ) {
                        
$ret .= '... ';
                    }
                }
                
$counter++;
            }
            
$next $this->current $this->perpage;
            if ( 
$this->total $next ) {
                
$ret .= '<a href="'.$this->url.$next.[color=FF0000]$anchor.[/color]'">»</a> ';
            }
        }
        return 
$ret;
    }


Note: the value passed is a complete html anchor, it mean that you need to pass '#anchor' instead of simply 'anchor'.
Maybe someone will need a modified version of this -> I'm looking at XXbit charset users..

banned,



53
banned
Re: Theme and relative Templates
  • 2005/6/27 16:37

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


>4) Enable "Update module templates from themes/yourtheme folder" in System Admin -> General Settings

This is a very Database killer, can't be possible in next releases (2.2, 2.4?) to 'hook' a certain theme to a certain template set?



54
banned
Re: True Antispam feature
  • 2005/6/21 18:49

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


There is a Smarty Function that can do this for you, methink is not an hard work to tweak with textsanitizer for do what you want

banned,



55
banned
Re: Xoops 2.2 release ?
  • 2005/6/18 17:59

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


in the CVS there is a 2.0.11 branch



56
banned
Re: replace new modules with originals
  • 2005/6/18 17:56

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Maybe is a simple typo problem, turn on the php debug and look at the module's installation page.

banned,



57
banned
Re: where is the comment page system ?
  • 2005/5/27 21:53

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Talking about the current comment system I've noticed that every comment item showed take up 3 database queries.

EG: 10 comment in a page == 30 queries

It looks like that permission are checked per comment and not per item id (example: news storyid)..
A little heavy, in my opinion.

banned,



58
banned
Re: Bad suprise on monday morning! Site hacked
  • 2005/5/17 12:42

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Blueangel,
The problem was on the server (I've a couple of sites on the same server.. a XOOPS one and a mambo one, I've got the problem on every site), not with Xoops.

the _strange_ thing that I've noticed on my xoops' website is that all files with .php .html .htm .shtml were overwritten with that iframe .. except the files in XOOPS_ROOT/modules/system/
(I've looked, also, on xoopsit.. same thing for you)

banned,



59
banned
Re: Using IPB without the plugin ?
  • 2005/5/17 12:32

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


With IPB you can automatically create a new XOOPS user when someone do a successful registration in the board and other things.

You only have to tweak with IPB_ROOT/modules/ipb_member_sync.php



60
banned
Re: Multi-sites - help me test it properly?
  • 2005/4/10 21:45

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Uhm, what about to share tables from different databases with same prefix?
For Example:
I've a MAIN website and various, minor, little useless sub-sites. These sub-sites have the same modules installed, these sites have to share only users, sessions, groups, avatars.. they don't have forums that is only on the main website(this is the heaviest section, right?).
But these sub-sites are 20 sub-sites. Take these sub-sites all in one single DB would mean have about 1200 tables.. too many for an easy administration.

So, it's possible to change the MySQL driver for share tables from differents DB with the same table-prefix?
(I mean an easy change :P )

banned,




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 13 »



Login

Who's Online

213 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 213


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