View Single Post
  #54  
Old 04-08-2006, 02:01 PM
GrantHorizons GrantHorizons is offline
 
Join Date: Mar 2005
Location: Vancouver BC Canada
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01234 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete