Announcement

Collapse
No announcement yet.

How do I make something viewable by admin only?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steve Machol
    replied
    It should work in either templare.

    Leave a comment:


  • Goatpod
    replied
    Steve, I've just used the above (as recommended by a user at vbulletin.org) in the postbit of my forum to show an icon that only forum subscribers get (I substituted 6 for the id of the subscribers' usergroup) yet the icon showed on all registered members' postbits. Is this code designed to work in the postbit template or only in FORUMHOME?

    Thanks

    Dave

    Leave a comment:


  • jderouen
    replied
    Thanks!

    Leave a comment:


  • Steve Machol
    replied
    Use template conditionals in the appropriate section of the FORUMHOME template:

    <if condition="is_member_of($bbuserinfo, 6)">
    Your stuff here
    </if>

    Leave a comment:


  • jderouen
    started a topic How do I make something viewable by admin only?

    How do I make something viewable by admin only?

    I have a block of text I want to appear in the "What's Going On?" section, but I only want it viewable by admins. How can I do that?

    Thanks,
    Joe
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X