View Full Version : vB Easy Auction v1.1
yoyoyoyo
07-24-2005, 10:00 PM
vB Easy Auction v1.1
by yoyoyoyo
Don't let the length of this post fool you... this is actually very simple to setup... I just tend to get long-winded at times...
WHAT YOU NEED:
* vBulletin Software (for vBulletin integration - the perl files will work fine without vBulletin)
* Web server account that has CGI capabilities, and will allow you to run executable cgi files.
* Perl 5.6 or better installed on that web server. Contact your server administrator if you are unsure (most servers are running version 5.8.X, so this should not be a problem). If you do not have perl installed then read a little further below about perlsp.
* Access to either Sendmail, BLAT, or Sockets mail. No mail can be sent without at least ONE of the above. If you are using either BLAT or Sockets mail (NT users usually), you will also need access to an SMTP mail server. Contact your server administrator to find out if you do. Note: the SMTP mail server needs to allow the user to send mail without requiring them to log into the server.
OVERVIEW
This will add auctions to your site quickly and easily. Simply edit the auction.pl file and admin.pl files to reflect your server's filepaths, etc., and then upload the files to your server. Create a template and make a couple edits to your vbulletin files to allow navigation to your auctions and that is it! The core of the auction is based on a HEAVILY modified version of EveryAuction Release Version 1.53, and can be further edited or modified to suit your needs, as long as you follow the GNU public license.
SEE POST #1 OF THIS THREAD FOR INSTALL INFO, ETC.
If members of your site are interested in participating in the auctions then they need to register for them also, since this is not integrated with the vBulletin database for security reasons (since people put actual contact info, etc. in their auction registrations).
FEATURES
a comprehensive, professional user interface that makes navigation simple
auction classifieds or traditional auction settings
configuration takes only a few minutes if perl is installed on your system
colors and tables can be easily changed to match the look and feel of your system
supports HTML front-ends
unlimited categories and items
category listing lists number of open items per category
item listings list items, closing time, and current bid
automated e-mail validation registration system keeps non-legitimate users out of your database
system generated easy-to-remember (and user changeable) passwords sent to users via e-mail
users must "sign" an agreement upon registration.
optional non-registration mode allows fast posting or bidding by anyone
users may update their contact information, password or Registration E-Mail.
any registered user can post an item using the easy-to-use submission system
images can be posted along with an item description and starting bid
supports reserve prices which allow a seller to set a minimum sell price above the minimum bid
seller determines minimum bid increment and length of the auction
item preview before an item is actually posted
each item is given a unique ID number and URL, so sellers can advertise their auctions in newsgroups or via a link
item display lists bidding history and product information
displays Closed items in a table with Radio Buttons for Selection
bidding is easy with the minimum bid price displayed on the item page along with a quick bid form
sellers can choose the ending time of an auction
amount of time left in each auction is displayed in the listing
outbid e-mails automatically sent by the system with a link back to the auction item
sniper protection: auctions can close a configurable time after the last bid and the designated closing time, or the admin can choose to disable the sniper protection
integrated search engine allows search by username or keyword
users can view closed auction history and contact information depending on whether he/she is the buyer, seller, or losing bidder
auction items may be deleted or updated by the system administrator using a password
e-mail sent to both high-bidder and seller on auction close
fast re-posting of items that were not sold
data file construction allows experienced administrators to add, remove, or edit items or users by simply editing a plain text file
everything is compressed into a single lightning-fast perl script
advanced file locking system eliminates the risk of data corruption even during heavy bidding
separate secure Admin Console
pagebreaks in listings
automatically updates the bids on the item display page
seller can edit an auction if there are no bids.
auto-prune of old inactive user data (admin specified length of time)
prevents email registration from the same address more then once
users must enter valid e-mail addresses when signing up for the auctions.
enter e-mail addresses twice
"e-mail auction to friend" option
view all auctions option
LEGAL NOTICE
Version: vB Easy Auction 1.0
Last update: 07/20/2005
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
modifications and integration with vbulletin
released at vbulletin.org by yoyoyoyo
No additional rights reserved by the author
Matt Hahnfeld DBA EverySoft expressly emphasizes that
this program is *NOT* an official release version of
EveryAuction, and that this program is *NOT* sanctioned
or distributed by Matt Hahnfeld DBA EverySoft.
Dieter Werner expressly emphasizes that
this program is *NOT* an official release version of
eAuction, and that this program is *NOT* sanctioned
or distributed by Dieter Werner.
vB Easy Auction for vBulletin is not affiliated with eBay or jelsoft or any affiliated companies.
The author of this release agrees to these statements absolutely.
VERSION 1.1: Added the optional ability to allow users to create their own auction sites using the easy-auction ezauctgn.zip (https://vborg.vbsupport.ru/attachment.php?attachmentid=32605) script.
PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=92857) IF YOU FIND THIS USEFUL!
yoyoyoyo
07-25-2005, 04:23 PM
I was going to call this vBay, but decided that vb.org didn't want you know who breathing down their necks :D
INSTALLATION OPTIONS:
This hack offers 5 (actually 6) different options of auction scripts for you to play with:
1) First is a version of EveryAuction that I have modified. It is basic looking but has alot of features. I purposely made the layout bare to match any forum, and you can control the look and feel with the style tags. You can also edit the html within the config.pl and auction.pl files to add, change the tables to suit your needs. Both files are heavily commented, so it should not be hard to find your way around them. It should be fairly easy to add additional features as needed, such as feedback and Accounting (if you wish to charge for auction listings, etc.), however I have left the accounting end of the script off of my version (though you will see a link to it in the admin area- this is in case you want to add it in yourself). You can find more addons at the everysoft addon database (URL BELOW).
2) If you are interested in starting from scratch and adding all of your own addons yourself you can use the second option, which is the original EveryAuction script,which you can grab from http://prdownloads.sourceforge.net/everyauction/everyauction_153.zip and then go to the addon database and pick and choose which files best suit your needs. It's all very easy, and you should not be intimidated by the fact that it is a perl script, since in many ways perl scripting is very intuitive especially if you are familiar with html and javascript standards.
3) The third option is to try a "new" version of EveryAuction that has been developed by people other than the author: EA 1.7, and it is available at http://www.bsmp.com/ea17/installingea17.html
4) The fourth option is to run the eAuction script (which in turn is also a modified version of the EveryAuction script). This script has a few extra features, however it is harder to modify since it has already been modified quite a bit. It still can be done, but you will have to make sure not to cross any variables. This script is setup for multi-language support, and already has german language support built in. You can find the eAuction script at: http://www.everyscript.de/
5) Download the attached ezauctgn.zip (https://vborg.vbsupport.ru/attachment.php?attachmentid=32605) file to allow your users to create their own individualized auction sites that you host! the Easy Auction Site Generator - uses EveryAuction from EverySoft to offer Auction Site Hosting, modified with more features and abilities. After you install this script at your site, you offer your guests the ability to create their own Auction Sites. Then link the template iframe to your easy auction's index.html page (be sure to follow the instructions enclosed in that zip file on which files to edit and how to edit them). Each auction site can be tailored and the owner may specify the following:
choose the color scheme for the auction site
define the directory where closed auctions will be moved
define the directory where registration information is kept
define "sniper" protection period (how many minutes past the last bid to hold auction).
allow users to post items
select file locking
select the categories to include in the auction
Please see THIS (https://vborg.vbsupport.ru/showpost.php?p=745113&postcount=86) post for more information.
6) There is another option, and that is to use the EveryAuction DB file found at everysoft, which is a MySQL version of the EveryAuction script.
INSTALLATION:
- make sure that your server supports perl scripts, and is running at least Perl 5.6.0 or greater. Notice that the script requires Perl 5.6.0 (or higher) !! I don't know whether this can run on a server that has under Perl 5.5.x If the script does not work for you then try placing the script in a subdirectory of your cgi-bin directory. Edit the top of the script to point to perl. The current version of perl is 5.8.X, so most servers should not have a problem with this if they offer perl/cgi access.
#!/usr/bin/perl This must point to the Perl version on your server. If you don't know it, ask your host or run info.cgi that comes included in the zip on your server to get it. In most cases #!/usr/bin/perl or #!/usr/bin/perl5 works OK. If you do not have Perl installed on your server all is not lost! You can try a file called perlsp that provides an ASP/PHP/JSP like environment for Perl on all servers, dedicated or virtual, with everything that you expect from a web programming environment (and before only knew from PHP or ASP) http://2n-com.de/perlsp/ .
- Follow the install instructions and make sure that the files are CHMOD'ed properly.
- To add your own categories slook at the top of the script in the config area of the script that tells you how to configure them. The script is well-documented, so just read the areas that are comments and make the changes noted.
EDIT THE STYLESHEET & HTML
It is not necessary, but you can change the style to match the look and feel of your auction by searching for the STYLE tags and edit the area inbetween to match the CSS of your forum. You can alternately link to any style sheet on your site, just as you would any other php or html page on your site. You can further edit the html parts of the auction.pl file, such as the tables, etc. to any layout you want, so if you are a layout/html wizard then you can customize the front end of this script easily, just be sure to preserve the continuity of the functionality in the process.
If you have multiple styles/skins that is not a problem, but you must have one auction.pl file for each skin, and have each skin point to a different file. Edit each one (between the style tags) to be the same style as your vbulletin skin. You can rename the file with no problem. You can call it auction1.pl, auction2.pl, etc. (or you can name them vbulletindefault_auction.pl it doesn't matter as long as you keep track of which is which) and add different templates to each style, with each one pointing to the proper auction.pl file for that style. Just keep all of the auction.pl files in the same folder and they will all pull data from the same auction database. You must keep them in the same folder as each other, otherwise each style will have different auctions! Also be sure to edit the part of the config area that asks you to define the scripts name.
There are also certain areas that you may want to change to suit your needs/layout, so don't be afraid to edit the html, just be sure to save backups of everything.
If you do edit your own auction.pl file (spiff up the html, etc.) and feel like sharing, PLEASE feel free to upload it to this thread!
ADD-ONS
For more addons to this script you can go to:
http://forum.everysoft.com/cgi-bin/codepost.pl?action=listcategories&product=EveryAuction+1.5x
NOTE: Many of the addons at that site need tweaking to work with each other, and many do not seem to work at all, and others lead to error 404 files (file not found) but it is still a very flexible script and you the site is a great resource to help you edit EveryAuction to suit your needs. Just about every auction feature you can think of has been integrated in to this script at one time or another to a degree.
LONG IFRAME ISSUE
NOTE: The only way that I could figure out to effectively manage to pull the output of the perl script in to a vbulletin template is with an iframe. The drawback to an iframe being that it does not resize with the amount of data that it pulls in, so if the page is really long and the iframe is too small then the result is that the iframe will develop annoying scroll bars, which are very ugly, messy and undesirable. To counter that I had to create an iframe that was very long, so there will be a bit of extra white space between the bottom of the auction content and the footer of your forum page. If anyone can come up with a better way to accomplish this, or to pass perl variables on to a php page then please post to the release thread of this hack at vbulletin.org.
Before you decide the page is too long, and decide just to simply go ahead and reduce the iframe, try posting a test auction, with a long description and a picture, and you will see why I decided the iframe needed to be that long, however of course you can always reduce the size as needed if you decide it is still too long.
NOTE: One way to avoid this issue is to add the same header and footer to your auction.pl (in the areas that they provide for that- just read the html) and style your <style> tags to be the same as your forum, and then just simply link people to your auction.pl file instead of your auction.php file. This way your header and fiiter will dynamically resize with your auction listings, and then your header can simply link them back to the forums! Just be sure to keep the auction navigation links intact or nobody will be able to find their way around your auctions.
TROUBLESHOOTING:
If you are getting errors it is probably one of these:
1) Path to directories (basepath) not set correctly
2) File permissions not set correctly
3) Server does not allow executable perl files with write permissions, or any files CHMOD'ed to 755
4) Template name not spelled correctly, or capitalized instead of small letters: auction
Some servers will also let you run a .pl or a .cgi script from any folder, so if you are STILL getting errors at this point then try uploading the folder named 'auction' to your forum root directory, and then change your config area of the auction script accordingly. If that works better then change the file path in the template to point to that directory instead of your cgi-bin directory. In fact, that is how I originally wrote the instructions, but realized that some people who can't run perl scripts from any directory other than the cgi-bin and would be out of luck, so by default I decided to tell everyone to put it in the cgi-bin directory, but as I mentioned that is not necessary in many cases. If the file paths are correct, and the files are chmodd'ed correctly and it is still not working then it most likely is a server issue, so check to make sure that your server will allow you to run executable cgi scripts with 755 CHMOD.
NOTE: If you get an error message like the one attached then you don't have the file paths set properly in the auction.pl file. The script creates the new category folders based upon the permissions you give it when CHMOD'ing it, and also based on what you have set as a basepath in the script. The folders are automatically created when the script is run the first time and the script can't create the folders it needs in the right place if the basepath is set incorrectly, so it can't find them, and thus the error.
The simplest way to fix this is to find the basepath to your 'cgi-bin/auction' directory, and the easiest way to do that is to use the info.cgi file that is in your cgi-bin/auction directory (and comes with this hack), is by typing in this address in to your web browser:
http://yoursite.com/cgi-bin/auction/info.cgi
(of course substitute "yoursite.com" with the name of your site, but keep the rest the same)
Now look in the area where it says: "SCRIPT_FILENAME" and take note of the URL that follows it on the same line. It should look something like:
/home/yoursite/public_html/cgi-bin/auction/info.cgi
Chop off the end (the info.cgi part) and voila, there is your filepath that you need to put in the area of auction.pl that says:
# The Base Directory. We need an
# absolute path for the base directory.
# Include the trailing slash. THIS SHOULD
# NOT BE WEB-ACCESSIBLE!
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'basepath'} = '/home/yoursite/public_html/cgi-bin/auction/';
(color and bold for emphasis)
If you STILL get errors, after you make sure that all of the above is correct then it could also be the case that your server simply does not allow executable files to have write permissions.
END NOTE
NOTE: I did not write the core of this file, it is based on a GNU public license file, and I added the hacks found online, and also tweaked a few of the subroutines as I saw fit, so if the auction scripts included with this file do not work or give you errors then I suggest editing your own version of EveryAuction to suit your needs. I will not give support for the EveryAuction script, but I will be happy to help with the integration of the script with vBulletin, as it pertains to this script, via the support thread at vBulletin.org.
RichieBoy67
07-25-2005, 04:52 PM
OUTSTANDING!!!!!!!
I have been wiating for something like this!!!!! awesome! Thanks :)
icecube0045
07-25-2005, 04:52 PM
I was going to call this vBay, but decided that vb.org didn't want you know who breathing down their necks :D
Has anyone installed and tried this yet?
RichieBoy67
07-25-2005, 05:16 PM
I am doing the install right now... looks pretty straightforward so far but I am getting the following error when running the test script Error:
Category directory computer could not be opened I am almost certain it is a path issue so probably no big deal...
yoyoyoyo
07-25-2005, 05:20 PM
I am doing the install right now... looks pretty straightforward so far but I am getting the following error when running the test script Error:
Category directory computer could not be opened
Delete the folder "auctions" in the cgi-bin folder and create a new one.
Then re-upload the contents of the "auctions" folder without actually uploading the folder.
EDIT: Actually, it IS a path issue- see the top post. I was able to replicate this error if the auction.pl script does not have the basepath setting at the top of the config section set properly. There are only a few settings to worry about, so read the script thoroughly- it is well documented and easy to understand.
An easy way to find you file path settings is to go to the info.cgi file and look for the path it says under "SCRIPT_FILENAME" and that will display your file path.
the URL to your info.cgi file will be something like this:
http://yoursite.com/cgi-bin/auction/info.cgi
Look at the "SCRIPT_FILENAME" setting display and it will look something like:/home/yoursite/public_html/cgi-bin/auction/info.cgi
just cut off the info.cgi from the end and there is your needed file basepath! :D
paste that info in here:
$config{'basepath'} = '/home/yoursite/public_html/cgi-bin/auction/';
RichieBoy67
07-25-2005, 05:37 PM
I'm still getting the same error..
Thanks for the support!! :)
RichieBoy67
07-25-2005, 05:54 PM
Isn't construct_nav_option('Auction Admin', "../cgi-bin/auction/admin.pl", '<br />');
construct_nav_option('Contact Auction Members', "$vboptions[bburauction.pl?action=contact, '<br />');
construct_nav_option('Registration Report', "../cgi-bin/auction/auction.pl?action=readreg", '<br />');
construct_nav_option('Auction Category Listing', "../cgi-bin/auction/auction.pl", '<br />');
construct_nav_option('Closed Auctions', "../cgi-bin/auction.pl?action=closed", '<br />');
construct_nav_option('System Info', "../cgi-bin/auction/info.pl", '<br />');
construct_nav_group('Auctions');
supposed to have " " instead of ' ' ????
Koutaru
07-25-2005, 06:06 PM
I may try to install this a bit later :3 Thanks!!
yoyoyoyo
07-25-2005, 06:23 PM
Isn't construct_nav_option('Auction Admin', "../cgi-bin/auction/admin.pl", '<br />');
construct_nav_option('Contact Auction Members', "$vboptions[bburauction.pl?action=contact, '<br />');
construct_nav_option('Registration Report', "../cgi-bin/auction/auction.pl?action=readreg", '<br />');
construct_nav_option('Auction Category Listing', "../cgi-bin/auction/auction.pl", '<br />');
construct_nav_option('Closed Auctions', "../cgi-bin/auction.pl?action=closed", '<br />');
construct_nav_option('System Info', "../cgi-bin/auction/info.pl", '<br />');
construct_nav_group('Auctions');
supposed to have " " instead of ' ' ????
THose were the old instructions.. they must have gotten in the zip somehow. I will update it.
As far as your error goes- I got the same error when I tried installing it myself and did not set all of the config area settings that I needed to set, but when I fixed them I did not get that error. The problem is in your config area of auction.pl : READ IT THOROUGHLY
Also make sure that all files are CHMOD'ED as mentioned in the instructions.
Also- please note that keeping the info.cgi file in your cgi-bin allows anyone to read that info if they know that the file is there, so you may want to rename it to something else.
Zip updated- sorry for all of that old stuff in that folder. Didn't mean to confuse anyone. It should be a much smaller download now :D
Corriewf
07-25-2005, 06:40 PM
Ok so does this integrate the vb styles or that has to be done manually?
yoyoyoyo
07-25-2005, 06:50 PM
Ok so does this integrate the vb styles or that has to be done manually?The actual style sheet CSS part of the styles needs to be edited manually between the <style> tags in the auction script. There is only one <head> section, so if you open it up in a text editor and search you will find it, and you will see that it is basic html. As I mentioned in the install info, you can edit the html side of the script any way you want, so if you are a wizard with html, then this will be no problem for you to make it look totally unique, yet keep the same functionality.
If you want you can also edit the <head> area <style> tags to point to an external style sheet - it is all basic html as I said. Originally I had an external stlye sheet involved in this hack, but I trimmed it down to avoid confusion and less CHMOD'ing, etc., but it can point to any style sheet on your server, just like any other html.
yoyoyoyo
07-25-2005, 08:56 PM
Has anyone installed and tried this yet?
If anyone wants to be added to this thread as an auction demo site please let me know (PM me)! It would be a great way to increase traffic to your auctions and forum :)
RichieBoy67
07-25-2005, 09:08 PM
I would love that as soon as we get it going :)
yoyoyoyo
07-25-2005, 09:35 PM
I would love that as soon as we get it going :)I checked your server and got it working (knock wood) PM'ed you the problems it seems you were having. They should be server-specific problems, so there is no need in going in to it here. I hope that it helps.
here's a tip for other folks: you may not need to run the auction.pl script in the cgi-bin folder if that is what is causing problems (some servers are strange about what you can/can't put in the cgi-bin folder as far as permissions). Some servers will also let you run a .pl or a .cgi script from any folder, so if you are STILL getting errors then try uploading the folder named 'auction' to your forum root directory, and then change your config area of the auction script accordingly. If that works better then change the file path in the template to point to that directory instead of your cgi-bin directory. In fact, that is how I originally wrote the instructions, but realized that some people who can't run perl scripts from any directory other than the cgi-bin and would be out of luck, so by default I decided to tell everyone to put it in the cgi-bin directory, but as I said that is not necessary in many cases.
RichieBoy67
07-25-2005, 10:31 PM
Thanks,
I did just what you reccomended and I created an "auction" directory in the forum root... I just had to create the directory folders.... I am thinking that my server might be in safemode....
Anyhow, I am working on the style right now and I would love to have my site as a demo for this once I am done. I would also like to make a small donation towards this hack. This is great and I am sure it will make me money!!! PM me your paypal please and thank you for your level of service!! :)
yoyoyoyo
07-25-2005, 11:23 PM
Thanks,
I did just what you reccomended and I created an "auction" directory in the forum root... I just had to create the directory folders.... I am thinking that my server might be in safemode....
Anyhow, I am working on the style right now and I would love to have my site as a demo for this once I am done. I would also like to make a small donation towards this hack. This is great and I am sure it will make me money!!! PM me your paypal please and thank you for your level of service!! :)
I am glad you got it worked out! Your help with debugging the install problems that people are bound to encounter was very helpful, and I appreciate your help as well.
If you feel like donating then donate to your favorite charity, and thanks for the offer. :D I hope that the auction is a big bonus to your site, but there is no need for a contribution. I spent a lot of time on modifying the script because I like the script, I like what the author has done with releasing it to the GNU. I had a lot of revisions before I was happy with it - I guess it is always a work in progress), and in looking at it there are still some areas I would like to fix (mainly html issues, such as ugly <table border=1> issues), and I will update the file later when I have done that, but the functionality seems to be stable. ALso, as I said earlier if anyone else prettys it up html-wise then please feel free to post the auction.pl file to this thread. Playing with that script actually taught me alot about perl, so the time invested was my education, and I am happy to share the results.
yoyoyoyo
07-25-2005, 11:57 PM
Some of the best things come out of happy accidents. RichieBoy67 came up with a good answer to the iframe issue mentioned in the post: One way to avoid this issue is to add the same header and footer to your auction.pl (in the areas that they provide for that- just read the html) and style your <style> tags to be the same as your forum, and then just simply link people to your auction.pl file instead of your auction.php file. This way your header and fiiter will dynamically resize with your auction listings, and then your header can simply link them back to their forums! With that method you can avoid adding a new template and the auction.php file as well. You can even rename the auction.pl file to auction.cgi if you want, and it should still work, since they both refer to perl files. Or you can keep the template and the php file but make sure you do not add the header and footer info to both the template AND the auction.pl file, or you will have double headers and double footers!
RichieBoy67
07-26-2005, 12:35 AM
I wish I could say that it was an idea I had and take credit but it was purely accidental.....lol It does take some serious editing though to do it this way but it's pretty easy.....
Great Hack.. One of the best I think..
enginethatcan't
07-26-2005, 02:05 AM
I havn't installed -- but from what I have read....would be cool if there could be "auction feedback" for each user.
PixelFx
07-26-2005, 02:11 AM
I wish I could say that it was an idea I had and take credit but it was purely accidental.....lol It does take some serious editing though to do it this way but it's pretty easy.....
Great Hack.. One of the best I think..
how hard would it be to make an addon so this uses the ucash/ushop addon, or points rather than real money?
icecube0045
07-26-2005, 02:19 AM
Hmm, While I was reading the installation instructions I got very lost because it says make the chnages necessary in each php file but how do I know the changes that needs to be changed? I am somewhat of a newb to this.
icecube0045
07-26-2005, 02:20 AM
I havn't installed -- but from what I have read....would be cool if there could be "auction feedback" for each user.
Well you can use the trader feedback hack and just have the members enter the url of the auction
yoyoyoyo
07-26-2005, 03:12 AM
I havn't installed -- but from what I have read....would be cool if there could be "auction feedback" for each user.You can add the feedback addon that is available at the addon database if you want, but I left it off due to the fact that I felt that 2 different feedback ratings on my site would be confusing. The mod is there and it looks easy to add in - give it a try :D I also left off "buy it now features," but you can add those, or use eAuction or another version of this script that is mentioned in the first post, which already has some of those features built in.
yoyoyoyo
07-26-2005, 03:26 AM
Hmm, While I was reading the installation instructions I got very lost because it says make the chnages necessary in each php file but how do I know the changes that needs to be changed? I am somewhat of a newb to this.There are only 2 files you need to edit: auction.pl, and admin.pl. The php file does not need to be edited. Open the files in a text editor and read the config area - it is well-documented.
Also use the info.cgi script that came with the file to determine things like the file path, as mentioned in previous posts.
After you get the script running you can add the categories you wnat, etc., but for now just try the base script with the default categories, and edit the settings below in the config area of the auction.pl script (the area at the top). These are the main settings you need to worry about in the config area- the rest have been deleted in the example below since they can be left at default to get your script up and running, so be sure to edit those as well. The settings below are only for EXAMPLE, and are not meant to be pasted in to your script, since they are already there!:
# The Base Directory. We need an
# absolute path for the base directory.
# Include the trailing slash. THIS SHOULD
# NOT BE WEB-ACCESSIBLE!
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'basepath'} = '/home/yoursite/public_html/cgi-bin/auction/';
# This is the password for deleting auction
# items.
# **CHANGE THIS FOR SECURITY REASONS**
$config{'adminpass'} = 'password';
# You need to assign either a mail program or
# a mail host so confirmation e-mails can
# be sent out.
# Leave one commented and one uncommented.
#
# YOU NEED EITHER A MAIL PROGRAM
# $config{'mailprog'} = '/usr/lib/sendmail -t';
#
# OR YOU NEED A MAIL HOST (SMTP)
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'mailhost'} = 'localhost';
# This line should be your e-mail address
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'admin_address'} = 'admin@yoursite.com';
# This line should point to the URL of
# your server. It will be used for sending
# "you have been outbid" e-mail. The script
# name and auction will be appended to the
# end automatically, so DO NOT use a trailing
# slash. If you do not want to send outbid
# e-mail, leave this blank.
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'scripturl'} = 'http://www.yoursite.com';
# URL TO THE "MAIL TO FRIEND" ICON
$config{'mfriendicon'} = '<IMG border=0 alt="envelope" height=9 width=13 src="http://yoursite.com/cgi-bin/auction/images/mail.gif">';
For the admin.pl script you can just simply enter the same settings you entered for the auction.pl script, or you can just cut and paste the entire config area from the auction.pl in to the admin.pl script, replacing the config area in that script (you don't want 2 config areas of any script!).
enginethatcan't
07-26-2005, 03:31 AM
what's the average setup time?
yoyoyoyo
07-26-2005, 03:39 AM
what's the average setup time?It should only take a few minutes as long as you edit the config area of the auction.pl script, especially the areas noted in the post above.
After you do that you can test the functionality of the auction.pl script without even editing a vbulletin template by just going to the URL for your auction.pl file and checking it out before you go to the bother of editing your ACP index file, etc., to see if it is something you think would be useful, or will work on your server.
All you need to do to test the functionality of the script is edit the basepath url to match the full filepath on your server to that file, which is the top setting in the auction.pl config area.. the rest can be edited later after you get it running.
1 file edit and a CHMOD shouldn't take too long :D
yoyoyoyo
07-26-2005, 05:37 AM
QUICK & EASY 1-2-3 INSTRUCTIONS FOR INSTALLING & TESTING:
1) upload the contents of the cgi-bin folder in the file to your cgi-bin directory on your server, creating a subdirectory named 'auction,' and CHMOD that new directory to 755 along with the subdirectories, contents etc..
2) Go to your web browser and type in:http://yoursite.com/cgi-bin/auction/info.cgiand you should see a screen that lists all of your server variables. Go to the line that says: "SCRIPT_FILENAME" and note what it says. Look at the "SCRIPT_FILENAME" setting display and it will look something like:/home/yoursite/public_html/cgi-bin/auction/info.cgi
3) just cut off the info.cgi from the end of the "SCRIPT_FILENAME" path you discovered in the previous step and that is your needed filepath. Just paste that info in here:$config{'basepath'} = '/home/yoursite/public_html/cgi-bin/auction/'; in your auction.pl script and reupload it to your site's cgi-bin directory, making sure that it is CHMOD'ed to 755.
If you follow those steps correctly you should see the auction.pl script display properly at:http://yoursite.com/cgi-bin/auction/auction.plIf you get errors then recheck your file path and edits and CHMOD settings. If you still get errors then it is most likely a server issue, as long as you make sure you followed the above steps.
Once you have the script running you should edit the other areas of the config area, such as site name, etc., but that is all you need to worry about to test the auction.pl script on your site.
MrNase
07-26-2005, 01:37 PM
Something like this based on PHP and MySQL would be awsome :)
yoyoyoyo
07-26-2005, 04:57 PM
Something like this based on PHP and MySQL would be awsome :)You can always use the EADB (EasyAuction DB (http://www.everysoft.com/eadb.html)) from everysoft, instead of the auction.pl script I provided. It is a MySQL version of EveryAuction, but I have not tested it myself.
There are other auction scripts for vBulletin, but they are all paid hacks, and are quite expensive. The idea behind this one was to have an easy setup and interface with vBulletin, without the cost, etc.. The perl script I provided is less than 100 kb, but it is powerful, and only displays a few kb at a time, depending on what you are calling up in the script, so it is not very server intensive or bandwidth hungry. Also, all known security holes have been plugged in the script I provided, and I am not sure the same is true for a stock install of EADB (or the commercial auction scripts for vbulletin). I am not implying that any of those are insecure - I just don't have any hands-on experience with them. Security is number one with me, especially when it comes to things like this. I have personally made sure that all known security holes are plugged (such as high bidders being able to see the personal info about sellers at an auction end, even if the reserve was not met, etc.. ), and will continue to develop the script in that direction as needed.
enginethatcan't
07-26-2005, 05:12 PM
Can mods edit/delete certain auctions by members? and is the personal info easy to obtain if you are a regular member?
yoyoyoyo
07-26-2005, 05:21 PM
Can mods edit/delete certain auctions by members? and is the personal info easy to obtain if you are a regular member?The auction is not tied in to vbulletin database in any way, so only the admin of the auction (anyone with the admin password defined in the script) or anyone with access to the cgi-bin directory via ftp account can see any personal info or delete any auctions. You can give the admin password to anyone you trust, I suppose. The auction and registration data are stored as text files, that are not encrypted, and they can easily be read or edited by an auction admin or anyone with access to your server, so make sure that your server is secure. If you move the auction directory outside of the cgi-bin directory then make sure it is in a secure place that requires login, such as your forum directory, and also place a blank index.html file in there so nobody can browse that directory from the outside (this is not necessary in the cgi-bin folder since all servers should block that ability). It is also a good security measure to change the name of the auction reg and data folders, and admin.pl script to another name - just change the reference to them in the config area so the script knows where to go and what to do where :D
MrNase
07-26-2005, 05:23 PM
You can always use the EADB (EasyAuction DB (http://www.everysoft.com/eadb.html)) from everysoft, instead of the auction.pl script I provided. It is a MySQL version of EveryAuction, but I have not tested it myself.
I don't want to have any perl scripts on my website.. vB is written in PHP and I don't feel like I want to mix it up with some Perl script :)
yoyoyoyo
07-26-2005, 05:37 PM
I don't want to have any perl scripts on my website.. vB is written in PHP and I don't feel like I want to mix it up with some Perl script :)Then feel free to buy a commercial script, or develop one of your own, or wait until a free one comes along here. This script is what it is, and I can't make it what it isn't.
But, before you make decisions like that you should ask youself why you feel that way. PHP is great for what it is, and so is plain old HTML, and so is perl. They all can do things well, and they all do things their own way, and they can all work well together.
I don't want this to turn in to a PERL-bashing thread, and I am not biased either way- they both work well at what they do. Both PHP and Perl (as applied to Web applications) are interpreted languages. Interpreted languages are not pre-compiled and executed in a binary format, rather, they are parsed by an interpreter on demand and compiled on-the-fly. Because of this, both Perl and PHP are very portable. Both languages can run on any platform that has an interpreter for the language (with subtle difference here and there).
Perl (Practical Extraction and Report Language) borrows features from C, shell scripting (sh), awk, sed, and many other programming languages, including HTML and javascript. Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more. The language is intended to be practical, and its major features are that it's easy to use, supports both procedural and object-oriented programming, has powerful built-in support for text processing. Perl is not only a Web-scripting language, and looking at is as such only shows a microcosm of its true nature. Perl is, at its most basic level, a text-manipulation language. It provides powerful features that allow the user to easily do some operations that are very complex in C, and also complicates some other things that are easy in C! Perl, in conjunction with CPAN (http://www.cpan.org/) (the Comprehensive Perl Archive Network) offer an enormous amount of "ready-made" modules, that allow code to be reused and shared- database interface modules, CORBA modules, scientific calculation modules, network programming modules, SGML/XML/HTML modules, and so much more. Obviously, because of Perl's powerful and easy text manipulation functions, it was quite natural for web developers to expand their toolbelt to include Perl. Perl can be embedded within HTML documents, run as an SSI (Server-Side Include), or run as its own application (CGI, or Common Gateway Interface). Perl, as applied to CGI and web application design, is designed for the programmer who wants to "output" webpages. A Perl Web application is nothing more or less than a backend program, that interacts with the browser using HTML. Perl's infinite extensibility and modular design make it incredibly popular among web application developers who want a single program (usually with a horde of included modules), or a couple programs, to be their application instead of the several hundred HTML pages (or vbulletin templates) that the same application might require if it was done in PHP.
PHP is an embedded scripting language. A PHP-aware webserver parses HTML documents looking for PHP code, processes it, and sends the results back to the browser. In effect, PHP separates web design from application design. PHP is developed with the web, and web development in mind.
Also- PHP It is not a general purpose language. While it has many facilities specifically catered towards web programming, it is not Perl (or C or C++ or Java). PHP probably cannot beat Perl in terms of convenient and efficient text crunching. Perl is designed with crunching text in mind and has facilities for handling strings and the like that put most other languages to shame. However, PHP does have adequate facilities for most web purposes.
PHP and Perl are both powerful languages that can make web application programming, automation, and dynamic content easy to work with. They are both powerful, wonderful languages, and I enjoy using them interchangeably.
Both Perl and PHP are crucial tools for the Web developer. A lot of the best Web-application developers I know pick one of the languages as their strong language, but keep in mind the other for those times when it just makes sense. I recommend learning them both. Don't get into the zeal wars, understand both languages and you'll see where I'm coming from. Both PHP and Perl are wonderful, extraordinary languages.
icecube0045
07-26-2005, 05:46 PM
I am in my ftp right now but I dont see the cgi_bin in there. How can I get access to it?
yoyoyoyo
07-26-2005, 05:52 PM
I am in my ftp right now but I dont see the cgi_bin in there. How can I get access to it?look in your public_html folder (or equivalent) If you don't see one then you may not be able to run this script. Contact your server to see if they have cgi access available. If not, then try Perlsp, mentioned at the top of this thread.
icecube0045
07-26-2005, 06:23 PM
look in your public_html folder (or equivalent) If you don't see one then you may not be able to run this script. Contact your server to see if they have cgi access available. If not, then try Perlsp, mentioned at the top of this thread.
I dont have a public_html folder either, all i have in the root is my forums folder so I guess ill have to contact my server.
icecube0045
07-26-2005, 06:28 PM
Ok, I dont have a cgi folder and so I just read on my servers faq pages
"CGI-BIN
Dreamhost does not use a standard CGI-BIN, but rather allows you to place executable scripts anywhere within your account and achieve the same functionality. Simply create a directory somewhere within your account and put your scripts there, then use the 'pwd' command while within that directory to get its pathname. This is what you would use within your script's configuration when asked for a path to the CGI-BIN. "
Would this work?
yoyoyoyo
07-26-2005, 06:39 PM
Ok, I dont have a cgi folder and so I just read on my servers faq pages
"CGI-BIN
Dreamhost does not use a standard CGI-BIN, but rather allows you to place executable scripts anywhere within your account and achieve the same functionality. Simply create a directory somewhere within your account and put your scripts there, then use the 'pwd' command while within that directory to get its pathname. This is what you would use within your script's configuration when asked for a path to the CGI-BIN. "
Would this work?It sounds as if you could just place the 'auction' directory right inside your forum directory and it should work, according to them. Just change the file path for the iframe in the template to point to the auction.pl file wherever you put it and it will work fine. Give it a shot and let me know :D
Tradjick
07-26-2005, 11:35 PM
This looks like an extreeeeemly great addition to vB. I just wished i had a reliable memberbase, as i already have much to bid to my members. But they just still won?t show up :(
icecube0045
07-27-2005, 12:00 AM
how do I "CHMOD" my files?
yoyoyoyo
07-27-2005, 12:32 AM
how do I "CHMOD" my files? Files and directories on webservers may have three types of permissions:
1) read (`r')
2) write (`w')
3) execute (`x')
Each permission may be `on' or `off' for each of three categories of users:
1) the first digit refers to the file or directory owner
2) the second digit refers to other people in the same group as the owner
3) the third digit refers to all others (the world)
'chmod' or "change mode" is the UNIX way of changing file permissions. Basically CHMOD refers to setting the access privileges for a file, and you use an FTP client. Highlight the file that you want to change permissions for, and right click and select "Properties" or "Permissions" or "CHMOD" or "File Attributes" (depending on which FTP client you are using). Within each set of permissions (you, group, world) there are three permissions you can set: Read - Write - Execute. Therefore when you set the permissions on a file you must take into account 'who' needs access. The chmod command allows you to change the file permissions to allow only specific people to view your files and directories.
This is what CHMOD 755 looks like:
http://img57.imageshack.us/img57/8904/chmod7555uy.jpg
Most Perl Scripts should be set to 755. Most HTML files should be set to 644. And most data files that must be written to by a web server should be 666. The standard directory permission should be 755. Directories that must be written to by a web server should be 777. Your home directory should be 700. If you are operating a ~username type server, the public_html directory should be 777. (You may also need to open up the home directory to 755.) (It's typically a bad idea to chmod 777 any file, as it allows the world to replace the program with whatever they'd like).
Setting execute for a directory allows that directory to be read. That is, you can see what's in it. That is, if a user does not have execute permissions for a directory, when they attempt to view the contents of that directory it will return an error and not list the files in that directory.
side note: Any file name that starts with a '.' is invisible to the webserver when a directory list is generated (This is a quick and easy way to hide a file).
here is a quick CHMOD reference:
Number | Permissions
=================================================
0 | None - cannot read or write or execute
1 | Can execute, but cannot read or write
2 | Write-only, cannot read or execute (??)
3 | Writeable/executable
4 | Read-only, cannot write to or execute
5 | Read-only executable, cannot write to
6 | Readable Writeable file, but not executable (ie: text file)
7 | Readable Writeable Executable file - most programs are this
icecube0045
07-27-2005, 01:03 AM
thank you yoyoyoyo you have been extremely helpful and I now have it uploaded and its working. Now im trying to figure out how to change the colors and the names and add catigories
icecube0045
07-27-2005, 01:06 AM
In my vb cp i dont see add new template. This is all I see,
Style Manager
Search in Templates
Replacement Variable Manager
Download / Upload Styles
Find Updated Templates
yoyoyoyo
07-27-2005, 01:17 AM
In my vb cp i dont see add new template. This is all I see,
Style Manager
Search in Templates
Replacement Variable Manager
Download / Upload Styles
Find Updated Templatesclick on the style manager link, and then in the drop down box on the right hand side where it says "all style options" you will see an option to "Add New Template" under "TEMPLATE OPTIONS"
or you can always just go to:
http://yoursite.com/forum/admincp/template.php?s=&group=&do=add&dostyleid=1
(assuming you are editing style ID #1)
yoyoyoyo
07-27-2005, 01:35 AM
OK, ive added the new template but when I try to add it to my nav bar, I dont see the option "nav bar". it was there before when I added the trader feedback ratings but its not there right now. click on the "<< >>" button
icecube0045
07-27-2005, 01:58 AM
When i try to open auction.php i get an error message that says "Warning: main(./includes/init.php): failed to open stream: No such file or directory in "my directory" on line 21. And I get a fatal error message. but the auction.pl works and the auctions page comes up and everything
yoyoyoyo
07-27-2005, 02:02 AM
When i try to open auction.php i get an error message that says "Warning: main(./includes/init.php): failed to open stream: No such file or directory in "my directory" on line 21. And I get a fatal error message. but the auction.pl works and the auctions page comes up and everythingYou need to change the filepath in the template iframe section to match the filepath to your auction.pl file. Try this.. change the code in the template to look like this:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
</head>
<body>
$header
$navbar
<if condition="$bbuserinfo[userid]!=0">
<div align=center><iframe name="auction" ALIGN="CENTER" BORDER="0" FRAMEBORDER=0 HEIGHT=3000 WIDTH=100% MARGINHEIGHT=0 VSPACE=0 MARGINWIDTH=0 SCROLLING=0 src="[b]http://yoursite.com/cgi-bin/auction/auction.pl"></iframe></div>
$foruminfo[forumfooter]
$footerchange the URL to match the URL to your auction.pl file
icecube0045
07-27-2005, 02:18 AM
You need to change the filepath in the template iframe section to match the filepath to your auction.pl file. Try this.. change the code in the template to look like this:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
</head>
<body>
$header
$navbar
<if condition="$bbuserinfo[userid]!=0">
<div align=center><iframe name="auction" ALIGN="CENTER" BORDER="0" FRAMEBORDER=0 HEIGHT=3000 WIDTH=100% MARGINHEIGHT=0 VSPACE=0 MARGINWIDTH=0 SCROLLING=0 src="[b]http://yoursite.com/cgi-bin/auction/auction.pl"></iframe></div>
$foruminfo[forumfooter]
$footerchange the URL to match the URL to your auction.pl file
Ok I just did that but the auction.php file still gives me that same error
icecube0045
07-27-2005, 02:45 AM
OK Ive got it to work but now it just points to a blank page. the reason it didnt work before is because I didnt have it in the forums directory so when it was suppose to point to "global.php" it didnt have the right file path. is it suppose to point to global.php or am i suppose to edit it and have it point to some place else?
yoyoyoyo
07-27-2005, 02:47 AM
OK Ive got it to work but now it just points to a blank page. the reason it didnt work before is because I didnt have it in the forums directory so when it was suppose to point to "global.php" it didnt have the right file path. is it suppose to point to global.php or am i suppose to edit it and have it point to some place else?the auction.pl file is not supposed to be in the forums directory. It is supposed to be in the cgi folder, as mentioned in the instructions. If you move it to the forum directory, then you need to change the address in the iframe to match your auction.pl file, wherever you move it to. The template is just a header and a footer with an iframe pulling in content. The content is the auction.pl file. If you can see your auction.pl file and you can see the auction.php page display with no auction content then you did not edit the URL in the iframe properly. The auction.php file is supposed to go in your forum root directory, not in your cgi-bin folder.
icecube0045
07-27-2005, 02:52 AM
I dont have a cgi directory in my server because I dont have a cgi_bin so what i did was, upload the auctions.php into my forums directory along with the folder called "auctions" and all of its contents.
yoyoyoyo
07-27-2005, 02:58 AM
I dont have a cgi directory in my server because I dont have a cgi_bin so what i did was, upload the auctions.php into my forums directory along with the folder called "auctions" and all of its contents.That is fine, as long as the script runs. Then your url to your auction.pl file would look something like:http://yoursite.com/forum/auction/auction.pl
Make sure that the file path in the iframe of the template is correct, and that you have CHMOD'ed the auction directory and files properly. The iframe will display whatever you tell it to display. You could change the URL to vb.org, for example, and it would display in the iframe - you need to change it to the URL to your auction.pl file, otherwise it will not display in the iframe.
icecube0045
07-27-2005, 03:07 AM
I dont understand why the auction template file can be the reason why its not showing up. And now i uploaded the cgi-bin folder so the url is mysite.com//cgi-bin/auction/auction.pl in the auction template file.
icecube0045
07-27-2005, 03:12 AM
Are you sure i dont need to edit the auction.php file such as the "require_once('./global.php');" because once its taken out of the forum directory where there is no global.php file i get an error message which says "Warning: main(./global.php): failed to open stream: No such file or directory in" and line 34 is the line of "require_once('./global.php');"
yoyoyoyo
07-27-2005, 03:15 AM
I dont understand why the auction template file can be the reason why its not showing up. And now i uploaded the cgi-bin folder so the url is mysite.com//cgi-bin/auction/auction.pl in the auction template file.is that // a typo or is that really how you have it?
Are you sure i dont need to edit the auction.php file such as the "require_once('./global.php');" because once its taken out of the forum directory where there is no global.php file i get an error message which says "Warning: main(./global.php): failed to open stream: No such file or directory in" and line 34 is the line of "require_once('./global.php');"The auction.php file should never be taken out of the forum root directory. It is uploaded to your forum root, since it is part of your forum.
Upload the files as follows:
auction.php is uploaded to your forum root directory (the same directory where index.php and newreply.php reside)
the 'auction' directory, and all of it's contents are uploaded to your cgi-bin OR forum root directory.
http://yoursite.com/ <-- your base URL
http://yoursite.com/forum/ <-- your forum directory (this is where your auction.php file goes)
http://yoursite.com/cgi-bin/auction/ <-- your auction directory (where auction.pl resides)
OR
http://yoursite.com/forum/auction/ <-- your auction directory (where auction.pl resides- ONLY if you have no cgi folder, but can still run perl scripts)
The auction.pl file runs independently of the global.php file, so it is not looking for that file, only the auction.php file is looking for the global.php, so make sure you have that in the right directory (your forum folder).
icecube0045
07-27-2005, 03:39 AM
Are you sure i dont need to edit the auction.php file such as the "require_once('./global.php');" because once its taken out of the forum directory where there is no global.php file i get an error message which says "Warning: main(./global.php): failed to open stream: No such file or directory in" and line 34 is the line of "require_once('./global.php');"
yoyoyoyo
07-27-2005, 03:41 AM
Are you sure i dont need to edit the auction.php file such as the "require_once('./global.php');" because once its taken out of the forum directory where there is no global.php file i get an error message which says "Warning: main(./global.php): failed to open stream: No such file or directory in" and line 34 is the line of "require_once('./global.php');"The auction.php file should never be taken out of the forum root directory. It is uploaded to your forum root, since it is part of your forum.
see above post.
icecube0045
07-27-2005, 03:42 AM
Are you sure i dont need to edit the auction.php file such as the "require_once('./global.php');" because once its taken out of the forum directory where there is no global.php file i get an error message which says "Warning: main(./global.php): failed to open stream: No such file or directory in" and line 34 is the line of "require_once('./global.php');"
ignore that. im going to make sure i have it as you said
icecube0045
07-27-2005, 03:53 AM
The auction.php file should never be taken out of the forum root directory. It is uploaded to your forum root, since it is part of your forum.
see above post.
OK. I have all the directories set up correctly. When I go to www.mysite.com/forums/auction.php a blank page comes up.
yoyoyoyo
07-27-2005, 04:17 AM
OK. I have all the directories set up correctly. When I go to www.mysite.com/forums/auction.php (http://www.mysite.com/forums/auction.php) a blank page comes up.When you say a blank page do you mean totally blank, or does it have the header and footer?
If it is totally blank then you are missing the template and if that is the case then either you didn't actually save it, or you named it something other than auction
If you see the header and footer, with A LOT of blank space or a "FILE NOT FOUND" error message inbetween (but no auction) then you need to make sure that the URL in the iframe reflects the URL to your auction.pl file.
icecube0045
07-27-2005, 04:23 AM
its totally blank
yoyoyoyo
07-27-2005, 04:29 AM
its totally blankThen, as I said you are missing the template. Blank pages mean no templates, or misnamed templates. What did you name your auction template?
MUDERCOOL
07-27-2005, 05:00 AM
awesome hack, thank you very much.
is it possible to merge it with uttstore hack? is it possible for users to use "ucash" instead of real money??
yoyoyoyo
07-27-2005, 05:13 AM
awesome hack, thank you very much.
is it possible to merge it with uttstore hack? is it possible for users to use "ucash" instead of real money??The auction database is independent of the forum database, so the answer is no unless you used some sort of honor system, or the admin kept track of the auctions closely and manually deducted them from the store accounts.
Please click INSTALL if you liked the hack :D
yoyoyoyo
07-27-2005, 11:20 AM
Here is an option for folks who don't have CGI access:
http://www.cgispy.com/scripts/auction.shtml
They offer free hosting of their version of the EveryAuction script. It doesn't have all of the same features as the one I wrote, but it will work, as long as you don't mind their banner ad on your auction page. You also won't be able to change the style, etc. to match your forum, like you can with the version I wrote, but it will still be an auction.
To use this simply change the URL in the iframe area of the template to match the auction that is hosted at cgispy.com. Then there is no need to worry about uploading the files, CHMOD'ing, etc., yet you can still integrate the auction in to your site. This is obviously much less desirable than keeping the script on your own server, but as a last resort for people who want to use this script, but don't have a server that allows them to use PERL executable scripts, I thought it was a good option.
EDIT: I also just found this page:
http://www.planetscream.com/auction/
simply click on "new page" to start creating your auction site.
There are many other sites that offer free EveryAuction hosting... just search google for "free EveryAuction hosting" and you will find a few more.
Hope this helps :D
NOTE: I do not have any experience with any of these free hosts, nor do I endorse any links in this post. Just trying to help.
yoyoyoyo
07-27-2005, 11:50 AM
its totally blank
Then, as I said you are missing the template. Blank pages mean no templates, or misnamed templates. What did you name your auction template?icecube0045, I am assuming that you got this straightened out since you stopped asking questions, but in case you didn't...
If you really added your auction template then it should appear in the Style Manager, after you click on "Edit Templates" and you should see an extra template that you added near the top under "custom templates" that is called "auction" and it will be highlighted in red.
If you do not see that template listed there then you did not add it.
If you see it, make sure you spelled it correctly: auction
If you spelled it correctly, make sure that the content of the template matches the template I posted earlier in this thread for you, but be sure to change the URL in the iframe area to match the URL to your auction.pl script.
This hack is really very basic: it has a simple vbulletin powered php page that pulls in the content from a template. That template is an iframe that points to the URL of your auction.pl script.
If you are seeing a blank page then something about your template is not correct.
icecube0045
07-27-2005, 10:49 PM
icecube0045, I am assuming that you got this straightened out since you stopped asking questions, but in case you didn't...
If you really added your auction template then it should appear in the Style Manager, after you click on "Edit Templates" and you should see an extra template that you added near the top under "custom templates" that is called "auction" and it will be highlighted in red.
If you do not see that template listed there then you did not add it.
If you see it, make sure you spelled it correctly: auction
If you spelled it correctly, make sure that the content of the template matches the template I posted earlier in this thread for you, but be sure to change the URL in the iframe area to match the URL to your auction.pl script.
This hack is really very basic: it has a simple vbulletin powered php page that pulls in the content from a template. That template is an iframe that points to the URL of your auction.pl script.
If you are seeing a blank page then something about your template is not correct.Nope, I named it auction and I did name it "auction". DO you have aim or something we can speak faster over? I Pmed you my aim name.
http://img280.imageshack.us/img280/8205/vb1zy.jpg (http://imageshack.us)
icecube0045
07-27-2005, 11:25 PM
I only added the template to 2 of my skins and I have 5. Could this be the problem?
yoyoyoyo
07-28-2005, 12:17 AM
I only added the template to 2 of my skins and I have 5. Could this be the problem?add the template to all of your styles and see if that helps.. if it is not showing up then that is a good place to look. There is nothing magical about the auction.php page I wrote. It has the exact same elements as your index.php, aside from the templates that it calls.
yoyoyoyo
07-28-2005, 12:38 AM
Nope, I named it auction and I did name it "auction". DO you have aim or something we can speak faster over? I Pmed you my aim name.
You named the template "Auction" Change the name to "auction"
It has to be correct- vb is case sensitive. Change the name and I am sure you will see it appear on the auction.php page. :D
I don't do AIM, sorry.
icecube0045
07-28-2005, 01:53 PM
OK, Ive got it in my forum now, Thanks. It's VERY long. How do I make it shorter and change the colors of it such as the background and font colors?
yoyoyoyo
07-28-2005, 02:14 PM
OK, Ive got it in my forum now, Thanks. It's VERY long. How do I make it shorter and change the colors of it such as the background and font colors?I am very glad that you finally got it worked out! :D When installing modifications you really have to watch out for things like capitalization etc., because it will mess you up every time if you don't.
I mentioned the long page issue and how to change the look and feel a few times already in this thread, and if you read then you will find the answers to those questions earlier in the thread. Please re-read the information I have already provided, especially in the first post of this thread, and if you have any other questions then I will be happy to answer them. We have already had 3 pages devoted to your template issue so far, and not to be rude, but I do not see any point in answering the same questions over and over- it just tends to make a thread get out of hand. I am always happy to answer any questions that have not already been answered thoroughly or to your understanding.
Again- I am glad you got the template issue worked out and I hope that the auction is a benefit to your community.
icecube0045
07-28-2005, 07:32 PM
Is it possible to make a auction skin for each skin on your page?
yoyoyoyo
07-28-2005, 07:51 PM
Is it possible to make a auction skin for each skin on your page?Yes, but you must have one auction.pl file for each skin, and have each skin point to a different file. Edit each one (between the style tags) to be the same style as your vbulletin skin. You can rename the file with no problem. You can call it auction1.pl, auction2.pl, etc. (or you can name them vbulletindefault_auction.pl it doesn't matter as long as you keep track of which is which) and add different templates to each style, with each one pointing to the proper auction.pl file for that style. Just keep all of the auction.pl files in the same folder and they will all pull data from the same auction database. You must keep them in the same folder as each other, otherwise each style will have different auctions! Also be sure to edit the part of the config area that asks you to define the scripts name.
Great question! thanks for asking- I will add it to the main post.
webslugger
07-28-2005, 09:52 PM
great mod! just what I have been waiting for! thanks for sharing!
It took less than 5 minutes to install (and I have never dealt with a perl script before) and now I have a full-featured auction in my forum! this is fantastic!
**clicks install**
yoyoyoyo
07-29-2005, 10:50 AM
How do I find out this information?
# YOU NEED EITHER A MAIL PROGRAM
# $config{'mailprog'} = '/usr/lib/sendmail -t';
#
# OR YOU NEED A MAIL HOST (SMTP)
# **CHANGE THIS TO SUIT YOUR SERVER**
$config{'mailhost'} = 'localhost';
thanks,
JohmelPlease quote code properly. Do not post code unless it is within code tags. This is to keep unlicensed users from using the codes. You have already posted the entire template without code tages and now part of the auction.pl file in public- please do not do that.
Try signing up for the auctions, and if you get mail sent to you then you do not need to change anything. If you do not get mail sent to you try changing it to $config{'mailprog'} = '/usr/lib/sendmail -t'; and see if that works. If it doesn't then contact your server and ask them what you have for a mail host.
yoyoyoyo
07-29-2005, 10:55 AM
great mod! just what I have been waiting for! thanks for sharing!
It took less than 5 minutes to install (and I have never dealt with a perl script before) and now I have a full-featured auction in my forum! this is fantastic!
**clicks install**I am glad you like it, and I hope that the auction brings many people to your site. It's nice to hear from folks when they have easy installs, also- usually it is the opposite and you only hear from them when they have problems. When someone installs it with no difficulty then I feel I have succeeded. :D
icecube0045
07-29-2005, 03:37 PM
I am sorry, I deleted the post with me putting info out from the files.
Dammit, when I changed the mail server to what you said, I got this error. Even though I change it back, I still get the same error. And yes I did Chmod it.
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mywebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "
yoyoyoyo
07-29-2005, 03:52 PM
I am sorry, I deleted the post with me putting info out from the files.
Dammit, when I changed the mail server to what you said, I got this error. Even though I change it back, I still get the same error. And yes I did Chmod it.
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mywebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "You need to contact your server to find out how it handles mail for you. If you have SMTP mail then the SMTP mail server needs to allow you to send mail without requiring you to log into the server.
icecube0045
07-29-2005, 03:53 PM
OK, but if I put everything back the way it was, why would it still give me the erroe message?
yoyoyoyo
07-29-2005, 04:22 PM
OK, but if I put everything back the way it was, why would it still give me the erroe message?it is obviously not back the way it was. Try using a virgin copy of the file.
icecube0045
07-29-2005, 04:23 PM
it is obviously not back the way it was. Try using a virgin copy of the file.
Yea I did, and it worked. I guess im going to have to double check EVERYTHING
yoyoyoyo
07-29-2005, 04:42 PM
Yea I did, and it worked. I guess im going to have to double check EVERYTHINGGlad it worked, in that case, if the mail is not working for you - CAREFULLY change your config file to include the proper setting - and only define one mail server at a time - do not add that line- change it. If the mail does not work then you need to contact your server to find out what type of mail server you have.
yoyoyoyo
07-30-2005, 04:08 AM
VERSION 1.1 UPDATE: Added the optional ability to allow users to create their own auction sites using the easy-auction site generator ezauctgn.zip (http://attachment.php?attachmentid=32605) script.
Download the attached ezauctgn.zip (http://attachment.php?attachmentid=32605) file to allow your users to create their own individualized auction sites that you host! the Easy Auction Site Generator - uses EveryAuction from EverySoft to offer Auction Site Hosting, modified with more features and abilities. After you install this script at your site, you offer your guests the ability to create their own Auction Sites. Then link the template iframe to your easy auction site generator (be sure to follow the instructions enclosed in that zip file on which files to edit and how to edit them). Each auction site can be tailored and the owner may specify the following:
choose the color scheme for the auction site
define the directory where closed auctions will be moved
define the directory where registration information is kept
define "sniper" protection period (how many minutes past the last bid to hold auction).
allow users to post items
select file locking
select the categories to include in the auction
INSTALLATION
1. Edit $config{"basepath"} = to show where the base path is for your script. Leave /$sitedir/ included.
2. If you add or remove categories from the catlist.txt you need to change these to be the same in ezauct.pl
3. Edit your $config{'mailprog'} to show where send mail is on your server.
4. Edit $config{'admin_address'} to YOUR email address
5. Edit $config{'scripturl'} to show where the url for ezauct.pl is. Leave ?sitedir=$sitedir included.
6. Edit $config{'sitename'} to the name of your Auction Service
7. Where you see the line $config{'footer'}=<<"EOF"; Between this line and EOF edit this footer to put banner advertisements in there and to link back to your Free auction service.
8. Search ezauct.pl in all instances for cam2.gif and buyit.gif and change the url to where you put the images on your server
9. In Sub: New Registration find all instances where it says RootsSearch.net and change it to your service name.
10. Upload helppost.html into the base directory where user pages would be created. Now in print footer change the url to where your Help Posting html file is.
11. Edit the auction template iframe to point to your new easy auction site.
Chmod all of the cgi files to 755 and that should be it!
Owner & Auction Features
owner chooses color scheme for the auction
owner defines the directory for closed auctions
owner defines the directory for registration
owner defines whether registration is required or not
owner defines "sniper" protection period
owner allows users to post items
owner selects categories out of 45 or all
owner can delete auction items & categories
owner is sent email of user id's and passwords
owner return link to their site
owner logo url to link site logo into auction
image icon on display list of items
buy it now image on display list of items.
category and current time display at top of auction
user agreement at sign up
check auction at load to close closed auctions
page breaks for auction listings over 10
stats of registered users and running auctions
security seller can't bid on own auction
reserve met no reserve met
maximum of 14 days auctions can run
User Features
option to choose payment method
option to choose shipping method
ability to include condition of item
on screen registration & emailed to them
buy it now
time / date remaining
view sellers other auctions
repost of auctions from closed auctions menu
option to change Handle/Alias
option to change password
option to change email address
option to change contact information
password retrieval
login name retrieval
tell a friend about auction site
view all auction items
help on posting an item
drumforum
08-17-2005, 12:26 PM
Hummm,
I have done everything as written in the instructions, but when I go to the finished article, it just all shows up as code incased in the template you have written.
I definetly have perl 5.8 on my server, everything is CHMOD'ed correctly and files that need to be in the cgi-bin are there.
I'm not sure of the ways of perl, so I amn't very good at problem solving with it, sorry.
Ramsesx
10-18-2005, 03:24 AM
yoyoyoyo, please can you tell me when we can expect the 3.5 version?
I need it really and would love it to can use it soon, thank you.
Carl Anderson
10-27-2005, 02:19 AM
yoyoyoyo, please can you tell me when we can expect the 3.5 version?
I need it really and would love it to can use it soon, thank you.
I also would love to add this to my site - hope we get a 3.5 version...
Ramsesx
11-11-2005, 11:11 PM
Hm, please can you tell us if we should wait for a 3.5 version yoyoyo?
Sorry for asking again. Thank you.
funinthesun
12-01-2005, 08:52 PM
This is a fantastic mod! Could you please upgrade it so that it works on 3.5? :nervous:
Carl Anderson
12-13-2005, 03:01 AM
This is a fantastic mod! Could you please upgrade it so that it works on 3.5? :nervous:
Yes please do make this work for 3.5
xfaethorx
12-15-2005, 07:34 AM
im right in beliving that the users aren't integrated from the vbulletin database right? So you have to have another log-in and password to operate the auction?
Ramsesx
12-15-2005, 07:53 AM
im right in beliving that the users aren't integrated from the vbulletin database right? So you have to have another log-in and password to operate the auction?
Thats right, because of this I bought now Photopost Classifieds.
dcpaq2xx
01-11-2006, 05:21 PM
Any plans to upgrade this to work with the latest version of Vbulletin?
As of today the current version of Vbulletin is 3.5.3
Doug
Yukino_AE
01-17-2006, 04:26 AM
i'm trying to install this with my forum... i haven't upgraded to 3.5 yet. anyway.. i keep getting this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@anime-extreme.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
and i've doublechecked all the settings, can anyone help?
jpennington
01-18-2006, 08:30 PM
This is a great hack, I was able to install without any problems.
One feature I would like to see would be a away for current VB user to just cilck a button and it would generate an account for this. Just a thought.
dcpaq2xx
01-18-2006, 09:01 PM
This is a great hack, I was able to install without any problems.
One feature I would like to see would be a away for current VB user to just cilck a button and it would generate an account for this. Just a thought.
What version did you install this on?
Doug
Yukino_AE
01-25-2006, 05:10 AM
anyone help me with my problem?
Majidm
04-22-2006, 03:53 PM
yoyoyoyo -- there's a way to dynamically resize an iframe based on the amount of content in it.
If you're interested, give me a shout - I don't know how to post code in this forum, but I have it working for my site. In essence, it involves listener JS in the calling page, and sender JS in the body of the iframe, and a body OnLoad.
-m
rangerspin
05-03-2006, 02:41 AM
Great hack! Everything works great, thanks for all your hard work.
Rich
ramone_johnny
05-28-2006, 10:22 PM
I am considering this add on, however I have a few questions that I would like to ask...
1. Has anyone installed this on V 3.5.4 Does it run ok, no problems?
2. Is it possible to modify the code so that users can upload attachments, rather than point it to an image URL?
3. How many images can you upload or point to? Just one, or more?
4. I would like to have the actual auction up the top, followed by the thread which contains discussions about the auction itself underneath. Is this the case? Or is it just the ad?
RJ
ramone_johnny
06-06-2006, 12:33 AM
Anyone have any news on this hack being upgraded to run on the latest version.
I tried to install it on 3.5.4 but one of the index pages is completely different.
RJ
PanamaRed
07-31-2006, 10:56 PM
Looking to see if this has been upgraded to work with 3.4.5
ANyone know??
kreichelt
08-16-2006, 06:44 PM
Make sure that the file path in the iframe of the template is correct, and that you have CHMOD'ed the auction directory and files properly. The iframe will display whatever you tell it to display. You could change the URL to vb.org, for example, and it would display in the iframe - you need to change it to the URL to your auction.pl file, otherwise it will not display in the iframe.
Where do you go to fix the file path in the iframe of the template?
I see:
<iframe name="auction" ALIGN="CENTER" BORDER="0" FRAMEBORDER=0 HEIGHT=3000 WIDTH=100% MARGINHEIGHT=0 VSPACE=0 MARGINWIDTH=0 SCROLLING=0 src="$bboptions[bburl]/cgi-bin/auction/auction.pl"></iframe>
Where is $bboptions[bburl] defined? Is that something I should need to edit?
kreichelt
08-16-2006, 10:06 PM
OK, I fixed the iframes problem, but found that the auction.cgi and admin.cgi scripts are the problem. They run, but produce gibberish.
I'm running VBulletin 3.5.4 0 is that the problem? Or do I have some settings wrong?
The output from each looks largely like the CGI file itself starting after the
#!/usr/bin/perl line.
kreichelt:
This modification says it is for 3.0.8
dcpaq2xx
09-17-2006, 03:09 PM
Are there any plans to get this program to work with VB 3.6.x soon?
Doug
andrew67
10-02-2006, 07:46 PM
I am very interested in this for 3.5 , is there any other similar releases ?
cookiepants
10-23-2006, 02:16 AM
Will this work with 3.6.2? I'm looking for it or something similar. Thanks!
vbreal
10-24-2006, 04:52 AM
is this gonna work for latest version of vb
m0nde
11-20-2006, 11:51 AM
This is exactly what I was looking for, but is there a port to or someone willing to work on this and move it to 3.6.x?
puregraf
12-04-2006, 06:07 PM
does this allow for the admin to collect fees for listings and selling of the items the members list and end up selling for by using their service?
trickfly
01-08-2007, 11:17 PM
is vbay hack better than this, what are the differences between vbay and this?
Blaine0002
01-08-2007, 11:44 PM
yes, there is Vbay for the newer versions of vbulletin. Vbay was recently coded by me so I am still adding new features.
do this mod including payment system like paypal, worldpay etc?
Fabsboards
07-28-2007, 06:46 PM
Does this work with 3.6.x?
despo
07-31-2007, 01:16 PM
Does it work on the last version of VB?
despo
08-01-2007, 05:03 PM
Some One ?
masterweb
09-04-2007, 04:36 PM
Seems great but i have some questions: has anyone installed and tried this yet?, i saw the topic was started on 2005, now it's updated to the Vbulletin 3.6.8?, any Paypal backend integration?.
As I'm new using Vbulletin i prefer ask before try install this script so pls help me with your suggestions and comments.
steven_h
03-26-2008, 06:34 PM
Blaine, are you still actively working on this mod? I'm playing with the idea of doing a site similar to dn. Would this work as a one off of the site?
Thx in advance
Welshy2008
09-05-2008, 11:30 AM
Just looking through old threads on auctions, found via Google and I came across this one.
I think this is Fantastic. Unfortunately - I would think that it would not work on a 3.6.8 Patch level 2? :(
At present I have Blaine's auction installed (Not Live).
I love the idea of their own unique auction numbers and the email to a friend facility. (In fact - I love everything about it).
Is anyone able to release this particular mod compatible with the 3.6.8 Patch Level, Please? I would be more than happy to donate - even though I am adding it as a "Free to use" by my forum members.
Blaine, are you still actively working on this mod? I'm playing with the idea of doing a site similar to dn. Would this work as a one off of the site?
Thx in advance
Here is the one that Blaine has been working hard on: https://vborg.vbsupport.ru/showthread.php?t=132544&highlight=Anti-Spam
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.