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 |
#47
|
|||
|
|||
Amy u do update ur Hack ?
|
#48
|
||||
|
||||
Yes. I fixed the typos in the install directions
|
#49
|
|||
|
|||
Amy,
Does this only require a file edit because of the minutes, and seconds thing? How would I do it as a hook? I want no file edits, i dont care how resource intensive it is. Thanks! |
#50
|
||||
|
||||
I believe Kirby posted how to do it as a hook earlier in the thread.
|
#51
|
|||
|
|||
As with the 3.0 version, I've added a form at the bottom of my advanced search page so users can easily search for exactly how far back they want. (I've omitted seconds because, well, who needs it? But if you want it, just add the line in there, same format as days, hours, and minutes). Note, I'm using "days2" as the variable for days. Adjust as necessary for your installation.
Just put the following code above "$footer" in your seach_forums template (adjust font colors to fit your board, of course). Code:
<table> <td width=200> <fieldset class="fieldset" style="margin:0px"> <legend><font color=#FF6640>Show New Posts from the last</font></legend> <div style="padding:$stylevar[formspacer]px"> <FORM ACTION=search.php?> <input type=hidden name=do value=getdaily> <INPUT NAME=days2 size=3 maxlength=3><font color=#FFFFFF> days,</font><br /> <INPUT NAME=hours size=3 maxlength=3><font color=#FFFFFF> hours,</font><br /> <INPUT name=minutes size=3 mazlength=2><font color=#FFFFFF> minutes.</font><br /> <br /> <INPUT TYPE=submit Value=Search></form></div> </fieldset> </td> </table> |
#52
|
|||
|
|||
Quote:
i'm using the hook and then copying the drop down menu instructions....3.5.4 |
#53
|
||||
|
||||
I do not know. It may be a server issue, but I cannot even verify the problem because you do not have it enabled for guests. In fact, nobody who has claimed the problem has had a site I can actually see it happen on.
|
#54
|
|||
|
|||
Quote:
didn't like the look, so made it into a horizontal bar above Search Forums search box (Advanced search). Template: search_forums id:963 Add the following, no other changes needed for this: Code:
<!-- Begin search in x time hack --> <div id="postsinx" class="content"> <div style="padding:$stylevar[formspacer]px" class="tcat"> Recent Posts Search </div> <div class="panelsurround"> <div class="panel"> <fieldset class="fieldset" style="margin:0px"> <legend>Show New Posts from the last:</legend> <div style="padding:$stylevar[formspacer]px"> <form action="search.php?"> <input type="hidden" name="do" value="getdaily" /> <input type="text" class="bginput" name="days" size="3" maxlength="3" /> days, <input type="text" class="bginput" name="hours" size="3" maxlength="3" /> hours, <input type="text" class="bginput" name="minutes" size="3" maxlength="2" /> minutes. <input type="submit" value="Search"></input></form> </div> </fieldset> </div> </div> </div> <br /> <!-- End search in x time hack --> It's also valid xhtml transitional code. Hope you like it! I'm also about to use Amy's posts in x hack. Grant |
#55
|
|||
|
|||
I'm new to vBulletin and i like it very much. I used Snitz Forums before this forum. On those forums i liked the active topics very much. So i installed this mod. How editing my template did lead to the result i wanted.
This is the code of my Template header the piece that is the line of the navbar. Quote:
|
#56
|
||||
|
||||
Great! Works fabulously: 3.6.4
Thanx for the sharing Jacquii. |
#57
|
|||
|
|||
I have this same issue.
|
#58
|
||||
|
||||
I want to install this but i have a question ...
The directions state in template add Quote:
|
#59
|
||||
|
||||
|
#60
|
||||
|
||||
works grreat in 3.6.8 also
|
#61
|
|||
|
|||
Will a fresh install of this for 3.7.0 (Beta 5) work...or does this need to be rewritten for 3.7?
Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|