View Full Version : very small and simple maybe? vBulletin template question
JGM007
08-20-2003, 07:03 PM
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?
<?
require( "global.php" );
eval("dooutput(\"".gettemplate('jgm_extra')."\");");
$styleid = 4;
?>
Dean C
08-21-2003, 10:57 AM
<?
$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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.