Who is Online - No registered users and 0 guests

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Who is Online - No registered users and 0 guests

Postby Brett » Sat Jan 09, 2010 2:22 am

WHO IS ONLINE
Users browsing this forum: No registered users and 0 guests


My Who is Online works everywhere except at the post level. I worked with dcz or Typo on this some time ago, I can't really remember. I even tar-ed up my root and sent it over.

Anyways I am back at it and this is one issue I would like to solve.

I am running latest pre-mod.

Thanks
Brett
 
Posts: 11
Joined: Sun May 10, 2009 1:51 pm
Location: Casco, Maine USA

Advertisement

Re: Who is Online - No registered users and 0 guests

Postby austin881 » Fri Feb 19, 2010 7:43 pm

Bah. You just don't have visitors because you aren't popular, nobody likes you, you wish you could sit at the cool-kids table instead of getting pushed into lockers and given a swirly in the toilet.
My dev playground: ModernDignity.com
Appreciate my assistance? You can thank me by linking to Chevy Truck Forum or Gas Scooters.
User avatar
austin881
phpBB SEO Team
phpBB SEO Team
 
Posts: 248
Joined: Wed Oct 28, 2009 12:16 am
Location: Boise, Idaho USA

Re: Who is Online - No registered users and 0 guests

Postby dcz » Fri Mar 12, 2010 4:36 pm

:lol:

Well, the issue is known, viewonline tracking will not work at the topic / post level if you are not using the virtual folder option because the forum id is not available from the topic url otherwise. Fixing it would require quite some code for not much, which is the reason why it was not done yet.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Who is Online - No registered users and 0 guests

Postby harty83 » Mon Dec 19, 2011 5:52 pm

I did a simple fix by manually retrieving the forum id if it was empty from the $_REQUEST variable in includes/session.php's extract_current_page function around line 123:


Code: Select all
//hbd - hack to support who's online in viewtopic.php that phpBB SEO breaks
        if (isset($_REQUEST['t']) && !isset($_REQUEST['f'])) {
                        global $db;
         $sql = 'SELECT forum_id FROM ' . TOPICS_TABLE . ' WHERE topic_id = "' . $_REQUEST['t'] . '"';
         $result = $db->sql_query($sql);
         $forum_id_ary = $db->sql_fetchrow($result);
                        $_REQUEST['f'] = $forum_id_ary['forum_id'];
         $db->sql_freeresult($result);
        }
        //end hack
harty83
 
Posts: 2
Joined: Tue Nov 22, 2011 2:06 am


Return to phpBB SEO Premod

Who is online

Users browsing this forum: No registered users and 3 guests