vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   forcing template sets (https://vborg.vbsupport.ru/showthread.php?t=36161)

Jakeman 03-15-2002 05:44 AM

forcing template sets
 
visit my site: http://www.macsubculture.com/

notice the right column with calendar and shoutbox. now click my forum link and you will see my style selector pull down menu thing. select my shadowbane style. notice how the html for the calendar and shoutbox are different with that style? now click the portal link. see how the calendar and shoutbox don't match the OS X look of the portal? i have my portal set to keep the OS X look no matter what style the user has selected on the forums. but the templates for the calendar and shoutbox don't match.

can i put anything in my scripts to make the calendar and shoutbox use my OS X template set on the portal page?

Admin 03-15-2002 11:20 AM

In shoutbox.php force the template set to be OS X as well, and do the same with the calendar (I dunno where its file is).

Jakeman 03-15-2002 08:48 PM

but i want the shoutbox and calendar to use the user's style on the forum pages. forcing the style in the file would also force it on the forum pages (which i don't want).

perhaps i could duplicate and rename both files, include the new files in the portal script, and force the style stuff in the new files?

Admin 03-16-2002 07:42 AM

Use a flag variable. Like, if $inporta is 1, default to certain template sets. Otherwise, don't.
So before you include stuff FROM your portal main page, set $inportal to 1.
But use it like $_POST['inportal'] so people won't be able to set it thru the URL.

Jakeman 03-16-2002 04:51 PM

Quote:

Originally posted by FireFly
Use a flag variable. Like, if $inporta is 1, default to certain template sets. Otherwise, don't.
So before you include stuff FROM your portal main page, set $inportal to 1.
But use it like $_POST['inportal'] so people won't be able to set it thru the URL.

that makes sense. thx firefly.


All times are GMT. The time now is 07:05 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.00933 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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