Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Sep 2011, 22:20
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 =-
Reply With Quote
  #2  
Old 04 Sep 2011, 00:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
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.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:59.

Layout Options | Width: Wide Color: