The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Thanks bargie for the hack, is it possbile to use this hack so that guests/unregistered view header_1 and registered members view header_2 ?
thanks again |
#12
|
|||
|
|||
it might be possible, but this would have to be done by setting a cookie, which may mean some people cant use it say, if they haven't got cookies enabled (most people have), that is the only way i can think of. but then if they are using a different computer and log in then they would have to change style on every computer, where as the hack allows users to log in and go straight to the style.
if ne 1 could help me with a fuction i want to add, or is this built into vb? is admin can select which style they want as there default. I would like my site to say have christmas, easter, summer, winter, auterm, spring etc.. styles, and for me to say select the defult i want, say at xmas i want the xmas style as my default. Ok every one how has allready choosen a style won't be able to see it, but its a goood idea i think. also you could have this set up automaticly so on set dates the headers and footers change to the time of year, which means when it is all set up you want have to worry about it? it will probably go something like if ($styleid=="1") { if ($date=="$xmasdates") { if (!$header) { eval("\$header = \"".gettemplate('headerxmas')."\";"); } else { eval("\$header .= \"".gettemplate('headerxmas')."\";"); } if (!$footer) { eval("\$footer = \"".gettemplate('footerxmas')."\";"); } else { eval("\$footer .= \"".gettemplate('footerxmas')."\";"); } } if ($date=="$summerdates") { etc. if any one know how this would be done then pls help regards jamie |
#13
|
|||
|
|||
so i read your post wrong this is how i think it would work in theroy it should could you tell me if it does?
in global.php find if (!$header) { add before if ($bbuserinfo['userid']!=0) { that bit checks if the user is loged on (registered) now you should have if ($bbuserinfo['userid']!=0) { if (!$header) { eval("\$header = \"".gettemplate('header_2')."\";"); } else { eval("\$header .= \"".gettemplate('header_2')."\";"); } if (!$footer) { eval("\$footer = \"".gettemplate('footer_2')."\";"); } else { eval("\$footer .= \"".gettemplate('footer_2')."\";"); } then add below that } else { if (!$header) { eval("\$header = \"".gettemplate('header_1')."\";"); } else { eval("\$header .= \"".gettemplate('header_1')."\";"); } if (!$footer) { eval("\$footer = \"".gettemplate('footer_1')."\";"); } else { eval("\$footer .= \"".gettemplate('footer_1')."\";"); } } that should be it, remember to add to the get templates, the templates you want to have used! regards jamie |
#14
|
|||
|
|||
it is working
this will save me lots of time changing the templates Thanks so much bargie! |
#15
|
|||
|
|||
ruth can i have the url for your board as i wish to have a look
|
#16
|
|||
|
|||
i had to resit everything back to original until i finish designing the headers and footers, i'll show it to you once it's comlete.
cheers, |
#17
|
|||
|
|||
you are a LIFESAVER! Thanks! And I'll let you know how it goes.
Liz |
#18
|
|||
|
|||
anyone want this or can i get rid of it,
|
#19
|
|||
|
|||
Your hack do the trick, but only at the first page!
Then the var will not passed and the old style comes again. Robert |
#20
|
|||
|
|||
it does work, but the problem is that the cookie dosen't over write i'm working on not using the cookie.
can you explain you problem fully pls. jamie |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|