View Full Version : Disable postbit share buttons in certain forums
Bob_R
05-08-2013, 12:29 AM
I got some code and inserted it where it needed to be to have the share buttons display in the postbit (every post).
My question is this:
How do I disable them from showing in certain forums. Meaning obviously the private ones.
Thanks!! :)
Bob_R
05-09-2013, 04:02 PM
C'mon please. This is very important to me and it's out of my league.
There has to be a way to code it so it doesn't appear in certain forums.
Again, thanks!
Lynne
05-09-2013, 04:15 PM
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.
Bob_R
05-09-2013, 04:53 PM
Questions/Problems regarding modifications/styles need to be asked in the modification/style thread. That is where the support for modification/style is - not out here in the main forums. Please note that if a modification/style is unsupported (or even if it says it is supported), you may be on your own if you chose to install it.
My question doesn't pertain to any modification that I found here. It wasn't posted here. Got code and put it in the proper place just wish to exclude certain forums. Just asking for help with the issue.
Lynne
05-09-2013, 10:50 PM
And it's near impossible to tell you how to do that when we don't have the code. The best place to ask is wherever you got the code. (And no, since you didn't write the code, you may not post it here.)
There is an article in the vB4 articles section on writing template conditionals, so that may help you to figure it out.
BirdOPrey5
05-11-2013, 08:28 PM
If this is code you added to your postbit template you can use a template conditional to hide it in certain forums.
<vb:if condition="!in_array($thread['forumid'], array(2, 3, 4, 5))">
share code here
</vb:if>
Where 2, 3, 4, and 5 are forum ids of forums to NOT show the code.
Bob_R
05-11-2013, 10:08 PM
A million and one thanks, Joe!! :up:
You are the best!! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.