PDA

View Full Version : Forum Display Enhancements - Better New Post Navigation


TheSupportForum
09-26-2008, 10:00 PM
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


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


REPLACE WITH


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


Continue Search :

<!-- / NAVBAR POPUP MENUS -->


Add below :

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

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

Remplace with :

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

Continue Search :

<!-- / NAVBAR POPUP MENUS -->

Add below :

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

jzulaski
09-29-2008, 01:49 PM
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>

segwayon
10-20-2008, 06:20 PM
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"]



I have difference method ;)) :

Edit templates navbar

Search . . .

segwayon
10-21-2008, 06:58 PM
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!]

BucWiLd
10-23-2008, 11:50 AM
installed. i love it thanks

redrabbit12
01-20-2009, 12:31 PM
Installed, thanks.

Graphictr
01-20-2009, 04:43 PM
thanks.

Blue91
01-21-2009, 03:24 PM
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,

GSeybold
01-23-2009, 02:20 AM
Works great in my defaults!

Thank you !

Gabby

Ice-Maiden
09-04-2009, 11:31 AM
I have difference method ;)) :

Edit templates navbar

Search

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

Remplace with :

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

Continue Search :

<!-- / NAVBAR POPUP MENUS -->

Add below :

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

Emmmmrz
12-10-2009, 01:59 AM
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. ^^