Back to vBulletin 4.x Template Modifications

[FORUM-HOME] Add Notices/Advertisements to Forums on homepage
Mod Version: 1.00, by addamroy

vB Version: 4.2.x Rating: (1 vote - 5.00 average) Installs: 6
Released: 10 Jun 2014 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

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;
}
Step 2 - Open your forumhome_forumbit_level2_post template |
Styles & Templates > Edit Templates > FORUMHOME Templates > forumhome_forumbit_level2_post

In this template find:
Code:
<vb:if condition="$childforumbits">
Add this code right above it:
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.&nbsp;&nbsp;  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 your FORUM ID to the ID of the forum you wish to display your message on.

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

Click image for larger version
Name:	example1.png
Views:	389
Size:	13.4 KB
ID:	149363  

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

vblts.ru supports vBulletin®, 2022-2024