The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
specific style for only one forumid?
what i try to acomplish to use a specifuc html style for a unique forum only, for example forumid 3. so instead of using the classic forumdisplay_threadslist template for example, i want to use a new one. there is always my hard way:
create a new template and use a if condition for the forumid to select the specific template... i'm not good at all with multiple style integration. can you recommend me what is the best aproach? |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325" target="_blank">Advanced Templates</a> can help.. After the installation, edit your relevant template and use this format:
[[($forum[forumid]==X)]] Your specific template for forum X [[/($forum[forumid]==X)]] [[($forum[forumid]!=X)]] Your normal template for other forums [[/($forum[forumid]!=X)]] I didnt test it out but I believe it will work.. |
#3
|
||||
|
||||
Why can't you create a new template set, assign it to a style and use that style in only that forum? Easier than hacking.
Or hack forumdisplay: Code:
// there are threads eval("\$forumdisplay[threadslist] = \"".gettemplate('forumdisplay_threadslist')."\";"); Code:
// there are threads eval('$forumdisplay[threadslist] = "'.gettemplate(iif($foruminfo['forumid'] == 3, 'forumdisplay_threadslist_specialversion', 'forumdisplay_threadslist')).'";'); |
#4
|
||||
|
||||
that's exacly what i needed chen. thanks! i was gonna do it this way, hacking the gettemplate.
however, i want to learn to create a new template set. anyone knows any links with tutorials? are they available on members area? i could not find them. since styles are part of the default unhacked forums, they should have it included onto the online manual. |
#5
|
||||
|
||||
ok i created a new style and looked through it.. it adds all templates. cn i just create my own set? with the 3 templates? without replacement set, etc? and put there only the templataes that i'm interested to have them modified? thanks.
also a little detail: 2.2.7|||Master vBulletin Style Set!!!master!!!|||None|||None|||43|||479||| vBulletin Style Set and master are separated by 3 exclamation marks? can you explain to me what should i replace the "master" word with? ty. |
#6
|
||||
|
||||
^ no way in hell this is nakkid....
|
#7
|
||||
|
||||
coding is not the same as making template style. i never did one.
so i'm a newbie creating template styles... |
#8
|
||||
|
||||
oh i see lol.... i still find it hard to believe with all your hacks etc that you are a newbie at making styles etc...
- Mist |
#9
|
||||
|
||||
Quote:
or should i use an array just to make sure...? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|