phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
problems with viewonline.php all users are on index-page

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
m.arek



Joined: 02 Mar 2008
Posts: 5

problems with viewonline.php all users are on index-pagePosted: Sun Mar 23, 2008 3:27 am    Post subject: problems with viewonline.php all users are on index-page

I use the advanced seo mod and have problems with viewonline.php page. Everyone seems to be at the same page and that is the index page.

When i turn the seo "off" in acp all is ok.

How can we remove that?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

problems with viewonline.php all users are on index-pagePosted: Mon Mar 24, 2008 3:03 pm    Post subject: Re: problems with viewonline.php all users are on index-page

It's not really a bug, it's dealing with how phpBB3 grabs forum ids from session tables. This only occurs without the virtual folder trick, when no forum id is sent in the GET vars, and it is the same when you load an unrewritten topic url without forum id (viewtopic.php?t=xx vs viewtopic.php?f=yy&t=xx).

It's not that easy to fix, since the forum id, when not sent through the url, is retrieved from the db quite some time after the forum id is eventually sent to the sessions tables.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
m.arek



Joined: 02 Mar 2008
Posts: 5

problems with viewonline.php all users are on index-pagePosted: Fri Mar 28, 2008 1:47 am    Post subject: Re: problems with viewonline.php all users are on index-page

Any idea how to fix that litle problem? Smile
Back to top
digital1



Joined: 26 Oct 2007
Posts: 44
Location: India

problems with viewonline.php all users are on index-pagePosted: Fri Mar 28, 2008 4:19 am    Post subject: Re: problems with viewonline.php all users are on index-page

Me using virtual folder trick but no luck, You can see my url
http://infoinn.pcriot.com
What else should i try to get this fixed.
Also my forum is very new should i implement robot.txt file now or later.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

problems with viewonline.php all users are on index-pagePosted: Mon Mar 31, 2008 7:51 am    Post subject: Re: problems with viewonline.php all users are on index-page

dcz wrote:

It's not that easy to fix, since the forum id, when not sent through the url, is retrieved from the db quite some time after the forum id is eventually sent to the sessions tables.
++


@digital1, forgot to mention that the same "issue" appends with the virtual folder trick when removing forum ids, since the id is retrieved after the session is started.

But you could move :

Code:
// Start session
$user->session_begin();
$auth->acl($user->data);


after :

Code:
// Start initial var setup
$forum_id   = request_var('f', 0);
$mark_read   = request_var('mark', '');
$start      = request_var('start', 0);
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($forum_id == 0) {
   $phpbb_seo->get_forum_id($forum_id, $start);
   if ($forum_id == 0) {
      header('HTTP/1.1 404 Not Found');
   }
}


and then replace :
Code:
   if ($forum_id == 0) {
      header('HTTP/1.1 404 Not Found');
   }


with

Code:
   if ($forum_id == 0) {
      header('HTTP/1.1 404 Not Found');
   } else {
      $_REQUEST['f'] = (int) $forum_id;
   }

Should do the trick for the virtual folder trick with id removing, and it's not a problem here to change the order a bit.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
m.arek



Joined: 02 Mar 2008
Posts: 5

problems with viewonline.php all users are on index-pagePosted: Mon Mar 31, 2008 3:15 pm    Post subject: Re: problems with viewonline.php all users are on index-page

Any ideas how to fix the Problem with the viewonline.php without the folder trick?

I really need a solution for that.
Back to top
digital1



Joined: 26 Oct 2007
Posts: 44
Location: India

problems with viewonline.php all users are on index-pagePosted: Mon Mar 31, 2008 4:35 pm    Post subject: Re: problems with viewonline.php all users are on index-page

Thanks for the help. But in which files i should do these modification.
Back to top
digital1



Joined: 26 Oct 2007
Posts: 44
Location: India

problems with viewonline.php all users are on index-pagePosted: Tue Apr 01, 2008 4:37 am    Post subject: Re: problems with viewonline.php all users are on index-page

Found the file. It is Viewforum.php. Done all the suggested editing.
Now it showing correct information on viewforum.php
http://infoinn.pcriot.com/software-programming-tutorials/

But no result on index page view online.php

and on topic pages pages no effect
http://infoinn.pcriot.com/software-programming-tutorials/avi-files-causing-100-cpu-usage-crash-of-explorer-t20.html

it is showing as this:-
Users browsing this forum: No registered users and 0 guests

But thanks for the help any way. Sad
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

problems with viewonline.php all users are on index-pagePosted: Sun Apr 06, 2008 12:11 pm    Post subject: Re: problems with viewonline.php all users are on index-page

Well as said, it's not that easy to fix, and it's not this important over all, but, we'll look into it for next releases Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: