The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding sidebar code to every single template--an easier way?
Hi all.
I am adding sidebar code to a new custom template. I started by getting it working in the FORUMHOME template, then added the code to the FORUMDISPLAY template. It looks like I'm going to have to customize each of the templates where I want the sidebar to show up (posts, contact us, sendmessage, etc.). Am I going about this the wrong way? Is there a more global approach to adding this? Is there a better way to make sure I have code consistancy than editing each template individually to inject the code I need? Thanks! Doob |
#2
|
||||
|
||||
are you wanting this sidebar added to every page, most pages or just a select few?
there are a few ways to do it but it would entirely depend on the application of the sidebar - dave |
#3
|
|||
|
|||
For right now I want the sidebar added to every page except for album picture pages so that those pages have the maximum amount of space to display full size images.
I may want to control the content of the sidebar differently on a per-forum basis, but image I could use an if then statement to control that by querrying the forum id. -D |
#4
|
||||
|
||||
what code are you using to add the sidebar?
is it a modification here? |
#5
|
|||
|
|||
No. I'm just reusing code from the template I use on standard php pages for the rest of the site. Basically divs with a simple 2 column layout. I'm able to reuse the css nicely. I am running into a problem with the showthread template though, however forumhome and forumdisplay have worked out well.
You can see the sidebar in action in the forumhome template here: www.travelers411.com -Doob --------------- Added [DATE]1260337885[/DATE] at [TIME]1260337885[/TIME] --------------- I'm actually a little leary of using mods as I'm still learning the basics and don't want the site to "get away from me". Especially since it seams like mods are very picky about what install version people are using and there isn't much support. Am I wrong in this feeling? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|