Back to vBulletin 3.8 Template Modifications

Notices Displayed Inside of the Navbar
Mod Version: 1.00, by youradhere4222

vB Version: 3.8.4 Rating: (0 vote - 0 average) Installs: 7
Released: 24 Jan 2010 Last Update: 24 Jan 2010 Downloads: 22
Not Supported Template Edits Re-usable Code Translations Is in Beta Stage  

The display of notices can be awkward and obtrusive, especially if you have something else like ads or statistics displayed above the forum listings. Conveniently, there's an awkward and large gap between the breadcrumbs and login form.

These modifications simply create another table between the breadcrumbs and login forum. The notices will no longer be displayed under the navbar but instead inside of this table. Any excessively long text will create a vertical scroll bar.

Here's an example of what these template modifications will result in:



Template Modifications:

1. Remove the notifications code from its current position.

Find the following code in your navbar template and remove it:
Code:
<if condition="$show['notices']">
<form action="profile.php?do=dismissnotice" method="post" id="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="$return_link" />
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
        <td class="thead">$vbphrase[notices]</td>
    </tr>
    <tr>
        <td class="alt1">
            $notices
        </td>
    </tr>
    </table>
    <br />
</form>
</if>
2. Find the following code:*

Code:
<td class="alt1" width="100%">
Replace it with this:
Code:
<td class="alt1" width="25%">
3. Find the following code:*

Code:
<td class="alt2" nowrap="nowrap">
Repalce it with this:
Code:
<td class="alt2" width="25%">
4. Find the following code:*

Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
        </if>
</td>
Insert the following code after it:
Code:
<!-- Custom Notices  -->
 <td class="notices" width="50%">
<if condition="$show['notices']">
    <form action="profile.php?do=dismissnotice" method="post" id="notices">
    <input type="hidden" name="do" value="dismissnotice" />
    <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
    <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<div style="overflow:auto;height:50px">
<br>
    $notices
</form>
</if>
</td>
<!-- / Custom Notices -->
And you're done!

* These template modifications are also made within the navbar template.

Download

File Type: %1$s navbar_notifications.txt (2.6 KB, 22 downloads)

Similar Mods

Add-On Releases Navbar Mod - adds social bookmarking, notifications highlighting, & search fields vBulletin 3.7 Add-ons
Add-On Releases Navbar - adds social bookmarking, notifications highlighting, & search fields vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024