The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Special Logo
How can I edit (probably the header) to have a special logo in a certain forum, but not the others, without creating a new style? I don't want this special logo to effect the look of the main page, but for other reasons of my unique board, I don't want a new style.
Thanks! |
#2
|
||||
|
||||
I would say the "easy" which you DONT WANT.. is to copy your style download it under
another name, then reimport it with the changed logo. then in adminCD > Forums & Moderators > Forum manager > Select specified forum > under "Style options" Select your newly importet theme. and then "Override Users' Style Choice " - Yes. ------- A few tips,, when downloading and editing you just have to edit 1 folder well 1 image. and then upload that ONE image with the rest of that folder in style vars, you can set that folder usually "misc" to point at the new inportet folder, while the rest still point at your old. ----- tadaaa one forum have changed while none of the others have.. ---------------------------------------------------------------- Its not impossible doing it by code, i just dont have a clue |
#3
|
|||
|
|||
Go to your header template
Find HTML Code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
HTML Code:
<img src="$BannerImg" border="0" alt="$vboptions[bbtitle]" />
Hook : global_start Change 1 to whichever forum ID you want, change Images too! PHP Code:
|
#4
|
||||
|
||||
You can use $foruminfo in the template as it is fetched automatically if the forum/thread/post ID exists in the URL query string.
Code:
<img src="<if condition="$foruminfo['forumid'] == 1">images/misc/someimage.png<else />$stylevar[titleimage]</if>" border="0" alt="$vboptions[bbtitle]" /> |
#5
|
|||
|
|||
Thanks!
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Code:
<img src="<if condition="$foruminfo['forumid'] == 1">images/misc/someimage.png<else /><if condition="$foruminfo['forumid'] == 2">images/misc/someimage2.png<else />$stylevar[titleimage]</if></if>" border="0" alt="$vboptions[bbtitle]" /> |
#8
|
|||
|
|||
Is this what goes after the first plug in, or a new plug in? Or, another template? Sorry, I'm new at the editing templates and adding plugs ins.
|
#9
|
||||
|
||||
No plugins are needed, just follow Bellardia's instructions up to "Find". Then replace it with my code (make sure you have actually changed the forum IDs...).
|
#10
|
|||
|
|||
Okay, this is what I have. It's having the default Style vars logo on the main page, and the two forum with their id are working. So, I tired to copy the code to add two more forums but then I get duplicate title images. What would be the proper code to change, and where?
<img src="<if condition="$foruminfo['forumid'] == 128">images/spotlight/communitycorner1.gif<else /><if condition="$foruminfo['forumid'] == 129">images/spotlight/communitycorner1.gif<else /> $stylevar[titleimage]</if></if>" border="0" alt="$vboptions[bbtitle]" /></a></td> --------------- Added [DATE]1232215901[/DATE] at [TIME]1232215901[/TIME] --------------- I got it! Thank you everybody! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|