The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB4 default sidebar
Yes hello. I'd like to activate my vb4 default sidebar. But want it to show ONLY on my vb4 default style. And not on any of my custom made styles. As you are aware of by now, when activating the sidebar in vb4, it shows up on every friggin style you create or have! So how can I achieve the sidebar showing just on the default when turned on?
|
#2
|
||||
|
||||
You could delete the sidebar code from the FORUMHOME template in your custom style. Or, a plugin at forumhome_complete like:
PHP Code:
|
#3
|
|||
|
|||
So if I place that plugin into the forumhome_complete template of the styles I DIDN'T want a sidebar on, it would give me the requested result? Or do I have to do that through the plugin manager?
|
#4
|
||||
|
||||
In order to use a plugin, yes, you need to go through the plugin manager. Use the hook Lynne told you.
|
#5
|
||||
|
||||
It's a plugin - you use the Plugin system for it. Change x to the styleid of the style you *do* want it to show up in.
|
#6
|
|||
|
|||
Ok, thanks!
|
#7
|
|||
|
|||
So now I need to know how to make this code work for multiple styles. this is how I have it set up right now:
Code:
if ($style['styleid'] != 14) $show['sidebar'] = false; |
#8
|
||||
|
||||
No, you need to use http://php.net/manual/de/function.in-array.php
|
#9
|
|||
|
|||
That wasn't really any help. Those examples are very mumbled.
|
#10
|
||||
|
||||
Instead of:
if ($style['styleid'] != 14) Try something like (replace x,y - you may need to put single-quotes around them, but I'm not sure): if (in_array($style['styleid'],array(x.y))) That is actually shown in the link Cellarius linked you to, only they show the third option also, which you aren't needing. If you don't have a test site, I would *highly* recommend one so you can try these things out and get a bit more confident in figuring things out yourself which will lead you to do other cool things on your site. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|