• 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

Mike Law

Active member
#1
OK,

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.

Anyone?
 

Brogan

XenForo moderator
Staff member
#2
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.
 

dieketzer

Well-known member
#3
OK,

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.

Anyone?
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

Active member
#6
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?
 

dieketzer

Well-known member
#7
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?
add it to the message template.
either make the images semi trans png or use css, such as
opacity:0.5;

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:
Code:
<div class="watermark">{xen:raw $forum.description}</div>
        <xen:if is="{$visitor.content_show_signature} && {$message.signature}">
add to extra.css:
Code:
/* watermark image in each post */
.watermark
{
        font-size: 10px;
        padding: 1px 5px;
        margin: -5px -5px 5px 5px;
        display: block;
        float: right;
        position: relative;
        opacity:0.5;
}
perhaps not exactly what youre after, but its a start.