[ABD] Show Users Browsing Topic

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
nanothree
Registered User
Posts: 262
Joined: Wed Dec 10, 2003 8:33 am
Location: Doncaster, UK

Re: [RC1] Show Users Browsing Topic

Post by nanothree »

I couldn't seem to get a user posting a reply to a topic not to show up.

But I think that this should do the trick, can someone test this for me and let me know if its working properly so I can put it in the release:

open: posting.php
find: page_header($page_title, false);
replace with: page_header($page_title, true, $topic_id, 'topic');

I won't be implementing the italics style for users posting as it means adding another database field and i cant be bothered :P sorry
starstuff
Registered User
Posts: 58
Joined: Tue Mar 02, 2010 6:59 pm
Location: Germany

Re: [RC1] Show Users Browsing Topic

Post by starstuff »

nanothree wrote:I couldn't seem to get a user posting a reply to a topic not to show up.

But I think that this should do the trick, can someone test this for me and let me know if its working properly so I can put it in the release:

open: posting.php
find: page_header($page_title, false);
replace with: page_header($page_title, true, $topic_id, 'topic');

I won't be implementing the italics style for users posting as it means adding another database field and i cant be bothered :P sorry
Nope, replying people don't show up :( Just tried it.
Maybe it's because of other MODs I have installed though everything else is working perfectly fine...
User avatar
eman80
Registered User
Posts: 327
Joined: Tue Aug 19, 2008 1:49 pm

Re: [RC1] Show Users Browsing Topic

Post by eman80 »

demon327 wrote:Great mod, can you also make that it shows the users browsing topics when youre viewing the "view online" page? then the mod would be compleet :)
Hello

is this feature will available in the next version?

Hope so :)

Thanks
welcome to my forum:
http://www.elibrary4arab.com
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [RC1] Show Users Browsing Topic

Post by lovelysummer »

Subscribed :) Nice Mod :)
DirTek
Registered User
Posts: 10
Joined: Wed Nov 25, 2009 4:26 pm

Re: [RC1] Show Users Browsing Topic

Post by DirTek »

Great mod :D

I've been looking for it everywhere :P

Here's the Romanian translation to it

Code: Select all

/* nanothree - users viewing topic mod */
        'BROWSING_TOPIC'		=> ' Utilizatori vizualizând acest subiect: %1$s',
	'BROWSING_TOPIC_GUEST'	=> ' Utilizatori vizualizând acest subiect: %1$s şi %2$d vizitator',
	'BROWSING_TOPIC_GUESTS'	=> 'Utilizatori vizualizând acest subiect: %1$s şi %2$d vizitatori',
        /* nanothree - end users viewing topic mod */
Also, here's the Romanian translation without diacritics.

Code: Select all

/* nanothree - users viewing topic mod */
        'BROWSING_TOPIC'		=> ' Utilizatori vizualizand acest subiect: %1$s',
	'BROWSING_TOPIC_GUEST'	=> ' Utilizatori vizualizand acest subiect: %1$s si %2$d vizitator',
	'BROWSING_TOPIC_GUESTS'	=> 'Utilizatori vizualizand acest subiect: %1$s si %2$d vizitatori',
        /* nanothree - end users viewing topic mod */
Cheers :mrgreen:
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: [RC1] Show Users Browsing Topic

Post by Neuropass »

wouldn't this below achieve the same result without all those edits and database entry???


Files to Edit
includes/functions_display.php,
styles/prosilver/template/forumlist_body.html



Open: includes/functions_display.php
FIND:

Code: Select all

			else
			{
				$u_viewforum = $row['forum_link'];
			}
		}
Add after:

Code: Select all

		$online_users = obtain_users_online($row['forum_id']);


Find:

Code: Select all

			'L_MODERATOR_STR'		=> $l_moderator,

Add after:

Code: Select all

	'L_FORUM_VISIT'			=> $user->lang('FORUM_VISIT', $online_users['total_online']),



Open: styles/prosilver/template/forumlist_body.html

FIND:

Code: Select all

<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>

In-line Add after:

Code: Select all

{forumrow.L_FORUM_VISIT}



Open: language/en/common.php



Find:

Code: Select all

	'datetime'			=> array(

Add Before:

Code: Select all

'FORUM_VISIT'	=> '%s visitors',
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC1] Show Users Browsing Topic

Post by RMcGirr83 »

This adds who is viewing the topic not a forum and this code that you posted

Code: Select all

$online_users = obtain_users_online($row['forum_id']);
will run a query on the sessions table for each and every forum an admin has set. So for example, default phpBB has about 13 queries on index.php, if you add that code to includes/functions_display.php and have 50 forums on the index page, the query count will jump to 63 as it also will try to count those forums that are "links" and/or "categories".

Not very efficient if you ask me. :)

It would probably be better if this

Code: Select all

$online_users = obtain_users_online($row['forum_id']);
was this instead

Code: Select all

		$online_users = 0;
		if ($row['forum_type'] == FORUM_POST)
		{
			$online_users = obtain_users_online($row['forum_id']);
		}
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian

Re: [RC1] Show Users Browsing Topic

Post by marian0810 »

Downloadlink is not working :(
You and me, time and space. You watch us run!
nanothree
Registered User
Posts: 262
Joined: Wed Dec 10, 2003 8:33 am
Location: Doncaster, UK

Re: [RC1] Show Users Browsing Topic

Post by nanothree »

Ill fix it as soon as i can
nanothree
Registered User
Posts: 262
Joined: Wed Dec 10, 2003 8:33 am
Location: Doncaster, UK

Re: [RC1] Show Users Browsing Topic

Post by nanothree »

the link has now been fixed
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian

Re: [RC1] Show Users Browsing Topic

Post by marian0810 »

Thank you :D
You and me, time and space. You watch us run!
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan

Re: [RC1] Show Users Browsing Topic

Post by Stitch625 »

I don't get it. I don't see anything on the demo site. Has the mod been disabled?
nanothree
Registered User
Posts: 262
Joined: Wed Dec 10, 2003 8:33 am
Location: Doncaster, UK

Re: [RC1] Show Users Browsing Topic

Post by nanothree »

Nope its still working,

http://www.nanothree.net/dev/phpbb3/mod ... p?f=2&t=11

Without my MOD you dont get the "users browsing this topic" in who is online bit when viewing a topic, but as you can see form the link above its there.
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan

Re: [RC1] Show Users Browsing Topic

Post by Stitch625 »

Ahhh, ok I see it now..Thanks. Looks interesting. ;)
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: [RC1] Show Users Browsing Topic

Post by Neuropass »

No answer about mine and Rich's post above?

Return to “[3.0.x] Abandoned MODs”