Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
Notices Displayed Inside of the Navbar Details »»
Notices Displayed Inside of the Navbar
Version: 1.00, by youradhere4222 youradhere4222 is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.4 Rating:
Released: 01-23-2010 Last Update: 01-23-2010 Installs: 7
Template Edits
Re-useable Code Translations Is in Beta Stage  
No support by the author.

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 Now

File Type: txt navbar_notifications.txt (2.6 KB, 20 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-24-2010, 10:52 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking at screenshot, where is the breadcrumb link that goes beside the little folder icon?
Reply With Quote
  #3  
Old 01-24-2010, 10:57 AM
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
Location: Houston, TX
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChopSuey View Post
Looking at screenshot, where is the breadcrumb link that goes beside the little folder icon?
It's there. I blurred it out of the picture using MS Paint.
Reply With Quote
  #4  
Old 01-25-2010, 10:52 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good idea. I was wondering what to do with all that space now that I pulled the quick log in out of the navbar.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07951 seconds
  • Memory Usage 2,246KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete