Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #76 (permalink)  
Old 09-09-08
Dark Prince
 
Join Date: Aug 2003
Location: Moving to Windsor Woohoo!
Posts: 1,587
Thanks: 0
Thanked 9 Times in 7 Posts
lowndsy is an unknown quantity at this point
  Re: Free PHP Voucher Code Framework

Oops - added some extra bug checking to the code and left the old line in too.
Easy peasy to fix - just find this in newcode.php:
PHP Code:
$perform_insert=mysql_query($sql);
$perform_insert mysql_query($sql) or die("<b>Data could not be entered</b>.\nQuery: " $query "\nError: (" mysql_errno() . ") " mysql_error()); 
and delete this line:
PHP Code:
$perform_insert=mysql_query($sql); 
The zip file download has been updated with the fixed version.
__________________
I'm on the AF Affiliate team but I'll always be a grubby affiliate at heart...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to lowndsy For This Useful Post:
ChristopherB (09-09-08)
Sponsored Links
  #77 (permalink)  
Old 09-09-08
Registered User
 
Join Date: Jun 2007
Posts: 220
Thanks: 8
Thanked 3 Times in 2 Posts
ChristopherB is an unknown quantity at this point
  Re: Free PHP Voucher Code Framework

Another issue is, i added a discount code for the merchant dixons (created the merchant also.) however under D it's not working and it's not entering anything in the DB for the firstletter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #78 (permalink)  
Old 09-09-08
Registered User
 
Join Date: Nov 2007
Posts: 35
Thanks: 5
Thanked 2 Times in 2 Posts
Richard101 is an unknown quantity at this point
  Re: Free PHP Voucher Code Framework

Great framework, should create a number of diverse sites, as intended.

I have played around with some of the sql to change when a code is expired. At the moment the function is referencing now() to determine which codes are expired and hence indicating codes that expire today are expired.

I have tried using (DATE_ADD(now(),INTERVAL 1 DAY)) to no avail, any suggestions?

Thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #79 (permalink)  
Old 11-09-08
Dark Prince
 
Join Date: Aug 2003
Location: Moving to Windsor Woohoo!
Posts: 1,587
Thanks: 0
Thanked 9 Times in 7 Posts
lowndsy is an unknown quantity at this point
  Re: Free PHP Voucher Code Framework

Christopher: I'm afraid I can't replicate that - can you try with the latest code from the zip file?
newcode.php is the file which controls this and it has had a bit of work done on it recently.


Richard: yeah - it has been noticed. I'm looking for an acceptable fix to it, but to be honest I won't be deploying the fix on my own system - I have noticed that not all merchants agree on whether the voucher code expires at the end or start of the day they define, and since I'm trying to keep my own data uber clean and accurate I'd rather present it as expired rather than have users make a decision to buy from a particular merchant based on codes which might not work. It's not ideal, but that's what I'm doing at the moment.
I'll publish the fix and let people decide which one to use - perhaps by flicking a switch in the config file.


Everyone: As ever, I have tidied the functions file up again - it is looking much neater now and tightens up a lot of the sql statements. If you are already using the thumbnail version you can just drop the new functions file into your sites without breaking anything. It should work in previous versions too (no promises), but I urge you to update to the latest one - lots of minor things have been smartened up, especially in the admin.
__________________
I'm on the AF Affiliate team but I'll always be a grubby affiliate at heart...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to lowndsy For This Useful Post:
Richard101 (11-09-08)
Sponsored Links
  #80 (permalink)  
Old 14-10-08
ash ash is offline
Registered User
 
Join Date: Mar 2006
Posts: 267
Thanks: 9
Thanked 18 Times in 12 Posts
ash is an unknown quantity at this point
  Re: Free PHP Voucher Code Framework

Dragging up an slightly old thread but whats happened to the wiki? Did it get hacked?
__________________
Promotional Codes | Present Ideas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webgains weekly updated merchant promotions Emma Delaforce Webgains 0 24-01-08 12:46 PM
Weekly Update: Webgains Current Promotions Emma Delaforce Webgains 2 08-06-07 09:09 AM
Promotions & offers from Webgains merchants Hero Webgains 0 10-01-07 08:57 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7