![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
Conditional help needed for postbit
I'm adding something to the postbit templates for our discussion board. Here's what I'm after: if the specific forum is visible to the public, whether or not a user is logged in, I want the item (an icon in an <img> tag) to display in the postbit. If it is a non-public forum, then I do not want anything to display. Also, I noticed that this item also shows up in the postbit for private messaging, which we also don't want.
I had thought of doing a conditional like this:
However, I would need to specify each forum number in this conditional somehow. This would work, but it seems cumbersome...and I no longer remember the syntax for it. I cannot base it on usergroup, since the item will need to appear whether or not a user is logged in. Is there a conditional I can use that would accomplish what I'm looking for? Hopefully I have described it well enough. I did create a conditional for iTrader, so that it shows up only in our Classifieds forum (which is where I grabbed my conditional sample from, above). I also have a custom navigation system that changes whether or not a user is logged in, but the code I need cannot be based on the customer's logged-in status. --------------- Added 03 Sep 2011 at 22:23 --------------- This might work:
I just have to list the forum IDs. But I am thinking there is a simpler way. And, would this prevent it displaying in the private message postbit as well?
__________________
-= N =- No members have liked this post.
|
#2
|
||||
|
||||
I don't know if there is a condition regarding whether a forum is private or not. Perhaps someone else knows.
But, the condition for whether it shows in private messages would be:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 07:59.