Advanced SEO mod ignores ?style=X URLs

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators


Advanced SEO mod ignores ?style=X URLs

Postby Xabi » Tue Jul 01, 2008 1:50 pm

Greetings. I'm trying to install this WAP style mod:
http://www.phpbb.com/community/viewtopi ... &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

:(
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Advertisement

Postby SeO » Tue Jul 01, 2008 2:37 pm

It's related to authorisation, the style parameter is only usable with enough rights :

in includes/sessions.php :
Code: Select all
      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']);
      }
SeO
Admin
Admin
 
Posts: 6033
Joined: Wed Mar 15, 2006 9:41 pm

Postby Xabi » Tue Jul 01, 2008 2:49 pm

Nope... still doing the same thing :(
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Postby SeO » Tue Jul 01, 2008 3:11 pm

When logged in as admin ?
SeO
Admin
Admin
 
Posts: 6033
Joined: Wed Mar 15, 2006 9:41 pm

Postby Xabi » Tue Jul 01, 2008 3:20 pm

Yes, logged in as admin... Anway, I need this working for the rest of users and even anonymous visitors...
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Postby SeO » Wed Jul 02, 2008 6:58 am

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: Select all
if (!empty($_GET['style']) && $auth->acl_get('a_styles'))


with:
Code: Select all
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.
SeO
Admin
Admin
 
Posts: 6033
Joined: Wed Mar 15, 2006 9:41 pm

Postby Xabi » Fri Jul 04, 2008 2:16 pm

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 :(
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Postby SeO » Sat Jul 05, 2008 9:08 am

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.
SeO
Admin
Admin
 
Posts: 6033
Joined: Wed Mar 15, 2006 9:41 pm

Postby Xabi » Tue Jul 08, 2008 11:37 am

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?
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm

Postby dcz » Tue Jul 08, 2008 12:07 pm

Here, I implemented the change in sessions.php on the demo server : http://phpbb3.phpbb-seo.net/demo-fr/le- ... ml?style=2

Works as expected ...

Code: Select all
$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 || Search
____________________

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

Postby Xabi » Tue Jul 08, 2008 12:08 pm

Ok, that's conclusive. Thank you very much.
Xabi
PR0
PR0
 
Posts: 54
Joined: Wed Jun 20, 2007 2:29 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: mati009988, VoilaBot [Bot] and 10 guests


 
cron