PDA

View Full Version : Force a style


RisingGlow
08-17-2014, 04:13 PM
How would I create a plugin to force a specific style?
I plan to use a conditional (specifically if (THIS_SCRIPT == 'somecustompagehere'))

ForceHSS
08-17-2014, 05:10 PM
Do you mean a default style or just on a section

RisingGlow
08-17-2014, 07:04 PM
Do you mean a default style or just on a section

Sorry, should have been more specific. I have more than one style that users are allowed to choose from. However, I would like it so if they visit a section of the forum, say site.com/games and anything followed by that, it forces a specific style to be used. And if they exit out of there, they go back to their own style they chose beforehand.

ForceHSS
08-17-2014, 07:26 PM
That option is part of vb admincp/Forums & Moderators/Forum Manager edit a forum scroll down to Style Options/Custom Style for this Forum

RisingGlow
08-17-2014, 08:44 PM
That option is part of vb admincp/Forums & Moderators/Forum Manager edit a forum scroll down to Style Options/Custom Style for this Forum

Err, no because the section is a custom section, like an arcade plugin like vbarcade

ForceHSS
08-17-2014, 09:54 PM
I only work on what info you post if you don't give the correct info then you won't get the correct answer

RisingGlow
08-17-2014, 11:27 PM
I only work on what info you post if you don't give the correct info then you won't get the correct answer
You misunderstood.

However, I would like it so if they visit a section of the forum, say site.com/games and anything followed by that, it forces a specific style to be used.
I don't recall having a forum being able to be re-written by to site.com/games by simple means. If I did somehow manage to make a part of my forum under a simple site.com/games directory, I'm sure I'd be much more advanced to know how to force a style :p

Simply you misinterpreted what I meant by section of the forum, as I interpreted it as a section of vBulletin, the forum software.

Anywho, it should be clear now. I'm just looking for the solution to force a page, NOT a forum or a subforum or thread or anything of the like, to a style.

ForceHSS
08-17-2014, 11:42 PM
Can you give a link to the page and the name of the style you want to use on that page

ozzy47
08-18-2014, 12:06 AM
I am working on a mod to handle this, I will release it soon.

ForceHSS
08-18-2014, 12:23 AM
There you go RisingGlow ozzy's mod will fix your problem

ozzy47
08-18-2014, 12:26 AM
Ok here it is, https://vborg.vbsupport.ru/showthread.php?t=313767

RisingGlow
08-18-2014, 01:39 AM
Thank you so much you guys!