PHPBB3 remove SID from styles

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

PHPBB3 remove SID from styles

Postby grimagon » Tue Jun 26, 2007 1:01 am

Hi, I'm using PHPBB3 and would like to use PHP css styles on other parts of my website.

Problems arising because PHPBB3 applies SID sessions to styles.php.

I am trying to remove the SIDs only on styles.php, so i can link to phpbb3/styles.php without sessions.

Thanks for any help.
grimagon
 
Posts: 1
Joined: Tue Jun 26, 2007 12:53 am

Advertisement

Postby dcz » Tue Jun 26, 2007 8:22 am

And welcome :D

Why wouldn't you share phpBB3 sessions on the web site that would use the phpBB3 styling ?

You could then call style.php the way phpBB3 does.

Now givent that style.php seems to be able to work without SID thanks to :

Code: Select all
   if (!$user)
   {
      $id         = $config['default_style'];
      $recompile   = false;
      $user      = array('user_id' => ANONYMOUS);
   }


You could try to replace :
Code: Select all
if ($id && $sid)

with:
Code: Select all
if ($id )


To be able to call it without SID. Should work.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby ewwink » Tue Jun 10, 2008 3:47 pm

it is work...???
ewwink
 
Posts: 3
Joined: Tue Jun 26, 2007 1:41 am
Location: tasikmalaya


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests