[FORUM-HOME] Add Notices/Advertisements to Forums on homepage
This hack will allow you to add custom Notices/Advertisements/Messages underneath individual forums on the forum home page.
For example you could put a custom no-permission notice underneath your private forums with a link to your sales thread. You could place advertisements or any other links/text underneath specific forums on your home page. You need to make 2 simple template edits to make this happen. Step 1 - Add the following to the end of your additional.css template | Styles & Templates > Edit Templates > CSS Templates > Additional.css Code:
/* Forum Notice Box */ .forum_notice_box { margin-top:52px; margin-bottom:10px; margin-left:-1px; margin-right:-1px; padding-left:5px; padding-bottom:8px; background-color:#d00000; color:white; font-size:12px; } .forum_notice_box_text { position:relative; top:3px; } Styles & Templates > Edit Templates > FORUMHOME Templates > forumhome_forumbit_level2_post In this template find: Code:
<vb:if condition="$childforumbits"> Code:
<!-- Forum Notice Box --> <vb:if condition="$forum[forumid] == 402"> <vb:if condition="is_member_of($bbuserinfo, 6,7,8)"> <div class="forum_notice_box"> <div class="forum_notice_box_text"> You're seeing this message because you don't have access to the private forums. More information at <a href="http://www.Yourforumcom/thread-link"> <span style="color:#ffffff;">http://www.Yourforumcom/thread-link</span> </a> </div> </div> </vb:if> </vb:if> <!-- Forum Notice Box --> Change USERGROUP IDs to the IDs of the usergroups that CAN see this message. Change your URLs and/or adjust the message to suit your needs. You MAY have to change the Margin-top: value to suit your forum's needs if your forumbits are different heights That's it! Repeat step 2 for each forum you wish to display a custom notice under. Mark as installed! Download No files for download. Screenshots |
Similar Mods
Forum Home Enhancements Dashed - Forum Home Dashed Notices (Visually Appealing!) | vBulletin 3.8 Template Modifications |
Forum Home Advertisements | vBulletin 3.5 Template Modifications |