| :: |
| Author |
Message |
Gonzo68
Joined: 26 Dec 2007 Posts: 5
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Gonzo68
Joined: 26 Dec 2007 Posts: 5
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
Posted: 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 |
|
 |
Gonzo68
Joined: 26 Dec 2007 Posts: 5
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Gonzo68
Joined: 26 Dec 2007 Posts: 5
|
Posted: 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

Joined: 15 Mar 2006 Posts: 3103
|
Posted: 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
|
Posted: 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

Joined: 28 Apr 2006 Posts: 13354
|
Posted: 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
++ |
_________________ 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 |
|
 |
|
|