The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VBay! Transform your vbulletin into an auctionhouse! Details »» | |||||||||||||||||||||||||||
VBay! Transform your vbulletin into an auctionhouse!
Developer Last Online: Jul 2018
VBay.
This will add an auction section to your bulletin! If you want to donate to me click the link over there ----------------------> I am open to suggestions, bugs, comments, insults, and anything else you might say to me at the time :P To do list: *use forums/categories/subforums for your auctionhouse. high bidder userid -> username *" in description cuts the description at that point add buyer name fix pm formatting add more currencies intergrate with trader ratings add paypal api bidder usergroups *hot auctions on main < - Available with addon (wont be packaged in vbay) admin editing auctions *set up for use with forum commenting. *fix amount of days an auction can be posted (more than 2 char) ability to prune old auctions make sure buy it now is using buy it now price, not bid. allow admin ability to specify bid/buyitnow/both overrides. * = Completed. Features: Full BBCode support. Specification of everything, Money Auction length ECT. Image uploader for auctions. Closed auction section. 3 auction types, bid, buy it now, or both. To install Upload files, and import product as usual Make a new usergroup and call it the sellers usergroup, do what you want with this group (allow people to request addition maybe?) Go to vbulletin options and into vbay, set the usergroup id of the sellers group you just made. To upgrade re upload all files import new product REVERT YOUR TEMPLATES Show Your Support
|
Comments |
#432
|
|||
|
|||
Please update this component... It's too good of an idea to let go.
|
#433
|
|||
|
|||
Negative time / closure issue here aswell ....
|
#434
|
|||
|
|||
awesome hack il install it when it is past beta developments
|
#435
|
|||
|
|||
See www.vbclassified.com
You'll like this product. Good support and is prompt at answering questions. |
#436
|
|||
|
|||
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 ?
|
#437
|
|||
|
|||
yourdomain.com/forum/vbay.php
|
#438
|
|||
|
|||
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') . '";'); } } eval('$vbayleft .= "' . fetch_template('vbay_cat_closed_end') . '";'); 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"> <td class='alt2' align='center'>{$days}D {$hours}H {$minutes}M {$rest}S</td> <else /> <td class='alt2' align='center'>Auction Complete</td> </if> Edit "vbay_view_info" template find: Code:
<if condition="$item[completed]==1"> This auction has been completed! </if> <if condition="$item[completed]!==1"> {$days}D {$hours}H {$minutes}M {$rest}S </if> Code:
<if condition="$difference < 1"> This auction has been completed! <else /> {$days}D {$hours}H {$minutes}M {$rest}S </if> 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> <td class='alt2' align='center'><b><a href='?do?=cat&showcat={$thecats['catid']}'>{$thecats['catname']}</a></b></td> </tr> Code:
<tr> <td class='alt2' align='center'><b><a href='?do=closed&showcat={$thecats['catid']}'>{$thecats['catname']}</a></b></td> </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', CHANGE `inc` `inc` DECIMAL( 11, 2 ) NOT NULL DEFAULT '1', CHANGE `reserve` `reserve` DECIMAL( 11, 2 ) NOT NULL DEFAULT '0' |
#439
|
|||
|
|||
I've also modified the "vbay.php" to send a PM to a bidder if/when they get outbid if anyone is interested...
|
#440
|
||||
|
||||
i am interested
|
#441
|
|||
|
|||
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') { $check = $db->query("select * from " . TABLE_PREFIX . "vbay_items where id='{$_REQUEST['dobid']}'"); $item = $db->fetch_array($check); if ($item['owner'] == $vbulletin->userinfo['userid']){ eval(standard_error(fetch_error('vbay_auction_own'))); } if ($item['completetime'] < time()) { eval(standard_error(fetch_error('vbay_auction_ended'))); } else { if ($item['price'] + $item['inc'] > $_POST['bid']) { eval(standard_error(fetch_error('vbay_bid_higher'))); } Code:
// send a PM to old high bidder if ($item['bids'] > 0) { $pmhigh_bidder = $vbulletin->db->query("select * from " . TABLE_PREFIX . "user where userid='{$item['highbidder']}'"); $pmbidder = $vbulletin->db->fetch_array($pmhigh_bidder); $title = "You have been outbid: {$item['name']}"; $message = "Hello, I have just outbid you on this auction! This is an automated system message."; send_pm($vbulletin->userinfo['username'],$vbulletin->userinfo['userid'],$pmbidder['username'],$title,$message); } 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! $timeremaining = $item['completetime']-time(); if ($timeremaining < 600){ $endstamp = 600 + time(); $db->query("update " . TABLE_PREFIX . "vbay_items set completetime = '{$endstamp}' where id='{$_REQUEST['dobid']}'"); 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']; $vbaylog = fopen('./vbaylog.txt','a') or die("can't open vbaylog: $php_errormsg"); fwrite($vbaylog, $logentry . "\r\n"); fflush($vbaylog); fclose($vbaylog) or die ($php_errormsg); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|