Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBay! Transform your vbulletin into an auctionhouse! Details »»
VBay! Transform your vbulletin into an auctionhouse!
Version: 1.1.10, by Blaine0002 Blaine0002 is offline
Developer Last Online: Jul 2018 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.8 Rating:
Released: 11-25-2006 Last Update: 06-16-2014 Installs: 524
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #432  
Old 05-24-2007, 07:37 PM
Rowen Rowen is offline
 
Join Date: Apr 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please update this component... It's too good of an idea to let go.
Reply With Quote
  #433  
Old 05-25-2007, 03:28 PM
pictureboarduk pictureboarduk is offline
 
Join Date: May 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Negative time / closure issue here aswell ....
Reply With Quote
  #434  
Old 05-25-2007, 05:44 PM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome hack il install it when it is past beta developments
Reply With Quote
  #435  
Old 05-27-2007, 04:33 AM
Mike Bucy Mike Bucy is offline
 
Join Date: Feb 2002
Location: Coon Rapids, MN
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See www.vbclassified.com

You'll like this product. Good support and is prompt at answering questions.
Reply With Quote
  #436  
Old 05-27-2007, 02:55 PM
Dermo-MIO Dermo-MIO is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #437  
Old 05-27-2007, 11:49 PM
chrisbeau chrisbeau is offline
 
Join Date: May 2007
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dermo-MIO View Post
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 ?
yourdomain.com/forum/vbay.php
Reply With Quote
  #438  
Old 05-28-2007, 04:38 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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') . '";');
			}
		}
replace with:
Code:
				eval('$vbayleft .= "' . fetch_template('vbay_cat_closed_row') . '";');
			}
		}
		eval('$vbayleft .= "' . fetch_template('vbay_cat_closed_end') . '";');
That should fix up the display of closed auctions




Edit "vbay_shop_row" template
find:
Code:
<td class='alt2' align='center'>{$days}D {$hours}H {$minutes}M {$rest}S</td>
replace with:
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>
That should show auctions as closed immediately



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>
replace with:
Code:
<if condition="$difference < 1">
This auction has been completed! 
<else />
{$days}D {$hours}H {$minutes}M {$rest}S
</if>
That should show auctions as closed immediately



edit "vbay_view_desc" template
find:
Code:
<if condition="$item[completed]!==1">
replace with:
Code:
<if condition="$difference > 1">
That should show auctions as closed immediately



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>
replace with:
Code:
<tr>
											<td class='alt2' align='center'><b><a href='?do=closed&showcat={$thecats['catid']}'>{$thecats['catname']}</a></b></td>
											</tr>
Fixes a typo

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'
Reply With Quote
  #439  
Old 05-30-2007, 02:35 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've also modified the "vbay.php" to send a PM to a bidder if/when they get outbid if anyone is interested...
Reply With Quote
  #440  
Old 06-02-2007, 12:30 PM
mikeylikesitz's Avatar
mikeylikesitz mikeylikesitz is offline
 
Join Date: Apr 2002
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am interested
Reply With Quote
  #441  
Old 06-02-2007, 12:59 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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');
add the following immediatelt below
Code:
  require_once('./includes/functions_vbay.php');
Search for:
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')));
      		}
and add the following immediately below:
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']}'");
and add the following ABOVE it:
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'] ."";
and add the following immediately ABOVE it

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);
To view the log, just open vbalog.txt in your browser (http://yourforum.com/forums/vbaylog.txt) I guess you could create it in the admincp dir if you wanted to hide it - there are no doubt better ways to do most of the above, but it works for me.
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: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.05575 seconds
  • Memory Usage 2,334KB
  • 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
  • (20)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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