|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHPauction. Auction closed!
I have installed php auctions 2.1 but there seems to be some sort of date problem.
When an item is added for sale and submitted, the auction is already closed (finished). Upon checking the auction in the admin cp. the date is not showing correctly, I.E 3-/-2/2006. The actual date should be 03/12/2006. This is a free instalation via cpanel from my provider. I have looked at 'date.inc.php' but all looks ok in there. Anyone come across this before? |
|
#2
|
|||
|
|||
|
RE: PHPauction. Auction closed!
same problem as me mate.... did you find a solution?
|
|
#3
|
|||
|
|||
|
RE: PHPauction. Auction closed!
Quote:
I got the same problem and searched the net for hours without any help and success.. Could anyone please mail me the sollution to this problem to groothuijsen@gmail.com ??? Kind regards. Paul |
|
#4
|
|||
|
|||
|
RE: PHPauction. Auction closed!
I would give up on this one. If you *really* need it go to the PHPAuction official site (which is no longer free... boo!) and they have a link to a cruddy hosting provider that has it.
PHP Auction 2.1 simply doesn't work with recent versions of SQL. I've tried on 2 hosting providers with Fantastico. You *could* fix it yourself... read the last message on the following thread: http://auctioncode.com/viewtopic.php?t=964 and you'll see why the date thing is doing what it is doing. I just spent, errrmm, 3 or 4 hours going through the code and updating the substring values. And it worked! And then 20 other errors popped up when you tried to make a bid. Waste. Of. Time. I wish Fantastico / Hosting providers would friggen' address this - either by putting up something that works or by removing it (as it's a time-sink to try and get to work). |
|
#5
|
|||
|
|||
|
RE: PHPauction. Auction closed!
an conversion of the databases to sql 4.0 couldn't help this?
because i dont know what is going wrong in the sql. is the database sql file in version 4.0 and so uploaded in the wrong format? you know what's the frustrating thing? I had it working about one year ago and just wanted to update .. grrrrrr |
|
#6
|
|||
|
|||
|
RE: PHPauction. Auction closed!
Fix the timestamp before it's used:
$year = substr($t,0,4); // the variable you need to work on is $t - then just before put: $date = ereg_replace("/|-|:| |.|,","",$t); // leave the rest as it is. $year = substr($t,0,4); $month = substr($t,4,2); in onother page you will find this value is taken from $date, then $date = ereg_replace("/|-|:| |.|,","",$date); // leave the rest as it is. $year = substr($date,0,4); $month = substr($date,4,2); etc GattoTigre |
|
#7
|
|||
|
|||
|
RE: RE: PHPauction. Auction closed!
Quote:
Typo! mistake in the first example. GattoTigre |
|
#8
|
|||
|
|||
|
RE: PHPauction. Auction closed!
in fact, is has only to do with the interpretation of the date.
e.g. today is 17.12.2006 3:36 am 23 sec. --> that would be 20061217033623 $year = substr($t,0,4); -> means: starting at position 0 taking 4 numbers (2006) $month = substr($t,5,2); -> means: starting at position 5 taking 2 numbers (12) etc. The tricky thing is, that the timestamp on your server might use a different format, e.g 2006-12-17-03-36-23 as a consequence: $year = substr($t,0,4); -> means: starting at position 0 taking 4 numbers (2006) $month = substr($t,6,2); -> means: starting at position 5 taking 2 numbers (12) it could also be: 200612-17-03-36-23 have a try, it worked well for me. |
|
#9
|
|||
|
|||
|
RE: PHPauction. Auction closed!
i have the same problem with the date-format
has anybody a fixed file to download or to mail? or which files have to be edited? i have v2.1 from phpauction my email: mailaddie@web.de thank you! |
|
#10
|
|||
|
|||
|
Solved
Using GattoTigre's approach i have solved this and generated a zip with all the needed files. You can find it here:
sv-consult . dk + /sharing/phpauction.html (you don't need to register, don't worry) If you are not interested in that, you should at least be aware that Gattotigres regular expression is wrong. it should be: PHP Code:
the error is NOT escaping . like \. feel free to email me if you can not access my site. the rules doesn't allow me to make it a real url svconsult |
|
#11
|
|||
|
|||
|
Solution!
Quote:
You can fix it by going through the following phpauctions files and where you see the time settings: index.php item.php 0, 4 4, 2 6, 2 8, 2 10, 2 12, 2 Change them to 0, 4 5, 2 8, 2 11, 2 14, 2 17, 2 Respectively. For example. Open item.php and find this: $year = substr($date,0,4); $month = substr($date,4,2); $day = substr($date,6,2); $hours = substr($date,8,2); $minutes = substr($date,10,2); $seconds = substr($date,12,2); Change it to: $year = substr($date,0,4); $month = substr($date,5,2); $day = substr($date,8,2); $hours = substr($date,11,2); $minutes = substr($date,14,2); $seconds = substr($date,17,2); |
|
#12
|
|||
|
|||
|
Hi everyone
I recently bought phpAuction XL v3.1. I installed it fine and set-up everything fine. Then i got to the "Fees", i set my fees for Home page listing, Bold listing etc. that all went fine, then i created an account to test the Auctions, i clicked on all the "Featured" listings (Home page listing, Bold listing), then i got to the next page and it asked me for my password so i entered it and i confirmed the auction. Then the same page came back and said that i do not have enough credits to use these features and it gave me the option to buy credits. I clicked on this and it asked me for the amount so i entered my required amount, then it took me to the next page where it asked me if i wanted to use PayPal and it gave me no other options. As i do not have a credit card, i cannot set up a PayPal account, so i need a different way to charge people for these "Featured Listings". My Admin Control Panel doesn't give me any extra Payment Methods such as 2Checkout etc. (These also wouldn't work even if they were offered because, as i said before, i don't have a credit card so i can't register with any of these sites.) So i would like to know if there is any way that i can let the customer use these "Featured Listings" and then it adds the cost to their next invoice. PLEASE, if anyone could help me with code to insert to allow me to do this, i would really appreciate it and i am willing to pay. Please can you invite me on Skype (dustin.ellse) so we can discuss costs and make payment arrangements. Kind regards Dustin Ellse |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHPauction. Auction closed! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|