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
  #1522  
Old 10-08-2009, 04:46 PM
realdx realdx is offline
 
Join Date: Mar 2009
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you canT edit the product once published..
Reply With Quote
  #1523  
Old 10-12-2009, 08:36 PM
godarmy godarmy is offline
 
Join Date: May 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed on 3.8.4 pl 1...and it's work...but...need some new feature...hope that u can modif it again...

like what realdx say...it cannot be edited if the product is published...
Reply With Quote
  #1524  
Old 10-14-2009, 09:58 AM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, and running it in admin-only mode now.

I just seem to have trouble with my thumbnails. Only a red X shown. In the database, the thumbdata field is empty. I tried taking a peek at the vbaytn.php page, but saw nothing out of the ordinary in there.

Also tried rerunning the vbaytn page with the simple_reset option for the specific item, but no luck with that either.

Any pointers? I tried turning on logging to file in order to hopefully get more info, but nothing there, either

Thanks in advance.

Edit: Some nice extra features I'd love:

- Easily adjust the address fields. Took me quite some time to manually edit out everything to suit my needs.
- Ability to adjust an auction as long as no bids were made yet.
- Subcategories
- Ability to add displayorder to categories
- Starting price should be possible to bid while no bids made yet (I suspect I can handle this myself)
- Move thumbnails and images to the filesystem, or better support for galleries

Other than that, works fine for now, with the exception of the thumbnails not shoiwng up.

Edit2:
Tried with a different picture, and that worked fine. Maybe it's only due to my first image being .bmp? Will have to test a bit more later.

Edit3:
When the bmp image was converted to JPG, the thumbnail showed up. I ended up removing bmp from the allowed image types.
I also managed to hack the mod a little so it is now possible to actually bid the startprice rather than the startprice + inc only (if you want to do this yourself, edit vbay.php and look for:

Code:
$lowest_bid = $item['price'] + $item['inc'];
Change to:

Code:
      if($item[bids] == 0) {
			$lowest_bid = $item['price'];
		} else {
			$lowest_bid = $item['price'] + $item['inc'];
		}
And another edit further down. Look for:

Code:
	              if ($item['price'] + $item['inc'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
              if ($item['bids'] > 0) {
Replace with:
Code:
              if ($item['bids'] > 0) {
	              if ($item['price'] + $item['inc'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
I *think* that does the trick, though I might have made a template change as well. Sorry for not being more clear than that, but I've been editing and tidying up the code and adjusting it for my personal needs (which, due to being virtual items included removing all references of shipping and external payments, were quite substantial).

Should you be trying this and my solution turns out not to be complete, please let me know and I will see if I can find the rest.

I also am trying to see if I can finish up the BuyOut option, which does not work as intended atm (i.e. if I create an auction with a startbid of 1, a reserve of 10, a buyout of 100 and an increment of 1, it's possible to straight away after creation hit buyout. The closing price then will be 2 (or 1 after the change above), rather than 100, and you'll see a message stating the reserve was not met).
Reply With Quote
  #1525  
Old 10-14-2009, 06:03 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the tips people can use.
as for suggestions

- Easily adjust the address fields. Took me quite some time to manually edit out everything to suit my needs.
Its a little bit hard to code, but ill take a look into it.
- Ability to adjust an auction as long as no bids were made yet.
Already coded into next version
- Subcategories
Already coded into next version (forum system is used)
- Ability to add displayorder to categories
Since forum system is used, this is easily achievable.
- Starting price should be possible to bid while no bids made yet (I suspect I can handle this myself)
you handled it, ill put it in the next version.
- Move thumbnails and images to the filesystem, or better support for galleries
Attachment system used. already coded into next version

ive said before, and im sorry that i seem like a broken record, but the next version is coming.
Its almost finished, its practically a complete rewrite, so that on top of school (which is my main priority) its moving fairly slowly. Just like to let you guys know!
Reply With Quote
  #1526  
Old 10-14-2009, 06:16 PM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesone news. If you're looking to handle the BuyOut options, I think I came up with a way that does part of the work.

in vbay_info_View, find:

Code:
<a href="vbay.php?do=buy&id={$item[id]}">$vbphrase[vbay_auction_buy_it_now_bang]</a>
Replace with:
Code:
<a href="vbay.php?do=buy&id={$item[id]}&buyout=true">$vbphrase[vbay_auction_buy_it_now_bang]</a>
In vbay_buy_confirm, replace:

Code:
<form action="vbay.php?$session[sessionurl]do=dobuy" method='post' enctype='multipart/form-data'>
<input type="hidden" name="id" value="{$vbulletin->GPC['id']}">
with:

Code:
<form action="vbay.php?$session[sessionurl]do=dobuy" method='post' enctype='multipart/form-data'>
<input type="hidden" name="id" value="{$vbulletin->GPC['id']}">
<input type="hidden" name="buyout" value="{$vbulletin->GPC['buyout']}">
In vBay.php, under BUYOUT, replace:

Code:
      $vbulletin->input->clean_array_gpc('p', array('id' => TYPE_INT));
with:

Code:
      $vbulletin->input->clean_array_gpc('p', array('id' => TYPE_INT, 'buyout' => TYPE_BOOL));
     $buyout = $vbulletin->GPC['buyout'];
and

Code:
      } else {
          $db->query("update " . TABLE_PREFIX . "vbay_items SET highbidder = " . $vbulletin->userinfo['userid'] . ", bids = bids+'1', completetime = '0' WHERE id=" . $vbulletin->GPC['id'] . "");
          $vbulletin->url = "vbay.php?do=item&viewitem=" . $vbulletin->GPC['id'] . $vbulletin->session->vars['sessionurl'] . "";
          eval(print_standard_redirect('vbay_buy_success', true, true));
      }
with

Code:
			if ($vbulletin->GPC['buyout']) {
	          $db->query("update " . TABLE_PREFIX . "vbay_items SET highbidder = " . $vbulletin->userinfo['userid'] . ", price=buyitnowprice, bids = bids+'1', completetime = '0' WHERE id=" . $vbulletin->GPC['id'] . "");
	          $vbulletin->url = "vbay.php?do=item&viewitem=" . $vbulletin->GPC['id'] . $vbulletin->session->vars['sessionurl'] . "";
    	      eval(print_standard_redirect('vbay_buy_success', true, true));
		    } else {
	          $db->query("update " . TABLE_PREFIX . "vbay_items SET highbidder = " . $vbulletin->userinfo['userid'] . ", bids = bids+'1', completetime = '0' WHERE id=" . $vbulletin->GPC['id'] . "");
    	      $vbulletin->url = "vbay.php?do=item&viewitem=" . $vbulletin->GPC['id'] . $vbulletin->session->vars['sessionurl'] . "";
        	  eval(print_standard_redirect('vbay_buy_success', true, true));
      }
Which ensures the price will equal the buyout price. Crude, but it works. I'm playing with the idea of adding another field to the database called BuyOutUsed for items bought with buyout.

Left would be automatically closing an auction as soon as the regular bidding price equals the buyout price.
Reply With Quote
  #1527  
Old 10-14-2009, 06:19 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if the auction type is only buyout and the auction has ended, buyout price should be used automatically.

fairly sure i tested it... but you know how that goes...

vbulletin..pssssssh
Reply With Quote
  #1528  
Old 10-14-2009, 06:49 PM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blaine0002 View Post
if the auction type is only buyout and the auction has ended, buyout price should be used automatically.

fairly sure i tested it... but you know how that goes...

vbulletin..pssssssh
Ah. I mostly tested with "both".
Reply With Quote
  #1529  
Old 10-14-2009, 09:09 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seeing as the new price range for vbulletin 4 is rediculously unrealistic... i will be releasing a final version for 3.8 then probably selling the rights and code to a coder who wants to continue to release it for newer versions of vbulletin.

Seeing as I dont run my own forum, there would be no reason to pay for it just to continue support on my addons.
Reply With Quote
  #1530  
Old 10-16-2009, 08:25 PM
DolphinEcho DolphinEcho is offline
 
Join Date: Aug 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I delete my other post as it changed so much, so thought I do a new one

Features I would like to see
  • When someone wins can the private message be change to include something about payment for example 'Contact the seller for payment details'
  • How about multiple options for payment methods for Example 'PayPal and Cash' etc... so maybe a tick box instead of a radio button maybe.
  • Would it be possible to have the Bid Increment start from 0.50 instal or 1.00 ?
  • Would it be possible to add a report feature like report a post ?
  • Would it be possible to add the thumbnail image if there is one to the bit with the title, price, type. etc...
  • Be able to search for items even if it only just by the title
  • User able to delete there advert

Is there any chance of, see any of these features in the final version ?


Thanks for a great mod
Reply With Quote
  #1531  
Old 10-21-2009, 03:40 PM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick revision to my edit in post 1523.

One of my users found that someone had been able to bid less than the starting price, and it's due to me having been sloppy.

Quote:
And another edit further down. Look for:


Code:
Code:
	              if ($item['price'] + $item['inc'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
              if ($item['bids'] > 0) {
Replace with:

Code:
Code:
              if ($item['bids'] > 0) {
	              if ($item['price'] + $item['inc'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
I intended this to work and only insist the price + inc would be required after an initial bid was made. After all, if you're the first bidder on Ebay, you perfectly well can make an offer equal to the quoted startbid.

But my fix was incomplete. When there were no bids, it would be possible to bid whatever one liked. EVEN if that price was below the start price.

Luckily, the fix is also easy:

If you made the fix mentioned above, find this in the code:
Code:
              if ($item['bids'] > 0) 
				 {
	              if ($item['price'] + $item['inc'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
                  $pmhigh_bidder = $vbulletin->db->query("select * from " . TABLE_PREFIX . "user where userid='{$item['highbidder']}'");
                  $pmbidder = $vbulletin->db->fetch_array($pmhigh_bidder);
                  $title = "$vbphrase[vbay_pm_you_have_been_outbid] {$item['name']}";
                  $message = $vbphrase['vbay_pm_you_have_been_outbid_message'];
                  send_pm($vbulletin->userinfo['username'], $vbulletin->userinfo['userid'], $pmbidder['username'], $title, $message);
              }
Below that, add:
Code:
			  // Ensure that bid is higher thandesired opening bid
			  else
			  {
					if ($item['price'] > $vbulletin->GPC['bid']) {
	                  eval(standard_error(fetch_error('vbay_bid_higher')));
	              }
			  }
A thousand pardons to everyone.

Still a great mod, though. Anxiously awaiting the next version. I might throw in some loggin features when the next version is available, but I figured I'd wait before going down that road.

By the way, will it be possible to somehow skip reimporting the languages and phrases? I reworded quite a bit, and would prefer keeping my edits
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 08:25 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.05698 seconds
  • Memory Usage 2,339KB
  • 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
  • (16)bbcode_code
  • (2)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