vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   setting style for custom page (https://vborg.vbsupport.ru/showthread.php?t=45650)

Jakeman 11-12-2002 06:33 AM

setting style for custom page
 
take this simple "vB integrated" script for example:

PHP Code:

<?php

  
include("global.php");
  eval(
"dooutput(\"".gettemplate("template_name")."\");");

?>

i want to make it so when users visit this page it will use a different style... just like when you set a forum to use a different style.

i have tried adding this code to the script (4 is the id for both the template set and replacement set i want to use):

PHP Code:

$templatesetid 4;
$replacementsetid 4

this doens't work. the page will use the replacement set i specify but not the template set... the result is a messed up looking page (template and replacement sets crossing).

ideas?

Erwin 11-12-2002 07:53 AM

Try this?

PHP Code:

$styleid=4

Making the replacement and template 4 as a style with id 4. If you put &styleid=4 at the end of the URL it works for sure.

Jakeman 11-12-2002 08:00 AM

actually, i tried $styleid also... didn't work.

yes, i could set the style in the url but i don't want to do that because that sets a styleid in the user's cookie and makes everything that style. i experimented with this a while back and it caused intermitant style changes when browsing my forums until i nuked my cookie and relogged in.

so i would rather set it in the script itself.

Jakeman 11-16-2002 07:43 AM

bump


All times are GMT. The time now is 04:24 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.01906 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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