The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
How I found the piece of code that I pasted in the forumbit_level2_post, I stumbled upon this thread. However I have no idea how to use it. I did the basics, replaced the coding as instructed then edited this bit of the code:
HTML Code:
images/forumbackgrounds/{vb:raw forum.forumid}.gif HTML Code:
images/forumbackgrounds/25.gif Quote:
HTML Code:
<div style="border-right: 1px solid rgb(204, 204, 204); height: 70px; background: url("images/forumbackgrounds/2.gif") no-repeat scroll right bottom rgb(255, 255, 255);" class="foruminfo td">
HTML Code:
<div style="border-right: 1px solid rgb(204, 204, 204); height: 70px; background: url("images/forumbackgrounds/3.gif") no-repeat scroll right bottom rgb(255, 255, 255);" class="foruminfo td">
Sorry if I'm missing something really basic here, I have absolutely no experience when it comes to things like coding. Everyone has to start somewhere I suppose. |
#12
|
||||
|
||||
You should have this in the code:
images/forumbackgrounds/{vb:raw forum.forumid}.gif Not this: images/forumbackgrounds/25.gif or this: images/forumbackgrounds/2.gif or this: images/forumbackgrounds/3.gif The forumid needs to be a variable that changes for each forumid. |
#13
|
||||
|
||||
I can't thank you enough,
Now I understand. I had no idea that having "{vb:raw forum.forumid}" instead of the actual image name could work. Let alone make it read the image file names and decide which one to use based on the matching forum ID, tricky concept. I've learned a lot, plus my forum's looking snazzier than ever. Thanks again! |
#14
|
||||
|
||||
You've done a very nice job with the look of your forums on your site!
|
#15
|
||||
|
||||
Quote:
Though I do have another question. I would like each of my forums to have a customized header image. I did some searching and most of the results I found were for previous versions of vBulletin, or the solutions were ineffective, e.g. creating multiple styles. All of which poses a problem for me (vB 4 user, and the lighter the better), this solution seemed to make the most sense. Even though it was posted back in '06. It wasn't really clear (not enough for a green-sleeve anyway) exactly where I needed to put the code, what to replace etc. I thought I'd give it a try anyhow, I navigated over to "Style Manager", and in the drop-down box of my installed template, and under template options clicked "Edit Template" and in the left hand box I scrolled down until I found "header", after selecting I clicked edit Inside, I replaced: HTML Code:
<img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" />
HTML Code:
<img src="./images/logo/logo-$foruminfo[forumid].jpg" />
Any help on this would be greatly appreciated. |
#16
|
||||
|
||||
I don't think $foruminfo[forumid] is a valid variable in the header template - nor do you have the format correct. Try something like this:
HTML Code:
<img src="./images/logo/logo-{vb:raw GLOBALS.foruminfo.forumid}.jpg" alt="" />
|
#17
|
||||
|
||||
Wunderbar! That works perfectly, now I can have relevant headers for my forum. The only problem is, all pages (except my forum categories) have no header.
I replaced: HTML Code:
"<img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" />
HTML Code:
<img src="./images/logo/logo-{vb:raw GLOBALS.foruminfo.forumid}.jpg" alt="" />
|
#18
|
||||
|
||||
You can try just GLOBALS.forumid . Or, threads may need GLOBALS.threadinfo.forumid
|
#19
|
||||
|
||||
No dice, still displays two headers. Though, I think I actually prefer it this way.
Found a way to incorporate it into the design. (Apologies for the late response) How can I add a background image to my footer, similar to the footer used in The Admin Zone? [link]. |
#20
|
||||
|
||||
You have the bottom part of your site using class "below_body" . So, just write some CSS to add a background to that class:
Code:
.below_body {background: whatever;} |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|