View Single Post
Old November 14th, 2008, 09:17 AM   #9 (permalink)
Luciano
Senior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 515
Right chuck! but on some special styles out there that use plugins for functionallity its different..
I thought of a quick fix but it could create new problems (I dont see any) so maybe you can look into it:
open forums/includes/vbgallery/style_fetch.php
find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
as i said i dont know if there is a drawback.. but i dont think so as the plugin is only used in vbgallery.
Explain:
just before the plugin is called..
in forum/global.php
styleid is defined the following way:
// no style specified - use default
$styleid = $vbulletin->options['styleid'];
$vbulletin->userinfo['styleid'] = $styleid;

vbgallery changes $styleid but $vbulletin->userinfo['styleid'] is still the forum style..
so if a template uses $vbulletin->userinfo['styleid'] for unregged users.. it does not use $ppg_options['gallery_style'] but still the old $styleid defined a couple of lines above.



Luc
Luciano is offline   Reply With Quote