View Full Version : Style for Social Groups
hallenberg
10-11-2011, 06:39 PM
Hi there.. I VERY much want to set social group pages (group.php and related scripts) to use a distinct style. I'm hoping someone can tell me there's a way to do this without having to write a custom CCS file to perform all necessary css overrides..?
Many thanks..
Chris
BirdOPrey5
10-14-2011, 12:44 AM
If you go yo your Admin CP -> Add a New Plugin you can make a simple plugin:
hook: global_bootstrap_init_start
title: whatever you want
exec order: 5
php code:
global $vbulletin;
if (THIS_SCRIPT == 'group')
{
$vbulletin->userinfo['styleid'] = 1;
}
Where 1 is the styleid of the style you want to use.
Set Active to YES before saving.
hallenberg
10-14-2011, 12:53 AM
Big grin from me Joe, thanks very much.
--------------- Added 1318559141 at 1318559141 ---------------
..Actually I am getting some interesting results with this. It seems to affect HTML template elements ok (they switch with the style as they should) but the style css is not processed..? CSS styling remains at default.
BirdOPrey5
10-14-2011, 01:55 AM
Do you serve css as files? Would yo be able to set it to the database to at least see if that helps?
Admin CP -> Settings -> Options -> Style and Language Settings -> Store CSS Stylesheets as Files?
hallenberg
10-14-2011, 02:10 AM
CSS was stored in the database. I just tried storing as files and did a 'rebuild' on the style information but unfortunately it made no difference.
--------------- Added 1318563192 at 1318563192 ---------------
Correction, I am getting somewhere with CSS stored as files. In ignorance I had tried a different hook and forgotten to change it back. Joe you're a beauty.
BirdOPrey5
10-14-2011, 02:35 AM
OK, well let me know if you have any other questions. :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.