1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Message For Your Guests

Discussion in 'Template Modifications [Archive]' started by borbole, Oct 9, 2010.

  1. borbole

    borbole Well-Known Member

    This is a small template edit that will show a message to your guests. At PAGE_CONTAINER template find the following code:

    <xen:if is="{$showBoardClosedNoticed}">
                                <p class="importantMessage">
                                    {xen:phrase forum_is_currently_closed_only_admins_may_access}<br />
                                    <a href="admin.php">{xen:phrase reopen_via_admin_control_panel}</a>
    And above it add this code:

    <xen:if is="!{$visitor.user_id}">
                                                    <p class="importantMessage">Hello there guest and welcome to our forum!<br />
                                                    To gain full access you must <a href="{xen:link 'register/'}">Register.</a> Registration is free and it takes only a few moments to complete.<br />
                                                    Already a member? <a href="{xen:link 'login/'}">Login here</a> then!</p>
    The message is hard coded but you can add a phrase if you want. At the screenshot below you can see how the message it will be
    displayed to the guests. You can change the message to your likings, of course.

    If such a mod already exists (I searched but could not see one) then please feel free to delete it.

    Attached Files:

  2. Sir nick

    Sir nick Well-Known Member

    Gonna add this for sure.
    arabic and borbole like this.
  3. Dismal Shadow

    Dismal Shadow Active Member

    We already have signups... The Login or Sign up and the orange "Sign up now!"
  4. CyberAP

    CyberAP Well-Known Member

    Template editing is cool but I'll wait for a plugin :) Nice work, though!
  5. borbole

    borbole Well-Known Member

    You can change the message to whatever you want :)

    Thanks :)

    This can''t be done with a plugin at the moment due to the template system.
  6. ArnyVee

    ArnyVee Well-Known Member

    Definitely something that I'm keeping my eyes on ;)

    Thanks for sharing!
    borbole likes this.
  7. yoghurtfarmer

    yoghurtfarmer Well-Known Member

    One of your tags isn't closed properly <a/>.

    Thanks for the tip, I put it BELOW the board closed notice, and made it as a separate template.
    borbole likes this.
  8. borbole

    borbole Well-Known Member

    Thank you for bringing that to my attention. It was more a typo. I fixed it now :)
  9. ArnyVee

    ArnyVee Well-Known Member

    Added this one until a built-in feature comes about :)

    Attached Files:

    borbole likes this.
  10. steven s

    steven s Well-Known Member

    Well that was easy enough, thanks.
    Now how do I change the background color? Say, primaryLightest?

    I was thinking of making it a separate template as cheeseshredder.
    Does template inclusions effect page loading?
  11. borbole

    borbole Well-Known Member

    I used the importantMessage class because I liked the look of it. But you can create another class/id and define it to your likings. Or make it as a separate template as well, like cheeseshredder. I wouldn''t know if it will affect page loading as I haven''t tested it but I don''t think that it will it in a big/negative way.
  12. Diablotic

    Diablotic Active Member

    Is this feature planned for an official release?
  13. Grover

    Grover Well-Known Member

  14. borbole

    borbole Well-Known Member

  15. Grover

    Grover Well-Known Member

    How come the link in your quote of my posting is not correct?
  16. Brogan

    Brogan XenForo Moderator Staff Member

  17. Nolik

    Nolik Member

    How made visible guest message only on homepage forum?
  18. fattony69

    fattony69 Well-Known Member

    Isn't this bad for SEO unless it is an image?
  19. Fred Sherman

    Fred Sherman Well-Known Member

    Its top of page text content, which should be important and relevent, but it isn't and it appears on every page. I think I'd wait until webcrawler identification is added and I can be sure it is displayed only to human viewers.
  20. Puntocom

    Puntocom Well-Known Member

    I get more users for my forum with this template modification.
    borbole likes this.

Share This Page