1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Display a Message to Guests

Display a Message to the Guests on your Forum

  1. Fluttershy

    Fluttershy Member

    Fluttershy submitted a new resource:

    Display a Message to Guests (version 1.0) - Display a Message to the Guests on your Forum

    Read more about this resource...
  2. Nasr

    Nasr Well-Known Member

    How is this different from notices?
  3. Kevin

    Kevin Well-Known Member

    Notices are always at the top of the page(s) specified whereas this will be a more subtle small box that appears in the bottom right corner of the browser page hovering over the other content.
  4. DSF

    DSF Well-Known Member

    It's better to take "ad_xxxx" templates. ;)
  5. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    you should change this:
    <a href='http://www.xenforo.com/index.php?register/'>clicking here</a>
    to this:
    <a href="{xen:link 'register'}" >clicking here</a>
    SportainmentMG and Adam Howard like this.
  6. bogus

    bogus Guest

    Is it possible to add a dismiss cross/icon?
  7. Fluttershy

    Fluttershy Member

    Well thank you. :) I'm fairly new to XenForo, so thanks for the update, I didn't know the register link parse variable. :) I will be able to update it soon. Thanks. :)

    Right now, I haven't figured out a way to dismiss it, but I'm trying to mess around with that right now. Bit if you find out how be sure to PM me and I will update it and leave you credit. :)
  8. bogus

    bogus Guest

    k will have a look but not today ;) Thanks

    Edit: Well, there is already a dismiss class in xenforo, which probably could be used for the message too.
    Search in Templates for notice

    if you maybe just use
    that would be already enough?!

    All not tested
  9. Fluttershy

    Fluttershy Member

    Attempting this did not work, also, it shouldnt looking at the coding, the coding pretty much checks if it is removable, and then if it is, it applies the code. So, there is much more required coding than that or else it wont work, but I will look into it some more. :)
  10. bogus

    bogus Guest

    Sry for that, but i am not a coder, i know just a bit about css and a bit more about photoshop. Never was that interested in coding then what i know ;)
  11. dwdmadmac

    dwdmadmac Active Member

    Also should change this :)

    <a href='http://www.xenforo.com/index.php?login/'>login here</a>

    <a href="{xen:link 'login'}" >login here</a>
    TheVisitors likes this.
  12. wichern.k

    wichern.k Member

    I want closed auto on time 30 second?
  13. sybase22

    sybase22 Member

    How to close put close button??
    nttruong likes this.
  14. SportainmentMG

    SportainmentMG Active Member

    So I added this to one of my themes today and made a couple of adjustments.

    I added the styling that you have:
    position: fixed;
    bottom: 10px;
    line-height: 16px;
    right: 10px;
    z-index: 30000;
    opacity: 0.8;
    width: 260px;
    height: auto;
    background: #cf3737;
    color: #fff;
    text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;
    padding: 10px;
    text-decoration: none;
    font-size: 11px;
    font-family: Tahoma;
    border: 1px solid #771b1b;
    box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #f66c6c 0px 1px 0px;
    border-radius: 3px;
    #stickymsg a{ color: #fff; font-weight:bold; text-decoration: none; }
    #stickymsg:hover{ opacity: 1; }
    To the EXTRA.CSS instead of Footer.css as it makes it easier and helps with upgrades.

    And altered the code at the bottom of the Footer template to be:
    <xen:if is="!{$visitor.user_id}">
    <div id='stickymsg'>
    <p class='bbc_center'>You're Not Signed In</p>
    <p class='bbc_center'>You are currently not signed in. If you are already a registered user you can <a href='index.php?login/'>login here</a>. If not, you can register and gain access to our wonderful forums, view topics, make posts, and more! So if
    your not already a user, you can register by <a href='index.php?register/'>clicking here</a>.</p>
    I think that way it is easier for all - sorry don't mean to hijack your thread but thought it would help others who come to use this. Feel free to update your original post with the above code if you want saves people from coming in here to read this :)
    dwdmadmac likes this.
  15. parklanephil

    parklanephil Member

    Nice work, thanks for the code.
  16. Webby

    Webby Member

    If someone has figured out how to add a close button please post the code here. The code created by fluttershy can be used for many more applications if only we had a close button.

    Another cool thing to add would be if adblock is detected a message box comes up asking for it to be disabled, of course this would have a close button.
  17. Martok

    Martok Well-Known Member

    Webby likes this.
  18. Mouth

    Mouth Well-Known Member

    Webby likes this.
  19. Webby

    Webby Member

Share This Page