+ Reply to Thread
Page 6 of 6 FirstFirst 1 2 3 4 5 6
Results 76 to 81 of 81

 

Thread: Free PHP Voucher Code Framework

  1. #76
    lowndsy's Avatar
    Dark Prince

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Behind you
    Posts
    1,805
    Thanks
    5
    Thanked 37 Times in 28 Posts


    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>.\n<br />Query: " $query "<br />\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.
    Affiliate Partnership Manager - Kidstart

  2. The Following User Says Thank You to lowndsy For This Useful Post:

    ChristopherB (09-09-08)

  3. #77
    Registered User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    224
    Thanks
    12
    Thanked 3 Times in 2 Posts
    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.

  4. #78
    Registered User

    Status
    Offline
    Join Date
    Nov 2007
    Posts
    126
    Thanks
    21
    Thanked 8 Times in 8 Posts
    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

  5. #79
    lowndsy's Avatar
    Dark Prince

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Behind you
    Posts
    1,805
    Thanks
    5
    Thanked 37 Times in 28 Posts
    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.
    Affiliate Partnership Manager - Kidstart

  6. The Following User Says Thank You to lowndsy For This Useful Post:

    Richard101 (12-09-08)

  7. #80
    ash
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Posts
    435
    Thanks
    36
    Thanked 51 Times in 38 Posts
    Dragging up an slightly old thread but whats happened to the wiki? Did it get hacked?

  8. #81
    Registered User

    Status
    Offline
    Join Date
    Apr 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi Guys,

    I know this is an oold thread, but this script is so much better.

    where has the wiki for it gone?

    http://blog.affiliatefuture.co.uk/AF...FrameworkWiki/

    Dave

+ Reply to Thread
Page 6 of 6 FirstFirst 1 2 3 4 5 6


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Webgains weekly updated merchant promotions
    By Emma Delaforce in forum Webgains
    Replies: 0
    Last Post: 24-01-08, 12:46 PM
  2. Weekly Update: Webgains Current Promotions
    By Emma Delaforce in forum Webgains
    Replies: 2
    Last Post: 08-06-07, 10:09 AM
  3. Replies: 0
    Last Post: 10-01-07, 08:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2