vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Style for Social Groups (https://vborg.vbsupport.ru/showthread.php?t=271853)

hallenberg 10-11-2011 06:39 PM

Style for Social Groups
 
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:
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 [DATE]1318559141[/DATE] at [TIME]1318559141[/TIME] ---------------

..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 [DATE]1318563192[/DATE] at [TIME]1318563192[/TIME] ---------------

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:


All times are GMT. The time now is 08:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01131 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete