| :: |
| Author |
Message |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Jul 01, 2008 1:50 pm Post subject: Advanced SEO mod ignores ?style=X URLs |
|
|
Greetings. I'm trying to install this WAP style mod:
http://www.phpbb.com/community/viewtopic.php?f=70&t=987775&start=0&st=0&sk=t&sd=a
...but the style does not work for me. I use your phpbb-SEO mod, and I'm getting the default style instead of the wap style when navigating to "rewritten" URLs. The original phpBB URLs work, but the SEO ones do not work. For example:
This one works (it shows the wap style):
-http://www.xxx.com/search.php?style=7
But this one does not work (it shows the default style and not the wap style):
-http://www.xxx.com/dj-forum-f41.html?style=7
 |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Tue Jul 01, 2008 2:37 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
It's related to authorisation, the style parameter is only usable with enough rights :
in includes/sessions.php :
| Code: | if (!empty($_GET['style']) && $auth->acl_get('a_styles'))
{
global $SID, $_EXTRA_URL;
$style = request_var('style', 0);
$SID .= '&style=' . $style;
$_EXTRA_URL = array('style=' . $style);
}
else
{
// Set up style
$style = ($style) ? $style : ((!$config['override_user_style']) ? $this->data['user_style'] : $config['default_style']);
} |
|
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Jul 01, 2008 2:49 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
Nope... still doing the same thing  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
|
| Back to top |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Jul 01, 2008 3:20 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
| Yes, logged in as admin... Anway, I need this working for the rest of users and even anonymous visitors... |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Wed Jul 02, 2008 6:58 am Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
Then it's working. I asked you to test as admin to show you that it's an authorisation issue, you need to give other groups the right to preview style, this has nothing to deal with URL rewriting.
Lazy guy would replace :
| Code: |
if (!empty($_GET['style']) && $auth->acl_get('a_styles')) |
with:
| Code: |
if (!empty($_GET['style'])) |
to bypass the auth check, but, still, I do not recommend this.
It's better to provide the people you want with enough right to do it. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Fri Jul 04, 2008 2:16 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
Excuse me but... I don't find any permissions related to styles at the administration panel. Anyway, trying your "lazy hack", it still shows the board's default style when moving to any "?style=X" apart from .php ones  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Sat Jul 05, 2008 9:08 am Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
I did not seek for the a_style auth in phpBB's ACP, but I assume you should be able to set it since there is an a_style auth obviously.
Have you tried this on a vanilla phpBB ? Just to make sure it's really not related to SEO mod, which I believe ?
And if so, you could ask how to set and use this kind of auth at phpBB.com. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Jul 08, 2008 11:37 am Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
Hi again...
Finally, it does not seem to be an authorization issue. I have followed the advices at the phpbb.com thread, modifying includes/sessions and such, without success. There are more people talking about a SEO mod incompatibility there. And there is the obvious fact that "regular URLs" work OK, but SEO ones do not work.
Could you help us please? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14854
|
Posted: Tue Jul 08, 2008 12:07 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
Here, I implemented the change in sessions.php on the demo server : http://phpbb3.phpbb-seo.net/demo-fr/le-forum-demo-de-la-premod-t1.html?style=2
Works as expected ...
| Code: | | $auth->acl_get('a_styles') |
Is referring to some auth to preview styles, that's how it is, anyone telling you the opposite does not know what is he/she talking about.
I did not searched in phpBB's ACP where you could provide all user with enough right to preview styles, but everybody can preview styles if you just bypass the auth check like mentioned above.
It's just working, with the zero dupe both in strict mode or regular mode (right now it's running in strict mode on the demo server).
Of course, styles must be installed / activated to be preview-able.
Make sure both phpBB and mods installed from phpBB SEO are up to date.
++ |
_________________ 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 |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Jul 08, 2008 12:08 pm Post subject: Re: Advanced SEO mod ignores ?style=X URLs |
|
|
| Ok, that's conclusive. Thank you very much. |
|
|
| Back to top |
|
 |
|
|