[RC] Show Users Browsing Topic

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

[RC] Show Users Browsing Topic

Post by Jessica »

Modification Name: Show Users Browsing Topic
Author: Jessica

Modification Description:: This MOD shows the number of other users browsing the same topic as the user.
Its very similar to the users browsing forum text on the pages currently except when viewing a topic it is more specific
Modification Version:: 1.0.0
phpBB Version:: 3.0.x (it should work with any version, including the latest, 3.0.12)

Screenshots:
usersbrowsingtopic.png
usersbrowsingtopic.png (12.1 KiB) Viewed 2963 times
Demo URL: http://chenschool.elementfx.com/phpBB3/index.php
Demo Username: Test
Demo Password: test123

Github: https://github.com/JessicaC/UsersBrowsingTopic
Modification Download: Download

I am providing support (or at least try to) and the download for this mod, which has been previously abandoned. The abandoned topic is here: viewtopic.php?f=434&t=1987015

Credit goes to nanothree, original creator.

I added in a small fix detailed here: viewtopic.php?f=72&t=2158055#p13158235

Known Issues:
  • If the url of the topic ends in a post id, like p=4272#p4272 your name will not show up. The "fix" linked above doesn't seem to working any longer.
Last edited by Jessica on Thu May 15, 2014 11:00 pm, edited 6 times in total.
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
mladiucitelj
Registered User
Posts: 586
Joined: Sun Dec 12, 2010 12:33 am
Location: Slovenia, Europe

Re: [RC] Show Users Browsing Topic

Post by mladiucitelj »

Useful mod. Thanks for keeping it alive.
Don't forget to clear cache, refresh template, theme and imageset, double check all files :)

My mod: [MODDB] Menu System
User avatar
ViolaF
Registered User
Posts: 1517
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC] Show Users Browsing Topic

Post by ViolaF »

Thanks 4 reload :geek:
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] Show Users Browsing Topic

Post by Jessica »

Screenshot added
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
andares
Registered User
Posts: 71
Joined: Sat Feb 28, 2009 5:53 pm
Location: Spain
Name: Pedro

Re: [RC] Show Users Browsing Topic

Post by andares »

:arrow: Installed with AutoMod

Thank you Jessica.

Spanish Translation:
language/es/common.php

Code: Select all

/* nanothree - users viewing topic mod */
   'BROWSING_TOPIC'		=> 'Usuarios viendo este Tema: %1$s',
	'BROWSING_TOPIC_GUEST'	=> 'Usuarios viendo este Tema: %1$s y %2$d invitado',
	'BROWSING_TOPIC_GUESTS'	=> 'Usuarios viendo este Tema: %1$s y %2$d invitados',
/* nanothree - end users viewing topic mod */
Sorry for my bad English, I use a translator...
doenwenu
Registered User
Posts: 55
Joined: Sat Jul 27, 2013 6:16 am

Re: [RC] Show Users Browsing Topic

Post by doenwenu »

Hi Jessica,

Nice mod. I am install this when i have more time. First fix some errors on my page :mrgreen:
User avatar
Meis2M
Translator
Posts: 914
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [RC] Show Users Browsing Topic

Post by Meis2M »

Hi jessica :D

congratulation it is a useful MOD.
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Jorup16
Registered User
Posts: 423
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

Re: [RC] Show Users Browsing Topic

Post by Jorup16 »

Nice mod. :D
Spanish Translations for Ext phpBB :D - Traducciones al español para Ext phpBB :)
>>>>> https://github.com/Jorup16 <<<<<
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 8048
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [RC] Show Users Browsing Topic

Post by Raul [ThE KuKa] »

Nice MOD Jessica! :)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


punktravis182
Registered User
Posts: 27
Joined: Tue Dec 29, 2009 9:05 am

Re: [RC] Show Users Browsing Topic

Post by punktravis182 »

Hello,

I was trying to install this mod but it has a conflict with phpbb-seo mod. The file is includes/functions_display.php
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] Show Users Browsing Topic

Post by Jessica »

punktravis182 wrote:Hello,

I was trying to install this mod but it has a conflict with phpbb-seo mod. The file is includes/functions_display.php
What is the conflict?
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
punktravis182
Registered User
Posts: 27
Joined: Tue Dec 29, 2009 9:05 am

Re: [RC] Show Users Browsing Topic

Post by punktravis182 »

Jessica wrote:
punktravis182 wrote:Hello,

I was trying to install this mod but it has a conflict with phpbb-seo mod. The file is includes/functions_display.php
What is the conflict?

here's the phpbb seo no dupe installation code:

FIND:

Code: Select all

		if ($row['forum_last_post_id'])
		{
			$last_post_subject = $row['forum_last_post_subject'];
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = '';
		}

REPLACE WITH:

Code: Select all

		// Create last post link information, if appropriate
		if ($row['forum_last_post_id'])
		{
			$last_post_subject = $row['forum_last_post_subject'];
			$last_post_time = $user->format_date($row['forum_last_post_time']);
			// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
			if (!empty($phpbb_seo->seo_opt['no_dupe']['on']) && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id_last_post'])) {
				$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$row['forum_id_last_post']]);
				$last_post_url =  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id'] . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$row['topic_id']]) ) . '#p' . $row['forum_last_post_id'];
				$topic_title = censor_text($row['topic_title']);
				// Limit in chars for the last post link text.
				$char_limit = 25;
				// Limit topic text link to $char_limit, without breacking words
				$topic_text_lilnk = $char_limit > 0 && ( ( $length = utf8_strlen($topic_title) ) > $char_limit ) ? ( utf8_strlen($fragment = utf8_substr($topic_title, 0, $char_limit + 1 - 4)) < $length + 1 ? preg_replace('`\s*\S*$`', '', $fragment) . ' ...' : $topic_title ) : $topic_title;
				$last_post_link = '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']) . '" title="' . $topic_title . ' : ' . $phpbb_seo->seo_opt['topic_forum_name'][$row['topic_id']] . '">' . $topic_text_lilnk . '</a>';
			} else {
				$last_post_url =  append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
				$last_post_link = '';
			}
		}
		else
		{
			$last_post_subject = $last_post_time = $last_post_url = $last_post_link = '';
			// www.phpBB-SEO.com SEO TOOLKIT END -> no dupe
		}

Now I'm confuse where to add your code. Please I need help. THanks
punktravis182
Registered User
Posts: 27
Joined: Tue Dec 29, 2009 9:05 am

Re: [RC] Show Users Browsing Topic

Post by punktravis182 »

Still waiting for an answer/.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [RC] Show Users Browsing Topic

Post by Jessica »

I tried to see if I could put them together, but it doesn't seem like it would work. Maybe I'm not looking hard enough at those two codes or something, but I'll keep trying...:/
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Peter77sx
Registered User
Posts: 3259
Joined: Wed Nov 09, 2005 2:51 pm

Re: [RC] Show Users Browsing Topic

Post by Peter77sx »

@punktravis182 I'm using the premod on test board and I was able to skip the edits to functions_display.php and left that part alone. Seems to be working just fine.

Bit of conflict if your using Optimal Titles so only thing I had to do was change in viewtopic.php
page_header($topic_data['topic_title'] . ' : ' . $topic_data['forum_name'] . $extra_title, true, $forum_id);

:edit: try to replace with this
page_header($topic_data['topic_title'] . ' : ' . $topic_data['forum_name'] . $extra_title, true, $topic_id, 'topic');

But only if you are using the Optimal Titles MOD.
Locked

Return to “[3.0.x] MODs in Development”