vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Force a style (https://vborg.vbsupport.ru/showthread.php?t=313759)

RisingGlow 08-17-2014 04:13 PM

Force a style
 
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

Quote:

Originally Posted by ForceHSS (Post 2511720)
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

Quote:

Originally Posted by ForceHSS (Post 2511730)
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

Quote:

Originally Posted by ForceHSS (Post 2511758)
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.

Quote:

Originally Posted by RisingGlow (Post 2511728)
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


All times are GMT. The time now is 12:59 AM.

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.01192 seconds
  • Memory Usage 1,726KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete