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
  #12  
Old 08-25-2005, 12:39 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. It's running on my site now.
Reply With Quote
  #13  
Old 10-10-2005, 08:11 AM
Cheertobi Cheertobi is offline
 
Join Date: Aug 2004
Location: Germany
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

are there any updates to this mod? Does it work with Gold? Can it be a plugin? How does it handle the new databasetracking system?

Regards,

Tobi
Reply With Quote
  #14  
Old 10-10-2005, 05:24 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works with gold, and it can be a plugin if you don't mind repeating the code block. I prefer to optimize it and leave it as a hack for myself.

Amy
Reply With Quote
  #15  
Old 10-10-2005, 06:36 PM
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
Location: I don't know
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm. Another fine hack Amy, Thx!
Reply With Quote
  #16  
Old 10-15-2005, 02:25 PM
got1-2 got1-2 is offline
 
Join Date: Mar 2005
Location: here
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perhaps a file update wothout the typo's would be good
Reply With Quote
  #17  
Old 10-22-2005, 10:02 PM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just tried this and despite using the file edit or the hook/plugin I get the same results...

Any option older than 24 hours works fine... Any option 'younger' than 24 hours (i.e. the 15 mins or 1 hour) still displays 24 hours of posts...

Any ideas?
Reply With Quote
  #18  
Old 10-26-2005, 10:39 PM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

guess not!
Reply With Quote
  #19  
Old 10-27-2005, 08:49 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
Hmm ... are you sure?

Hookname: search_getnew_start
PHP Code:
if ($_REQUEST['do'] == 'getdaily')
{
    
$vbulletin->input->clean_array_gpc('r', array(
        
'hours' => TYPE_UINT,
        
'minutes' => TYPE_UINT,
        
'seconds' => TYPE_UINT
    
));
 
    if ((
$vbulletin->GPC['days'] < 1) AND(!($vbulletin->GPC['hours']))AND(!($vbulletin->GPC['minutes']))AND(!($vbulletin->GPC['seconds'])))
    {
        
$vbulletin->GPC['days'] = 1;
        
$vbulletin->GPC['hours'] = 0;
        
$vbulletin->GPC['minutes'] = 0;
        
$vbulletin->GPC['seconds'] = 1;
    }
    elseif(
$vbulletin->GPC['days']<1)
    {
        
$vbulletin->GPC['days'] = 0;
    }
    
$datecut TIMENOW - (($vbulletin->GPC['days']*24*60*60) + ($vbulletin->GPC['hours']*60*60) + ($vbulletin->GPC['minutes']*60) + $vbulletin->GPC['seconds']);


Btw: There is a small typo in the instructions: 'seconds' => TYPT_UINT instead of 'seconds' => TYPE_UINT


That was close but to do that you need to change if from using days. Like I used days2 and changed the navbar to reflect it to use it as a plugin. Becuase by then days will already be set to one if it was less then one.
Reply With Quote
  #20  
Old 10-29-2005, 05:41 PM
Anne Lise Anne Lise is offline
 
Join Date: Mar 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why why why

I can't get it working. I should be a box at the new posts with all these options right? Nothing is changed at my side. And I have done everything the receipt tells me to.
Reply With Quote
  #21  
Old 10-29-2005, 05:52 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't test to see if it is working on your site because you don't allow guests to use search.

Amy
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 09:46 PM.


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.04389 seconds
  • Memory Usage 2,324KB
  • 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_php
  • (1)bbcode_quote
  • (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
  • (3)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