vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   very small and simple maybe? vBulletin template question (https://vborg.vbsupport.ru/showthread.php?t=56372)

JGM007 08-20-2003 07:03 PM

very small and simple maybe? vBulletin template question
 
Hello,
I am currently working on a page with short windows tips for users on my message board who often get infected or let people into their computer when they really didnt mean to :rolleyes:

any how to the point of the question:

I have the page at http://board.madoshi.com/comhelp.php

It does not look very well under a few of the styles, what would I need to edit in the template for the page to force it to use a custom style and over ride the user's default? Or is this done elsewhere than in the template? and how would I accomplish this task?

Thank you!

-JGM

Dean C 08-20-2003 08:15 PM

In your php file add $styleid = x;

Replacing x with the id of the style you want to use for that page :)

- miSt

JGM007 08-21-2003 12:20 AM

Hi Mist, thanks for replying,
I tried it as you said (see short code below) but I am afraid it did not work, then again often I can be a block head and mess up the unmessable :( I used the numerical value of the style, is that the correct way to do it?

Code:

<?
require( "global.php" );
eval("dooutput(\"".gettemplate('jgm_extra')."\");");
$styleid = 4;

?>


Dean C 08-21-2003 10:57 AM

PHP Code:

<?
$styleid = 4; 
require( "global.php" ); 
eval("dooutput(\"".gettemplate('jgm_extra')."\");"); 
?>

Try that :) ^^

JGM007 08-21-2003 01:37 PM

Thank you very much Mist! All it took was just putting it above global.php requirement :D

JGM007 08-21-2003 01:43 PM

heh heh heh, I just found one bug though. It changes the person's style for that one page, and when they return to the forum it is still that style! lol! :D
You have to go to your User CP and change to a different style, then change back. Is this something template side?

Dean C 08-21-2003 05:44 PM

I'm not sure - I read that doing that does the job but hmmm... No idea sorry :(

assassingod 08-21-2003 05:45 PM

I believe it will keep the styleid in the users cookie, there was a fix made for it. You could try clearing your cache (ctrl+f5) and that may help

JGM007 08-25-2003 01:30 PM

Hi assassingod,
I did try that and had a few other people try too, and it did not help :( Oh well.

I think I would like to try to do it so the text formatting and background use the rules of the user's style selection, instead of forcing them to one style I am going to try and find/add the lines into the template to use the skin's natrual colors.


All times are GMT. The time now is 02:11 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.00963 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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