Topic in "Who is online"

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.
updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: Topic in "Who is online"

Post by updown »

seem to be a little bug in this part of the code:

Code: Select all

							case 'quote':
								// BEGIN: Topic in "Who is online"
								preg_match('#t=([0-9]+)#', $row['session_page'], $on_page);
								preg_match('#p=([0-9]+)#', $row['session_page'], $on_page_p);
								if (sizeof($on_page) && isset($topic_titles[$on_page[1]]))
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$on_page[1]]);
									$location_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $on_page[1]);
								}
								else if (sizeof($on_page_p) && isset($topic_post_ids[$on_page[1]]))
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$topic_post_ids[$on_page[1]]]);
									$location_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&p=' . $on_page_p[1]);
								}
								else
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE'], $forum_data[$forum_id]['forum_name']);
								}
								// END: Topic in "Who is online"
Find:

Code: Select all

								else if (sizeof($on_page_p) && isset($topic_post_ids[$on_page[1]]))
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$topic_post_ids[$on_page[1]]]);
REPLACE WITH:

Code: Select all

								else if (sizeof($on_page_p) && isset($topic_post_ids[$on_page_p[1]]))
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$topic_post_ids[$on_page_p[1]]]);
we need the $on_page_p variable instead of $on_page in this case!
User avatar
Ahri89
Registered User
Posts: 524
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: Topic in "Who is online"

Post by Ahri89 »

Very good mod, thanks a lot, very useful!!
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD
User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: Topic in "Who is online"

Post by *Capmaster* »

Very nice!!! With updown's little variable fix, it works like a charm 8-)

Thank you!
der_olli
Registered User
Posts: 1
Joined: Sun Jul 27, 2008 12:59 pm

Re: Topic in "Who is online"

Post by der_olli »

Hi there,

this MOD works great for me, but I noticed a bug while logged in as admin: If I want to do the whois for a online-user, I get the following error:

Premature end of script headers: viewonline.php [Error 500]

Anyone already noticed this bug and knows how to correct that respectively what causes this error?

Kind regards,
Olli
Blazeman
Registered User
Posts: 1
Joined: Tue Jul 22, 2008 8:14 pm

Re: Topic in "Who is online"

Post by Blazeman »

Great module! It works perfectly on my forum.
Tappanga
Registered User
Posts: 50
Joined: Tue Jul 15, 2008 5:19 pm

Re: Topic in "Who is online"

Post by Tappanga »

I've tried this mod twice (even with Updown's change) and every time I get this:

Image

As you can see, it will change anyone who is in a topic to blank, so we don't even know what forum they're in.

What am I doing wrong? I'm using Blackbox_Red style if that makes a difference. If I can't use this mod with the style I'm using, can anyone point me in the direction of a mod like this that I can use?

Thanks.
User avatar
GurlzLubme
Registered User
Posts: 880
Joined: Wed Sep 01, 2004 11:21 am
Location: New York

Re: Topic in "Who is online"

Post by GurlzLubme »

So how come it only works if someone is accessing the topic from the forum page and it doesnt work if the link is from a portal page?
1,000,000 Thank Yous to everyone who's been helping me on phpbb.com!
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Topic in "Who is online"

Post by A_Jelly_Doughnut »

MOD Updated to version 1.0.2
See first post for Download Link
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: Topic in "Who is online"

Post by updown »

In the update, there still seems to be the second variable "$topic_post_ids[$on_page[1]]" wrongly set to "$on_page[1]" - which I think it is necessary to change to "$on_page_p[1]" to output the right topic for this post while quoting, or did I miss something?
updown wrote:

Code: Select all

								else if (sizeof($on_page_p) && isset($topic_post_ids[$on_page_p[1]]))
								{
									$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$topic_post_ids[$on_page_p[1]]]);
we need the $on_page_p variable instead of $on_page in this case!
$location = sprintf($user->lang['REPLYING_MESSAGE_TOPIC'], $forum_data[$forum_id]['forum_name'], $topic_titles[$topic_post_ids[$on_page_p[1]]]);
Christopher
Registered User
Posts: 99
Joined: Tue May 20, 2008 5:41 pm

Re: Topic in "Who is online"

Post by Christopher »

I've tried everything to get this mod working and so far no luck. I'm using phpbb version 3.0.2. I did everything the instructions said and nothing. NO changes to the index page at all. I purged me cache as well. Any ideas?

my URL is in my sig if that helps.
Tappanga
Registered User
Posts: 50
Joined: Tue Jul 15, 2008 5:19 pm

Re: Topic in "Who is online"

Post by Tappanga »

Tried with a different style and got the same result (blank when in a topic). Can anyone tell me the problem, or point me to another mod like this that works? Thanks.
Christopher
Registered User
Posts: 99
Joined: Tue May 20, 2008 5:41 pm

Re: Topic in "Who is online"

Post by Christopher »

Same here. I don't get anything at all. As if there wasn't even a MOD installed. Also tried with diffrent themes
jaberella
Registered User
Posts: 9
Joined: Wed Aug 13, 2008 2:56 pm

Re: Topic in "Who is online"

Post by jaberella »

I got an error to the viewonline.php so I took it out. It didn't work for me :( and I really wanted this MOD
arukAdo
Registered User
Posts: 58
Joined: Tue Apr 29, 2008 2:07 am

Re: Topic in "Who is online"

Post by arukAdo »

For me it work good while im posting (display the topic), but not while reading a topic (display only forum), weird ... ?

I tryed your tip updown (about the _p), didnt solved my case at least
hari_potar
Registered User
Posts: 30
Joined: Fri Aug 08, 2008 2:22 pm

Re: Topic in "Who is online"

Post by hari_potar »

I installed fashion and showed my error:
parse error , syntax error

Bad Mod :evil:
Locked

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