Quote:
Originally Posted by BaconDelight
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).
|
I liked this idea and ran with it a little.
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 -->
Class="content" is my own, puts a grey line around the whole box, but the rest is standard vbulletin. Not perfect, but works and looks fine. And no tables!
It's also valid xhtml transitional code.
Hope you like it!
I'm also about to use Amy's posts in x hack.
Grant