The Arcive of vBulletin Modifications Site. |
|
Notices Displayed Inside of the Navbar Details »»
|
|||||||||||||||||||||||||||||
|
Notices Displayed Inside of the Navbar
Developer Last Online: May 2010
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>
Code:
<td class="alt1" width="100%"> Code:
<td class="alt1" width="25%"> Code:
<td class="alt2" nowrap="nowrap"> Code:
<td class="alt2" width="25%"> 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>
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 -->
* These template modifications are also made within the navbar template. Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Looking at screenshot, where is the breadcrumb link that goes beside the little folder icon?
|
|
#3
|
|||
|
|||
|
It's there. I blurred it out of the picture using MS Paint.
|
|
#4
|
||||
|
||||
|
Good idea. I was wondering what to do with all that space now that I pulled the quick log in out of the navbar.
|
![]() |
|
|