1361
trabis
Re: What about caching queries?
  • 2008/9/16 18:33

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

jdseymour wrote:
Setting the optimization of the database with the correct query cache size will go a long way in reducing calls to the database. This is set in the my.cnf file on the server. The default my.cnf file is very basic and optimization needs to be performed on any new installation to match your server.

Can you point some good tutorial about it, or maybe help me on that? I recently adquired a dedicated server for a single XOOPS site. I have about 60000 page views/days and sql is always in the red line. My linux knowledge is almost none but I know enough to ruin the server.



1362
trabis
Re: My tabs 1.0 alpha is released for feature requests
  • 2008/9/15 17:35

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi zorro, I think it needs a

li list-style:none;



1363
trabis
Re: Php block
  • 2008/9/13 14:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


This may help you a little:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=64445&forum=7&post_id=290732#forumpost290732



1364
trabis
Re: missing avatar
  • 2008/9/12 16:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


In system/blocks/system_blocks.php

Find:
if ( $options[1] == ) {
            
$block['users'][$i]['avatar'] = $newmembers[$i]->getVar('user_avatar') != 'blank.gif' XOOPS_UPLOAD_URL.'/'.$newmembers[$i]->getVar('user_avatar') : '';
        } else {
            
$block['users'][$i]['avatar'] = '';
        }


Replace by:
if ( $options[1] == ) {
            
$block['users'][$i]['avatar'] = $newmembers[$i]->getVar('user_avatar') != '' XOOPS_UPLOAD_URL.'/'.$newmembers[$i]->getVar('user_avatar') : '';
        } else {
            
$block['users'][$i]['avatar'] = '';
        }



1365
trabis
Re: missing avatar
  • 2008/9/12 15:38

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


No, it should not even try to pick blank.gif.
Have you done changes in the template or in the block?
If not, look into the database and see if the default image for users is blank.gif.



1366
trabis
Re: missing avatar
  • 2008/9/12 15:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I don´t see what is the problem. What do you see in the source code?



1367
trabis
Re: what do i need to modify to make the header wider.
  • 2008/9/12 14:36

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Many of your questions are not XOOPS related.

Have you tried to learn some css and html or are you expecting 'everyone' to build the site for you?

Don´t tell 'everyone' just what you want, tell 'everyone' what you have done and what has failed.

PS:IMHO



1368
trabis
Re: who's online - time?
  • 2008/9/12 13:30

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

ghia_ wrote:
I believe it takes the session duration from system preferences into account.


The online's data does not have a relation with the session's data.

The accuracy of this is handled in system/blocks/system_blocks.php

Look inside for this lines:
mt_srand((double)microtime()*1000000);
    
// set gc probabillity to 10% for now..
    
if (mt_rand(1100) < 11) {
        
$online_handler->gc(300);
    }


This piece of code belongs to the online block and is responsible to delete online entries.
Being more specific:
One in each 10 times(10%) the online's block is renderered it will delete entries older than 5 minutes(300 seconds).

After this code the block just inserts fresh online data for the user that is seeing the page. It is necessary to have the block visible in all pages and for all users for the data to be correct.

Now, if you have very few visitors, you may want to increase the 10% to 50% or even 100% so the block can delete old entries often. Ex:
if (mt_rand(1100) < 51) {


Then you can set the period of time the data is related:
$online_handler->gc(120);


120 will give a 2 minutes(120 seconds) margin, if a user doesn´t refresh a page in 2 minutes it will not appear as online.(this does not affect the session, he could still be logged in)



1369
trabis
Re: Categories in zero (0) in wf download !!!
  • 2008/9/11 18:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It is a little bug in XOOPS 2.3RC2

go to class/model/stats.php around line 53 and replace:
if ($groupby $criteria->groupby) {
                
$sql .= $groupby;
            }


with:

if ($groupby $criteria->groupby) {
                
$sql .= $criteria->getGroupby();
            }



1370
trabis
Re: Renaming /modules/ can I make this change?
  • 2008/9/11 12:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Changes must be applied for every module you install.




TopTop
« 1 ... 134 135 136 (137) 138 139 140 ... 190 »



Login

Who's Online

189 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 189


more...

Donat-O-Meter

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

Latest GitHub Commits