How do I allow guests to preview templates?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Anti-Spam Guide
Locked
User avatar
Frodosringfinger
Registered User
Posts: 226
Joined: Mon Oct 16, 2006 1:45 am
Location: Maryland
Contact:

How do I allow guests to preview templates?

Post by Frodosringfinger »

I have some styles I want to release for phpBB3. I have them setup on my website for previews, and I can preview them fine when I'm logged in using the "index.php?style=#" added to my url, but when I logout, that doesn't let me preview the style anymore. How can I allow guests to preview styles so that I may release them?
Nocek
Registered User
Posts: 171
Joined: Mon Mar 19, 2007 12:09 am
Contact:

Re: How do I allow guests to preview templates?

Post by Nocek »

Open sessions.php and find:
if (!empty($_GET['style']) && $auth->acl_get('a_styles'))
Replace with:
if (!empty($_GET['style']))
User avatar
napy8gen
Registered User
Posts: 268
Joined: Sun May 12, 2002 6:30 pm
Location: Port Dickson, Malaysia
Contact:

Re: How do I allow guests to preview templates?

Post by napy8gen »

Is this code still valid, I cannot find the line in includes/session.php
User avatar
Lumpy Burgertushie
Registered User
Posts: 68470
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How do I allow guests to preview templates?

Post by Lumpy Burgertushie »

why not install this MOD:

http://www.phpbb.com/community/viewtopi ... 0&t=692625

it puts a drop down menu so people can change styles at will

you can edit the html for wherer to put the drop down plus add whatever you like.

or:
http://www.stsoftware.biz/support/viewt ... f=18&t=466


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
napy8gen
Registered User
Posts: 268
Joined: Sun May 12, 2002 6:30 pm
Location: Port Dickson, Malaysia
Contact:

Re: How do I allow guests to preview templates?

Post by napy8gen »

Yes I am using that already in my demo forum, just in my shop I put styleid, before this use this trick, now the line has been updated so guest cannot see per styleid.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68470
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How do I allow guests to preview templates?

Post by Lumpy Burgertushie »

the line is now:

Code: Select all

if (!empty($_GET['style']) && $auth->acl_get('a_styles') && !defined('ADMIN_START'))
		{
simply remove:

Code: Select all

&& $auth->acl_get('a_styles') 
so that it will be this:

Code: Select all

if (!empty($_GET['style']) && !defined('ADMIN_START'))
		{
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
Locked

Return to “[3.0.x] Styles Support & Discussion”