Login / Out Switch for vBulletin?

Discussion in 'vBulletin' started by mdvaldosta, Aug 19, 2006.

  1. #1
    I'm looking for a way to show certain content only when a user is a guest / logged out, is there a simple vBulletin function for this?
     
    mdvaldosta, Aug 19, 2006 IP
  2. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #2
    The simple function is setting permissions for each forum. You set them according to what you want to show when a person is logged in or out.
     
    Neptune, Aug 19, 2006 IP
  3. Alvin

    Alvin Notable Member

    Messages:
    2,076
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    210
    #3

    yes thats best way to go.. set permissions per forum.....
     
    Alvin, Aug 21, 2006 IP
  4. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's not what I'm referring to. For arguments sake, say I want to display a message to users that are logged out, or ads, or whatever. What function can I (or does vB) use for this? Something simple I can put in a template.
     
    mdvaldosta, Aug 25, 2006 IP
  5. AnaB

    AnaB Peon

    Messages:
    1,336
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you want to display a message to non registered asking them to register you could use the welcome header hack. Or you could edit that hack to have ads on it instead of a please register...
     
    AnaB, Aug 25, 2006 IP
  6. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #6
    This isn't for ads. All I'm after is a simple login switch like phpBB uses.
     
    mdvaldosta, Aug 25, 2006 IP
  7. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #7
    In any template that you want to display a message to only guests...

    
    <if condition="!$bbuserinfo['userid']">
    <!-- HTML HERE -->
    </if>
    
    HTML:
     
    noppid, Aug 26, 2006 IP