The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Add rules beneath the chatbox

View previous topic View next topic Go down

Add rules beneath the chatbox

Post by Ange Tuteur on November 8th 2014, 1:18 am

Add rules beneath the chatbox




This tutorial will allow you to add a set of links, or just a link to your chatbox rules, underneath the chatbox on your Forumotion forum. This is applicable to any forum version.

Appearance under the Chatbox on the Homepage:



Adding the link below the chatbox

Go to Administration Panel > Display > Templates > General edit the index_body template. Edit


There are two variables for the chatbox, search for the one that you're using :

If the chatbox is on top of your forum :
Code:
{CHATBOX_TOP}

If the chatbox is at the bottom of your forum :
Code:
{CHATBOX_BOTTOM}

When you have found the variable, place the following code after it :
Code:
<!-- BEGIN switch_user_logged_in -->
<div align="center" class="chatRules"><a href="/URL_HERE" target="_blank">Chatbox Rules</a></div>
<!-- END switch_user_logged_in -->

You can copy and paste the link, or be creative and add something different. Just make sure that the content is between the following comments, so that it only displays to logged in members.
Code:
<!-- BEGIN switch_user_logged_in -->
content here
<!-- END switch_user_logged_in -->

Modifications :

Replace /URL_HERE by the URL of your chatbox rules. You may also use the classname .chatRules to edit the style of the chatbox rules link.

Example :
( Administration Panel > Display > Colors > CSS stylesheet )
Code:
.chatRules a {
 font-size:12px;
 font-weight:bold;
 color:#F66;
}

When finished remember to save and publish the template. Add

That's all folks ! Very good




Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum