| :: |
| Author |
Message |
m.arek
Joined: 02 Mar 2008 Posts: 5
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14279
|
Posted: 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 |
|
 |
m.arek
Joined: 02 Mar 2008 Posts: 5
|
Posted: 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?  |
|
|
| Back to top |
|
 |
digital1
Joined: 26 Oct 2007 Posts: 44 Location: India
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14279
|
Posted: 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 |
|
 |
m.arek
Joined: 02 Mar 2008 Posts: 5
|
Posted: 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
|
Posted: 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
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
|