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  
 
   
Can't preview other style

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 Zero duplicate
::  
Author Message
Gonzo68



Joined: 26 Dec 2007
Posts: 5

Can't preview other stylePosted: Mon Jan 07, 2008 9:19 pm    Post subject: Can't preview other style

When i have zero duplicate activate, i can't preview other style. It keep showing the default style.

Desactivating it allow me to preview other style.

So whats going on ?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Can't preview other stylePosted: Wed Jan 09, 2008 1:03 pm    Post subject: Re: Can't preview other style

I guess we have one bug.

To fix this, open includes/session.php and add :

Code:
         // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
         global $phpbb_seo;
         $phpbb_seo->seo_cond( true );
         // www.phpBB-SEO.com SEO TOOLKIT END -> Zero dupe


after :

Code:
      if (!empty($_GET['style']) && $auth->acl_get('a_styles'))
      {
         global $SID, $_EXTRA_URL;


++

_________________
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
Gonzo68



Joined: 26 Dec 2007
Posts: 5

Can't preview other stylePosted: Wed Jan 09, 2008 1:13 pm    Post subject: Re: Can't preview other style

dcz,

Edit: Sorry i figure it out where to place the code now testing it....

Edit2: Fix does not work, i did clear all cache files too
Something i have notice when checking the cache folder is that the files names concerning template are shown as tpl_stylename_filenameaccess.html.php

I think, not sure about it but since its a preview of style, the default style name is still used when previewing style instead of using the previewed style name.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Can't preview other stylePosted: Wed Jan 09, 2008 2:01 pm    Post subject: Re: Can't preview other style

I tested this ok before I posted, where you logged in as admin ?

Because there is an auth check there, you need enough right to be able to use it.

About the cache file, I don't know precisely, but I'd assume that phpBB would not use the default style name when previewing another one to build the cache.

You do not need to clear phpBB's cache for this fix to work, but you may need to clear your browser one, in case it kept the http 301 header in mind.

As well, what is the uri of the link you are using ?

++

_________________
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
Gonzo68



Joined: 26 Dec 2007
Posts: 5

Can't preview other stylePosted: Wed Jan 09, 2008 2:13 pm    Post subject: Re: Can't preview other style

Dcz,

I got full right as admin/founder on the board i did test it.

I went on ie7 and clear all temporary files and cookies, went back to my board and retry it and it still did not work.

As well, what is the uri of the link you are using ? <--- Concerning that question not sure what you exactly want but board url is
-http://124.217.246.175/forum/ i know there is no domain but i'm waiting for my friend to get back from vacation in order to fix dns resolving issue.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Can't preview other stylePosted: Wed Jan 09, 2008 2:25 pm    Post subject: Re: Can't preview other style

By uri I meant the url even without the domain. EG : phpbb/index.php?style=1&sid=...

If you follow this link with index.php in it, you'll be redirected, but besides, it's working.

We'll figure out a better way to deal with this in the next update.

++

_________________
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
Gonzo68



Joined: 26 Dec 2007
Posts: 5

Can't preview other stylePosted: Wed Jan 09, 2008 2:31 pm    Post subject: Re: Can't preview other style

The URI is -http://124.217.246.175/forum/index.php?style=7&sid=cd38bb5c816989166e099f0ed7818892

But when i press it it get back to -http://124.217.246.175/forum/ only
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

Can't preview other stylePosted: Wed Jan 09, 2008 2:38 pm    Post subject: Re: Can't preview other style

dcz wrote:

If you follow this link with index.php in it, you'll be redirected, but besides, it's working.


Try -http://124.217.246.175/forum/?style=7

_________________
Back to top
Gonzo68



Joined: 26 Dec 2007
Posts: 5

Can't preview other stylePosted: Wed Jan 09, 2008 2:50 pm    Post subject: Re: Can't preview other style

That link you mention will work if you have not set Override user style to Yes in the ACP Board Settings.

Otherwise it will redirect you to the default style.

When you are admin on a board and want to add new style. Before making that new style available to members you preview it and if everything is fine you can either force it as default or just set Override user Style to No
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Can't preview other stylePosted: Sun Jan 13, 2008 3:11 pm    Post subject: Re: Can't preview other style

Gonzo68 wrote:
That link you mention will work if you have not set Override user style to Yes in the ACP Board Settings.

Otherwise it will redirect you to the default style.

Looks like another problem to me.

Anyway, I guess the zero duplicate will soon have to be updated, we'll work out a full solution for this, until then, you can replace :
Code:
$phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);


with :

Code:
if (empty ($_GET['style'])) {
   $phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);
}



in index.php if you want to be able to comfortably test styles 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 SEO TooLKit  » phpBB3 Zero duplicate
Page 1 of 1

Navigation Similar Topics

Jump to: