vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Better New Post Navigation (https://vborg.vbsupport.ru/showthread.php?t=192058)

TheSupportForum 09-26-2008 10:00 PM

Better New Post Navigation
 
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/

NAZIA 09-27-2008 05:02 PM

thanks,, this feature should be in vb 3.8
Nice

imedic 09-27-2008 05:07 PM

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...

xixxon 09-27-2008 08:14 PM

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 -->


Magnumutz 09-28-2008 06:27 AM

simonhind's method didn't work for me.
But xixxon's did like a charm :)
Thanks dude !!

TheSupportForum 09-28-2008 06:56 AM

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

xixxon 09-28-2008 05:42 PM

yeah it depends on the style, the code above based on the default ones :D

Martell 09-28-2008 06:24 PM

xixxon, your variant works, thank you.;)

carrlos 09-28-2008 06:25 PM

Product anyone???? :D

djrapid.com 09-28-2008 11:15 PM

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


All times are GMT. The time now is 10:23 PM.

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.01040 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete