Specific Sidebar Block viewable only by Usergroup/Registered Users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cosmic Trigger
    Senior Member
    • Jul 2001
    • 218

    [Forum] Specific Sidebar Block viewable only by Usergroup/Registered Users

    I want a specific block in my sidebar to only be viewable by logged in users not by guests. is this possible?
    so what's new?
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Sorry, there is no function to do this. This requires modifying the code. We cannot officially support code modifications or forums running modified code, however you can try searching or asking for help with this over at www.vbulletin.org.
    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

    • CThiessen
      Member
      • May 2007
      • 51
      • 4.1.x

      #3
      Hi,
      Every Block use a specified template.
      For Example a HTML Block use "block_html"

      So you have to create an extra Template: e.g. "block_html_user"
      For that template copy the code of the normal Template.

      At the top add:
      Code:
      <vb:if condition="$show['member']">
      at the end:
      Code:
      </vb:if>
      than use that template for the User block.
      If the normal template is used only once, you might change the original template.

      Greetings Christian
      My Sites in German: Brasilien with Brasilien Forum

      Comment

      • Cosmic Trigger
        Senior Member
        • Jul 2001
        • 218

        #4
        of course, so simple, i can't believe i didn't figure that out myself, cthiessen, thank you very much.

        mr machol, i thought maybe there was an option to do it that i was just missing, but thanks for clarifying.
        so what's new?

        Comment

        • brandondrury
          Senior Member
          • Oct 2005
          • 141

          #5
          Every Block use a specified template.
          I'd vastly prefer to handle this on the php end of the block as the actual aesthetics will be identical on all of my sideblocks. Anyone know the correct variables and syntax for this? I usually need 2-3 hours to figure out which variable combination will work in the given scope.

          I know, I'm headed to vB.org.

          Brandon
          Payday Advance

          Comment

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