How to show active users in last 30 min, not 5 min..

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

How to show active users in last 30 min, not 5 min..

Postby flavion » Sun Feb 11, 2007 9:55 am

Hi,

how to show in the bottom of forum active users in last 30 min., not last 5 min. ?
flavion
Registered User
 
Posts: 3
Joined: Mon Jan 22, 2007 1:24 pm
Location: bulgaria

Postby karlsemple » Sun Feb 11, 2007 9:58 am

Note that the time is in seconds. Replace "XXX" with new time
Open {root}/viewonline.php
Find:
Code: Select all
AND s.session_time >= ".( time() - 300 ) . "

Replace with:
Code: Select all
AND s.session_time >= ".( time() - XXX ) . "


Open {root}/admin/index.php
Find:
Code: Select all
AND u.user_session_time >= " . ( time() - 300 ) . "

Replace with:
Code: Select all
AND u.user_session_time >= " . ( time() - XXX ) . "

Find:
Code: Select all
AND session_time >= " . ( time() - 300 ) . "

Replace with:
Code: Select all
AND session_time >= " . ( time() - xxx ) . "


Open {root}/includes/page_header.php
Find:
Code: Select all
AND s.session_time >= ".( time() - 300 ) . "

Replace with:
Code: Select all
AND s.session_time >= ".( time() - XXX ) . "


Open {root}/language/lang_english/lang_main.php
Find:
Code: Select all
$lang['Online_explain'] = 'This data is based on users active over the past five minutes';

Replace with:
Code: Select all
$lang['Online_explain'] = 'This data is based on users active over the past XXX';
Image
User avatar
karlsemple
Support Team Member
Support Team Member
 
Posts: 39388
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

Postby flavion » Sun Feb 11, 2007 10:10 am

Special Thanks, I did it.. 8O

Can you tell me how to make drop-down menu like a Font Size, but with when I choose a link from that menu, to post a image in my post, but image+link.. ?
flavion
Registered User
 
Posts: 3
Joined: Mon Jan 22, 2007 1:24 pm
Location: bulgaria

Postby Bramster » Sun Feb 11, 2007 4:09 pm

What would be the effect of changing the Cookie "Session Length" in the ACP ?
Navy & Merchant Marine Forum:
www.DutchFleet.net
Bramster
Registered User
 
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Postby karlsemple » Sun Feb 11, 2007 4:12 pm

Bramster wrote:What would be the effect of changing the Cookie "Session Length" in the ACP ?



thats how long an inactive sessions remains stored in the database before it is discarded :)
Image
User avatar
karlsemple
Support Team Member
Support Team Member
 
Posts: 39388
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

Postby Bramster » Tue Feb 13, 2007 9:24 am

Ok, thanks.

Mine is currently set at 3600. Would reducing it result in in lower number of googlebots that seem to be crawling my site. Some times as much of 30 are listed (checked the IPs) in the ACP index page.

I have the feeling that is a mistake because why would 30 google bots crawl my site at the same time ?
Navy & Merchant Marine Forum:
www.DutchFleet.net
Bramster
Registered User
 
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Postby karlsemple » Tue Feb 13, 2007 9:29 am

Bramster wrote:Ok, thanks.

Mine is currently set at 3600. Would reducing it result in in lower number of googlebots that seem to be crawling my site. Some times as much of 30 are listed (checked the IPs) in the ACP index page.

I have the feeling that is a mistake because why would 30 google bots crawl my site at the same time ?



This is correct, that's what google bot does as it spiders your forum. You can register at google and then in the webmaster tools turn down the crawl rate for google on your site, this will help somewhat. Also you should look into a robot.txt file to limit google bot to the places you want it to search.... for example there is no need for googlebot to be spidering your posting.php and thus you would want to block it with a robots.txt
Image
User avatar
karlsemple
Support Team Member
Support Team Member
 
Posts: 39388
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK

gr8

Postby hmpargi » Tue Feb 13, 2007 9:58 am

:P it realy helped me ... thanks for it
Technology Hub- http://www.w-plaza.com largest tech source .
hmpargi
Registered User
 
Posts: 3
Joined: Tue Feb 13, 2007 9:56 am


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: sirknight115 and 14 guests