vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Expanded Get New Posts - Hours, Minutes and Even Seconds (https://vborg.vbsupport.ru/showthread.php?t=82872)

amykhar 08-25-2005 12:39 PM

Yes. It's running on my site now.

Cheertobi 10-10-2005 08:11 AM

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

amykhar 10-10-2005 05:24 PM

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

Sooner95 10-10-2005 06:36 PM

Works like a charm. Another fine hack Amy, Thx!

got1-2 10-15-2005 02:25 PM

perhaps a file update wothout the typo's would be good

tokenyank 10-22-2005 10:02 PM

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?

tokenyank 10-26-2005 10:39 PM

guess not! :(

eXtremeTim 10-27-2005 08:49 PM

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. ;)

Anne Lise 10-29-2005 05:41 PM

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.

amykhar 10-29-2005 05:52 PM

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

Amy


All times are GMT. The time now is 07:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01171 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete