![]() |
Please update this component... It's too good of an idea to let go.
|
Negative time / closure issue here aswell ....
|
awesome hack il install it when it is past beta developments
|
See www.vbclassified.com
You'll like this product. Good support and is prompt at answering questions. |
where does the "vbay" appear i have made the new usergroup uploaded all the files giving myself the new usergroup as my 2nd usergroup but dont seem to see a new forum nor do i see any new options in making a new thread, can any1 help ?
|
Quote:
|
I've been getting ready to move form 3.5.x to 3.6.7 and decided to start tweaking vbay from scratch - I've made a notes of the basic changes I needed to make to get vbay functioning well enough to use. As you can see, most of them are small changes - I have not included any aesthetic changes - but hopefully they will help!
This change the look of vbay a little, but I haven't dug into it much yet, and it doesn't really bother me. If anyone can spot any mistakes here - please let me/us know! Thanks Create a New template called vbay_cat_closed_end Code:
</table> edit the vbay.php file and re-upload it to your server find: Code:
eval('$vbayleft .= "' . fetch_template('vbay_cat_closed_row') . '";'); Code:
eval('$vbayleft .= "' . fetch_template('vbay_cat_closed_row') . '";'); Edit "vbay_shop_row" template find: Code:
<td class='alt2' align='center'>{$days}D {$hours}H {$minutes}M {$rest}S</td> Code:
<if condition="$difference > 1"> Edit "vbay_view_info" template find: Code:
<if condition="$item[completed]==1"> Code:
<if condition="$difference < 1"> edit "vbay_view_desc" template find: Code:
<if condition="$item[completed]!==1"> Code:
<if condition="$difference > 1"> edit "vbay_cat_closed_row" template find: Code:
<tr> Code:
<tr> Although the template mods above make the close auctions a little redundant when viewing the auctions, it is still required to move the auctions to the "Closed Auctions" section and the cron job also notifies sellers buyers via PM - you could change this to only happen every 15 or 20 minutes rather than 10 if you wanted. I had to manually add it as for some reason it wasn't added automatically: In AdminCP, check the Scheduled Task Manager to see if the "closeauctions" cron job is there, if not manually add it - "Add New Scheduled Task" varname:closeauctions title: CLose vBay Auctions Minute: 0, 10, 20, 30, 40, 50 Filename: ./includes/cron/closeauctions.php Product: vbay I've found I also need to make a few changes to the MySQL database to get the vbay to allow fractional dollar values. To do this I changed the price, inc and reserve fields in the vbay_items table from "int" to "decimal(11,2)" the following SQL Query should do that for you: Code:
ALTER TABLE `vbay_items` CHANGE `price` `price` DECIMAL( 11, 2 ) NOT NULL DEFAULT '0', |
I've also modified the "vbay.php" to send a PM to a bidder if/when they get outbid if anyone is interested...
|
i am interested
|
When a new bid is placed on an item, this modification to the vbay.php file will send a PM to the old highest bidder from the new highest bidder
in vbay.php search for: search for: Code:
require_once('./includes/class_bbcode.php'); Code:
require_once('./includes/functions_vbay.php'); Code:
if ($_REQUEST['do'] == 'bid') { Code:
// send a PM to old high bidder Another modification I've made is that if a bid is placed in the last 10 minutes of teh auction, teh auction end time is automatically extended to 10 minutes. I do this to stop sniping, and to also make it somewhat more like a 'real' auction as opposed to ebay. To do this, edit vbay.php and find: Code:
$db->query("update " . TABLE_PREFIX . "vbay_items set highbidder = " . $vbulletin->userinfo['userid'] . " where id='{$_REQUEST['dobid']}'"); Code:
// Increase end auction time by ten miniutes if bid in last 10 minutes - stops sniping! I've also added logging of bids to a simple text file - this is just in my forum root as I don't feel the need to hide it. To add it, edit vbay.php search for Code:
$vbulletin->url = "vbay.php?do=item&viewitem=" . $_REQUEST['dobid'] . $vbulletin->session->vars['sessionurl'] .""; Code:
$logentry = date('Ymd') . ' ' . strftime('%T') . ' Auction: ' . $_REQUEST['dobid'] . ', Amount: ' . $bid . ', User: ' . $vbulletin->userinfo['username']; |
All times are GMT. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|