Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Better New Post Navigation Details »»
Better New Post Navigation
Version: 1.00, by TheSupportForum TheSupportForum is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.3 Rating:
Released: 09-26-2008 Last Update: Never Installs: 42
Template Edits
 
No support by the author.

Brought To You By

Tutorials4you.co.uk


=======================
Better Newpost Nav item
vBulletin 3.7.3--
Author (c)
Simon Hind
Tutorials4you
Author Contact
http://www.tutorials4you.co.uk/
27/09/2008 - Date of Update
=======================



=======================
LICENCE
Better Newpost Nav item
vBulletin 3.7.3
--
LICENCE - do not modify the documentation or the links,
please also leave the comment tags which show tutorials4you.co.uk in the comments
=======================



=======================
Change Log
-- Now using xixxon Method
=======================



=======================
About
--
This small modification will replace the standard New Post Navbit in either
your navigation bar or your header (this depends on your template style)
=======================


=======================
Installation
--
**********************************
STEP 1 - Login to Admincp
**********************************

AdminCP > Styles & Templates > Style Manager > Default Style > Navigation / Breadcrumb Templates > Navbar


**********************************
STEP 2 - The Template edit
**********************************
FIND


Code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>

REPLACE WITH


Code:
<td id="newposts" class="vbmenu_control">
    <a href="#">$vbphrase[new_posts_nav]</a>
    <script type="text/javascript">
        vbmenu_register("newposts");
    </script>
</td>

Continue Search :

Code:
<!-- / NAVBAR POPUP MENUS -->

Add below :

Code:
<!-- new posts menu -->

<div class="vbmenu_popup" id="newposts_menu" style="display:none" align="left">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">New Posts</td></tr>
<tr><td class="vbmenu_option"><a href="search.php?do=getnew">Previous Visit</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?do=getdaily">Previous Day</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?do=getdaily&days=7">Previous Week</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?do=getdaily&days=30">Previous Month</a></td></tr>
</table>
</div>
<!-- / new posts menu -->

important:
vbmenu_control - is used in all basic template styles which have not been edited and using stanard coding
navitem - is used in almost all premium/professioanl template styles

**********************************
SCREENSHOT INFORMATION
**********************************

i have provided 3 screenshots from my template styles

Default - vbulletin style
Crystal Clean - http://www.completevb.com/
Twisted Dark - http://www.completevb.com/

Show Your Support

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

Comments
  #12  
Old 09-29-2008, 01:49 PM
jzulaski jzulaski is offline
 
Join Date: Jun 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked in my default view the first try. Thanks guys.

I just wish I could get it to work in the Blak-Ice skin but first, I'll have to make a "New Posts" button and add all that code. <heavy sigh>
Reply With Quote
  #13  
Old 10-20-2008, 06:20 PM
segwayon segwayon is offline
 
Join Date: Mar 2008
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the top-most option (which says simply "New Posts" in bold) link to any unread posts? All my forum's posts are currently read, and I would need to have an option which lists only any and all unread posts at any one time.

Not sure what the "Previous Visit" might indicate - example, what if I am logged in all morning, and just want to view new unread posts from the current visit?

Thanks!

[Update - I see the hyperlink now - Previous Visits is the getnew. I might rename it simply "All Unread"]



Quote:
Originally Posted by xixxon View Post
I have difference method ) :

Edit templates navbar

Search . . .
Reply With Quote
  #14  
Old 10-21-2008, 06:58 PM
segwayon segwayon is offline
 
Join Date: Mar 2008
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xixxon View Post
I have difference method )
Curious how to colorize the menu options on mouseover. Right now the hovered item's text disappears, and my users are asking to allow them to continue to view the selection they are about to click into.

All the other navbar menus present a gray background during the hover event. This mod of yours seems to change the text color to white okay, but doesn't change the background from white to gray.

Any pointers appreciated.

[Update: I studied the CCS settings on the style and just changed your title="nohilite" to title="hilite" within the navbar template on each 4 rows, and now the background color changes on the menu sub-option selection. Thanks!]
Reply With Quote
  #15  
Old 10-23-2008, 11:50 AM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed. i love it thanks
Reply With Quote
  #16  
Old 01-20-2009, 12:31 PM
redrabbit12 redrabbit12 is offline
 
Join Date: Dec 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks.
Reply With Quote
  #17  
Old 01-20-2009, 04:43 PM
Graphictr's Avatar
Graphictr Graphictr is offline
 
Join Date: Jan 2009
Location: Turkiye
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks.
Reply With Quote
  #18  
Old 01-21-2009, 03:24 PM
Blue91's Avatar
Blue91 Blue91 is offline
 
Join Date: Apr 2002
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have this working in 3.8? Just curious before I install.

Also, how hard to make this into a "product" that can easily be installed/removed? When I upgrade, I always forget which hacks were installed if I just add them to templates.

Thanks,
Reply With Quote
  #19  
Old 01-23-2009, 02:20 AM
GSeybold GSeybold is offline
 
Join Date: Dec 2007
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great in my defaults!

Thank you !

Gabby
Reply With Quote
  #20  
Old 09-04-2009, 11:31 AM
Ice-Maiden Ice-Maiden is offline
 
Join Date: Jul 2009
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xixxon View Post
I have difference method ) :

Edit templates navbar

Search

Code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Remplace with :

Code:
<td id="newposts" class="vbmenu_control">
    <a href="#">$vbphrase[new_posts_nav]</a>
    <script type="text/javascript">
        vbmenu_register("newposts");
    </script>
</td>
Continue Search :

Code:
<!-- / NAVBAR POPUP MENUS -->
Add below :

Code:
<!-- NEW POSTS MENUS -->
<div class="vbmenu_popup" id="newposts_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">$vbphrase[new_posts_nav]</td>
        </tr>
 
       <tr>
            <td class="vbmenu_option" title="nohilite"><a href="search.php?do=getnew">Previous Visit</a>
</td>
</tr>
 <tr>
<td class="vbmenu_option" title="nohilite">
<a href="search.php?do=getdaily">Previous Day</a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<a href="search.php?do=getdaily&days=7">Previous Week</a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<a href="search.php?do=getdaily&days=30">Previous Month</a></td>
</tr>
</table>
</div>
<!-- / NEW POSTS MENUS -->

The original post and codes in this thread didnt work when i added them, but these codes above worked like a dream - thankyou so much for adding this in here!!:up:
Reply With Quote
  #21  
Old 12-10-2009, 01:59 AM
Emmmmrz's Avatar
Emmmmrz Emmmmrz is offline
 
Join Date: Jul 2008
Location: NorthPole
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually was yelled at by my members when I installed this on the new posts button; but when I moved it to the search menu everyone turned into happy campers. ^^
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 11:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04726 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete