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

Use category description in below threads as watermark

Discussion in 'XenForo Questions and Support' started by Mike Law, Apr 29, 2011.

  1. Mike Law

    Mike Law Active Member


    I know I am pushing it but..

    In NODES we create about 100 school forums, in each of these forums we add to the DESCRIPTION field an IMG (html) to show the schools logo when you go to this forum.

    As like this http://bit.ly/mhKudm

    Now I like to have this IMG show on all subsequent THREADS and or POSTS in the forum.
    80% of our traffic is from organic google, so the first time visitors do not yet know us, when they read the post it would be absolutely FANTASTIC if they can straightaway tell which school this particular thread is in relation too. Showing the IMG we setup in the FORUMS description would be perfect.

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Moved from template modifications to general support.

    For future reference, the template modifications forum is for threads explaining how to modify templates to change the style.
    Questions such as this go in general support.
  3. dieketzer

    dieketzer Well-Known Member

    could you use {$forum.description} in the thread_view template?
    i havent actually tried it, but it may do what you are wanting.
    Mike Law likes this.
  4. Mike Law

    Mike Law Active Member

  5. Mike

    Mike XenForo Developer Staff Member

    You want {xen:raw $forum.description} then, to prevent the HTML escaping.
    Jake Bunce and Mike Law like this.
  6. Mike Law

    Mike Law Active Member

    It worked perfect!
    Thank you so much guys!

    Now, a little more complicated perhaps.

    Can I place this in the right bottom corner of posts 50% faded as watermark?
  7. dieketzer

    dieketzer Well-Known Member

    add it to the message template.
    either make the images semi trans png or use css, such as

    eta: i just tried this and it seems to do the trick. it will add the description just above the 'reply' link in each post...
    in template message just before '<xen:if is="{$visitor.content_show_signature} && {$message.signature}">'
    add: '<div class="watermark">{xen:raw $forum.description}</div>'

    as such:
    <div class="watermark">{xen:raw $forum.description}</div>
            <xen:if is="{$visitor.content_show_signature} && {$message.signature}">
    add to extra.css:
    /* watermark image in each post */
            font-size: 10px;
            padding: 1px 5px;
            margin: -5px -5px 5px 5px;
            display: block;
            float: right;
            position: relative;
    perhaps not exactly what youre after, but its a start.
    Jake Bunce and Mike Law like this.
  8. Mike Law

    Mike Law Active Member


    Truly THANK YOU!
    this is so amazing, I will use this through the whole board!

Share This Page