The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Expanded Get New Posts - Hours, Minutes and Even Seconds Details »» | |||||||||||||||||||||||||||
Expanded Get New Posts - Hours, Minutes and Even Seconds
Developer Last Online: Nov 2013
OK. I'll admit it. The seconds is overkill. Sue me.
This little mod (unfortunately, it can't be a plugin) requires you to edit one file and a template or two. I have included a suggested template edit, but how you use the search links is up to you. It is similar to the getdaily feature of vbulletin, which allows users to search for posts submitted in x number of days. This expansion allows users to search for posts submitted within x hours, x minutes or even x seconds. It also allows users to search for any combination thereof. Show Your Support
|
Comments |
#2
|
||||
|
||||
This post reserved for a FAQ
|
#3
|
||||
|
||||
Nice!
|
#4
|
||||
|
||||
Quote:
Hookname: search_getnew_start PHP Code:
|
#5
|
||||
|
||||
OK. I guess I just didn't see the point of repeating the code twice - felt it better to replace the existing.
Amy |
#6
|
||||
|
||||
Cool, but it shows "posts from last day" in the header of the search results, regardless of how many days were searched.
|
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
Thanks for this, just a little mistake in your get hours, you had 2 4's instead of 4 & 8
anyway for a little more overkill use this, it add's Find all your posts Find all your threads Get all unanswered posts Code:
<if condition="$show['searchbuttons']"> <div class="vbmenu_popup" id="navbar_posts_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">$vbphrase[get_posts_nav]</td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">Get All New Posts</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=15" accesskey="2">Last 15 Minutes</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=30" accesskey="2">Last 30 Minutes</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=1" accesskey="2">Last Hour</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=2" accesskey="2">2 Hours</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=4" accesskey="2">4 Hours</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=8" accesskey="2">8 Hours</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=12" accesskey="2">12 Hours</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=1" accesskey="2">1 Day</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=2" accesskey="2">2 Days</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=3" accesskey="2">3 Days</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=4" accesskey="2">4 Days</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[urlusername]"><phrase 1="$bbuserinfo[username]">Find All Your Threads</phrase></a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]"><phrase 1="$bbuserinfo[username]">Find All Your Posts</phrase></a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit=0&dontcache=1">Get Unanswered Posts</a></td></tr> </table> </div> </if> |
#9
|
||||
|
||||
Thanks for contributing
|
#10
|
||||
|
||||
Amy have you had this running with RC2?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|