Guests On Line Past 24 Hours

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

OPEN

language/en/common.php

FIND

Code: Select all

	'GUEST_ONLINE_24'		=> '%1$s Guest in the past 24 hours',
	'GUESTS_ONLINE_24'		=> '%1$s Guests in the past 24 hours',
REPLACE WITH

Code: Select all

	'GUEST_ONLINE_24'		=> '<strong>%1$s</strong> Guest in the past 24 hours',
	'GUESTS_ONLINE_24'		=> '<strong>%1$s</strong> Guests in the past 24 hours',
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
howard_hopkinso
Registered User
Posts: 35
Joined: Mon Feb 18, 2008 3:03 am
Contact:

Re: Guests On Line Past 24 Hours

Post by howard_hopkinso »

Thankyou very much for that, it works.

I did not have the lines to find in my language/en/common.php file, so just added them after this:

Code: Select all

'GUEST_USER_TOTAL'			=> '%d guest',
	'GUEST_ONLINE_24'      => '<strong>%1$s</strong> Guest in the past 24 hours',
    'GUESTS_ONLINE_24'      => '<strong>%1$s</strong> Guests in the past 24 hours',
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

howard_hopkinso wrote:I did not have the lines to find in my language/en/common.php file, so just added them after this:
:?

From the install.xml of the mod download
Noname.jpg
Noname.jpg (32.13 KiB) Viewed 1251 times
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
aurquiel
Registered User
Posts: 243
Joined: Fri May 15, 2009 1:45 am

Re: Guests On Line Past 24 Hours

Post by aurquiel »

MY online user dissapers

No show the nick of online usser

Image:

Image
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

Then you installed the mod incorrectly.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm
Contact:

Re: Guests On Line Past 24 Hours

Post by NissanNut »

This is a great mod, works perfect on index. How can I add this to the "portal"?
:roll:
Thanks,
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

Which portal and where did you want it added?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm
Contact:

Re: Guests On Line Past 24 Hours

Post by NissanNut »

Board3portal http://www.phpbb.com/community/viewtopi ... &t=1179085

There is a "who is online" block at the botttom. Thats were I want it.

Thanks,
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

You can try this

OPEN

portal.php

FIND

Code: Select all

	if ($config['load_online'] && $config['load_online_time'] && $portal_config['portal_whois_online'])
	{
		include($phpbb_root_path . 'portal/block/whois_online.'.$phpEx);
	}
AFTER ADD

Code: Select all

// BEGIN MOD guests past 24 hours
if (!function_exists('obtain_guest_count_24'))
{
	include($phpbb_root_path . 'includes/functions_guests_24.' . $phpEx);
}
obtain_guest_count_24();
// END MOD guests past 24 hours
OPEN

styles/prosilver/template/portal/block/whois_online.html

FIND

Code: Select all

{RECORD_USERS}<br />
REPLACE WITH

Code: Select all

{RECORD_USERS}<br /><!-- IF TOTAL_GUESTS_ONLINE -->{GUESTS_PAST_24}<br /><!-- ENDIF -->
Don't forget to refresh the template in the ACP after making the change to your html file.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm
Contact:

Re: Guests On Line Past 24 Hours

Post by NissanNut »

Awesome! I tried it on my backup forum! Perfect thanks!!!
apnaitaly
Registered User
Posts: 323
Joined: Tue Jun 30, 2009 6:13 pm

Re: Guests On Line Past 24 Hours

Post by apnaitaly »

waoo Thats Great Mod

realy Like it Thanks for sharing ,

i want to ask i have edit Common.php

Code: Select all

	'BROWSING_FORUM'		=> 'Users browsing this forum: %1$s',
	'BROWSING_FORUM_GUEST'	=> 'Users browsing this forum: %1$s and %2$d guest',
	'BROWSING_FORUM_GUESTS'	=> 'Users browsing this forum: %1$s and %2$d guests',
// BEGIN MOD guests last 24 hours
	'GUEST_ONLINE_24'		=> '%1$s Guest in the past 24 hours',
	'GUESTS_ONLINE_24'		=> '%1$s Guests in the past 24 hours',	
// END MOD guests last 24 hours
	'BYTES'					=> 'Bytes',

is it Ok ?
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

apnaitaly wrote:is it Ok ?
Looks fine as long as you save the file as UTF-8 without BOM.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
jsmoke222000
Registered User
Posts: 156
Joined: Tue Jun 24, 2008 2:31 pm

Re: Guests On Line Past 24 Hours

Post by jsmoke222000 »

I just installed this mod on 3.0.5 & my online users are now gone? I noticed that another user posted the same problem. Any idea how to fix this?

FWIW, I uninstalled the mod & restored the database to a backup & tried the install again exactly as described in the install_mod.xml file. I used auto Mod for the install. Same result, No online users?

Help please.......
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Guests On Line Past 24 Hours

Post by RMcGirr83 »

Post up a link to your forum so that I can see what you are talking about.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
jsmoke222000
Registered User
Posts: 156
Joined: Tue Jun 24, 2008 2:31 pm

Re: Guests On Line Past 24 Hours

Post by jsmoke222000 »

I already uninstalled the mod. The problem is exactly the same as aurquiel posted on his board. See the pic in his post.
Locked

Return to “[3.0.x] MOD Database Releases”