1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to Create a Popup for users who are NOT logged in?

Discussion in 'vBulletin' started by cheftom, Feb 27, 2013.

  1. #1
    I'm wondering How to create a Lightbox Popup on my vBulletin 4 forum that displays ONLY to users that are NOT logged in?

    Is there a plugin or mod made for this ?
    SEMrush
     
    cheftom, Feb 27, 2013 IP
    SEMrush
  2. xXxpert

    xXxpert Well-Known Member

    Messages:
    605
    Likes Received:
    34
    Best Answers:
    9
    Trophy Points:
    165
    Digital Goods:
    7
    #2
    <vb:if condition="$show['member']==false">
    <script>
    alert("Hello User");
    </script>               
    </vb:if>
    Code (markup):
    Replace This with Your LightBox code & Place this in Header or Footer Template
    <script>
    alert("Hello User");
    </script>
     
    xXxpert, Feb 28, 2013 IP
  3. cheftom

    cheftom Active Member

    Messages:
    377
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Does this need to be placed anywhere special in the header or footer? I tried placing my code in the header but nothing seemed to happen.


    o
     
    cheftom, Mar 1, 2013 IP
  4. xXxpert

    xXxpert Well-Known Member

    Messages:
    605
    Likes Received:
    34
    Best Answers:
    9
    Trophy Points:
    165
    Digital Goods:
    7
    #4
    I have added this code in one of forum theme's header, as you can see the code is working and displaying default Popup
    http://www.xitclub.com/index.php?styleid=75
    Code (markup):
     
    xXxpert, Mar 2, 2013 IP
  5. cheftom

    cheftom Active Member

    Messages:
    377
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Two questions:

    1. In that code is there supposed to be 2 "=" ? ....show['member']==false... ?

    2. My popup code says it needs to be placed between the <head> tags, yet in my header and footer file there are no <head> tags. Is that OK?
     
    cheftom, Mar 8, 2013 IP
  6. xXxpert

    xXxpert Well-Known Member

    Messages:
    605
    Likes Received:
    34
    Best Answers:
    9
    Trophy Points:
    165
    Digital Goods:
    7
    #6
    <head> tag is in "headinclude" template
     
    xXxpert, Mar 8, 2013 IP
  7. Jntuhub Kartheek

    Jntuhub Kartheek Active Member

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #7
    no code replacemnts...
    this is want u want..
    http://technodiscuss.com/how-to-get-more-registrations-for-vbulletin-board/

    I am not sure can i share this link or not.. if not remove and ping me.. so that i dont do again.
     
    Jntuhub Kartheek, Jul 29, 2013 IP