Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 09-27-2008, 05:02 PM
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Location: Multan Pakistan
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks,, this feature should be in vb 3.8
Nice
Reply With Quote
  #3  
Old 09-27-2008, 05:07 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very usefull. Coincidentally I was looking for a mod / hack to have new messages from selective forums (user selectable)
Users complain they want to read new posts only in some forums.
Maybe can be added here...
Reply With Quote
  #4  
Old 09-27-2008, 08:14 PM
xixxon's Avatar
xixxon xixxon is offline
 
Join Date: Jun 2007
Location: Việt Nam.
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Reply With Quote
  #5  
Old 09-28-2008, 06:27 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

simonhind's method didn't work for me.
But xixxon's did like a charm
Thanks dude !!
Reply With Quote
  #6  
Old 09-28-2008, 06:56 AM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its the same method but in more detail, it you have a custom template other than the default then XIXXONs method wont work as

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

does not exist

it might me

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

and it might not be in template : navbar
Reply With Quote
  #7  
Old 09-28-2008, 05:42 PM
xixxon's Avatar
xixxon xixxon is offline
 
Join Date: Jun 2007
Location: Việt Nam.
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah it depends on the style, the code above based on the default ones
Reply With Quote
  #8  
Old 09-28-2008, 06:24 PM
Martell Martell is offline
 
Join Date: Dec 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xixxon, your variant works, thank you.
Reply With Quote
  #9  
Old 09-28-2008, 06:25 PM
carrlos's Avatar
carrlos carrlos is offline
 
Join Date: Nov 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Product anyone????
Reply With Quote
  #10  
Old 09-28-2008, 11:15 PM
djrapid.com djrapid.com is offline
 
Join Date: May 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry simonhind, i could not get this to work.
Thanks xixxon, your script worked for me and using
Reply With Quote
Reply


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 08:36 AM.


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.04872 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
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
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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