vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VBay! Transform your vbulletin into an auctionhouse! (https://vborg.vbsupport.ru/showthread.php?t=132544)

Spiffware 11-27-2006 11:22 AM

i love it i will want it when is more complete sweet. I wat that peice of paper for $200.00

MrNase 11-27-2006 11:34 AM

Hope this helps to solve your countdown problems. :)

PHP Code:

/*
* calculates a countdown to a given date
*
* @package    vBulletin
* @author    Dominik Hahn, MrNase
* @param    unixtime
* @return    array
*/
function auctionCountdown($time) {
        
$difference $time-time();
        
$days floor($difference/86400);     # days
        
$rest $difference-($days*86400);
        
$hours floor($rest/3600);          # hours
        
$rest $rest-($hours*3600);
        
$minutes floor($rest/60);             # minutes
        
$rest $rest-($minutes*60);         # seconds
    
return array($days$hours$minutes$rest);
}

# EXAMPLE:
$time auctionCountdown(mktime(0,0,0112007));
echo 
$time['0']. 'days';
echo 
$time['1']. 'hours';
echo 
$time['2']. 'minutes';
echo 
$time['3']. 'seconds'


Cyricx 11-27-2006 04:48 PM

This is an AWESOME Idea!!

I would like to request that there is two options.

One for actual dollar amounts, and one for fictional funds.

For example there are many online games that have unique or hard to find items that are sometimes auctioned on forums for ingame items. Having something like this to be able to use on the forums is an amazing possibility! :)

imported_predatorkill 11-27-2006 04:56 PM

marked as installed,5 starred,nominated for hot hack and waiting for the stable version.Sorry for not testing,i aint good in coding...

Blaine0002 11-27-2006 06:10 PM

Quote:

Originally Posted by imported_predatorkill (Post 1126507)
marked as installed,5 starred,nominated for hot hack and waiting for the stable version.Sorry for not testing,i aint good in coding...

Thanks though!

I will be making a to do list and will try do do as many suggestions as I can.

linkasaur 11-28-2006 04:13 AM

What a great product, Blaine0002!

Mr Peabody 11-28-2006 09:12 AM

This will be perfect for our community, I hope this hack when finished gets continued support.

Blaine0002 11-28-2006 06:24 PM

I have an admincp and a fixed day count at home.... since noone has found any bugs so far i guess it will be able to be used on whatever board you want.
I will release an update when I get home

ragtek 11-28-2006 06:34 PM

jea
sounds very good
:)
thx for the fine work

Keev 11-28-2006 09:22 PM

wow... i am in line for this one.


All times are GMT. The time now is 05:36 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.02088 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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