Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Expanded Get New Posts - Hours, Minutes and Even Seconds Details »»
Expanded Get New Posts - Hours, Minutes and Even Seconds
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 06-10-2005 Last Update: 02-02-2006 Installs: 81
Template Edits
Code Changes  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 01-30-2006, 09:02 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cheers Amy, seems to be working great atm
Reply With Quote
  #43  
Old 01-30-2006, 09:06 PM
Joey805 Joey805 is offline
 
Join Date: Jan 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am pretty sure my search.php is correct because i can use this url and it works correctly to pull up posts modified in the last hour: http://www.domainname.com/forum/sear...tdaily&hours=1

I think the problem is with the code in the template because I dont even get the drop down menu showing the choices of times.

I tried this 3 times and still cant get it working? Does me running the Legacy (Vertical) Postbit Template setting have anything to do with this?

Thanks,

Joey
Reply With Quote
  #44  
Old 01-30-2006, 09:25 PM
Joey805 Joey805 is offline
 
Join Date: Jan 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh just got it workin! Missed one thing in the navbar..hehe
Reply With Quote
  #45  
Old 02-02-2006, 04:59 AM
Joey805 Joey805 is offline
 
Join Date: Jan 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I just ran into a little glitch when using this. Whenever I click on QUICK LINKS and then TODAYS POST I get two Nav Bars and also double arrows next to the drop down menus.

Attached is a screen shot of this. How do I fix it?
Reply With Quote
  #46  
Old 02-02-2006, 09:50 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You undo your navbar edits and try again.
Reply With Quote
  #47  
Old 02-06-2006, 12:47 AM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy u do update ur Hack ?
Reply With Quote
  #48  
Old 02-06-2006, 01:20 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. I fixed the typos in the install directions
Reply With Quote
  #49  
Old 02-15-2006, 05:16 AM
cmiller1014 cmiller1014 is offline
 
Join Date: May 2004
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #50  
Old 02-15-2006, 09:53 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe Kirby posted how to do it as a hook earlier in the thread.
Reply With Quote
  #51  
Old 02-16-2006, 08:12 PM
BaconDelight BaconDelight is offline
 
Join Date: Jan 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05290 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete