Announcement

Collapse
No announcement yet.

How do I make something viewable by admin only?

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

  • 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

  • #2
    Use template conditionals in the appropriate section of the FORUMHOME template:

    <if condition="is_member_of($bbuserinfo, 6)">
    Your stuff here
    </if>
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Thanks!

      Comment


      • #4
        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

        Comment


        • #5
          It should work in either templare.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

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