The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
different header per subforum
Hi...
I was upgrading a forum, and I needed to place an image or logo per each forum or subforum and I had a solution that doesn't work on vB4... for starters, where can I find: Quote:
there's a new solution to use a different header for each subforum? |
#2
|
||||
|
||||
The new style is based on divs, not tables, so you won't find that table line in the code any longer. A basic condition based on the forumid should still work in vB4. You may want to look in the vB4 articles forum and read some articles on the new syntax used in the templates.
|
#3
|
||||
|
||||
Thanks Missy Lynne (I will name my first baby-girl Lynne)
well this was the old solution for ForumDisplay: Find: Quote:
Quote:
Quote:
Quote:
|
#4
|
||||
|
||||
Did you try just adding this code where you want it?
HTML Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3,4,5))"> <img src="images/catalogs/{vb:raw forum.forumid}.png" align="center" alt="IOGAMES" border="0" /> </vb:if> |
#5
|
||||
|
||||
ForumDisplay I use on vB 3.8.x
any? |
#6
|
||||
|
||||
OK, so where did you try it in FORUMDISPLAY for vB4? You need to post your code and tell us what the result was in order for us to help.
|
#7
|
||||
|
||||
Well Miss Lynne... I noticed that you're becoming a little tough as Moderator... allow me to send you a strawberry cake made by my Mom and a Cactus for your desktop...
First I sold my board, I was wrong about the scope of vB... second I'm helping someone... I pulled out the code from my HDD, tried to implement it and 'Voil?'... I couldn't find where to place it... so I've derailed 2 days from my work, which I love... and facing again the community indifference... What about a vacation everything paid to Cancun? |
#8
|
||||
|
||||
The problem is, even if you add that line into the template, most likely there will need to be some CSS written to make it look correct. That is why I was kinda hoping to see exactly what is being added and perhaps get a link to see it working. I really have no clear picture of what you are wanting to do. I could throw an image onto my test site somewhere, but it isn't necessarily where someone else would put it and so it's real hard to know what the end result would be. You haven't even posted an image to show what you are trying to achieve.
The stuff I posted is probably correct and you would add it into the same template you were adding it before. There may even be a mod written to do whatever you want to do. |
#9
|
||||
|
||||
Let's say:
- an image 800px x 150px - centered - working as Header for the Subforum - between forum navbits and 'new thread' button |
#10
|
||||
|
||||
Just add it below the navbar in the FORUMDISPLAY template. You actually have to use foruminfo, instead of forum:
HTML Code:
<vb:if condition="in_array($foruminfo['forumid'], array(1,2,3,4,5))"> <div align="center"><img src="images/catalogs/{vb:raw foruminfo.forumid}.png" align="center" alt="IOGAMES" border="0" width="800" height="150" /></div> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|