Page 1 of 6 123456 LastLast
Results 1 to 15 of 81

 

Thread: Free PHP Voucher Code Framework

  1. #1
    3wdl's Avatar
    Super Dancer

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    3,212
    Thanks
    181
    Thanked 146 Times in 107 Posts


    Hi all,

    Steve has been hard at work recently working on a Free Voucher Code Framework that we've just released the first version of.

    It's a pretty simple system that you can read more about and download here:

    AffiliateFuture blog - updates and comments from the leading UK Affiliate Network AF Voucher Framework

    It makes use of the AffiliateFuture Voucher Code XML file so imports all our codes automatically and you can use the CMS to add codes and offers from other networks.

    This is the very first version and there are a number of enhancements that we'll make along the way but the idea is to give a basic framework that affiliates can use and develop on, be it the design or adding additional features.

    Feedback is always welcome - we're working on a number of these style of applications to release in the future.

    Cheers
    James
    James Little | Partnerships Director | TopCashBack

  2. The Following 2 Users Say Thank You to 3wdl For This Useful Post:

    John Jupp (21-08-08), ZacZheng (14-10-09)

  3. #2
    3wdl's Avatar
    Super Dancer

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    3,212
    Thanks
    181
    Thanked 146 Times in 107 Posts
    BTW - You can see two simple intergrations of this at the following sites:

    Discount voucher codes and coupons from UrVouchers
    Why Pay Full Price?

    It will be quite easy to create new templates for - hopefully we'll see some affiliates pick it up and share some of their templates and we'll look to release a few more ourselves in the future.
    James Little | Partnerships Director | TopCashBack

  4. #3
    philhancox's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    513
    Thanks
    4
    Thanked 18 Times in 16 Posts
    :tup Nice innovation, I think I'll have to look at that XML service on it's own at some point as well.

    ---Edited: Sorry, ignore me, I'm blind as a bat - -
    PhilHancox.co.uk | Affiliate with sites including discount codes, etc etc | I'm on Twitter

  5. #4
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,123
    Thanks
    247
    Thanked 198 Times in 157 Posts
    Def be looking at the way it handles your xml file later on tonight. MMMmm automated.

    Ta

    Baz

  6. #5
    Registered User

    Status
    Offline
    Join Date
    Sep 2007
    Posts
    1,351
    Thanks
    43
    Thanked 72 Times in 63 Posts
    im just plain disgusted at affiliatefutures nerve of releasing this free script...

    i mean , free ? it must be crap to offer it for free , so i gave it a go anyway.

    2 mins to set it all up (i was also making dinner at the time so excuse how long it took) and thats it , looks a piece of piddle to mod it and change how it looks etc, should be fairly easy to add new bits as well.

    so should u buy a script or try this ? u would be mad not to try this first , i would compare this pricetapestry , out the box it doesnt look pretty , but with a few design skills will look great and appears to work very well (well after the 5 mins its been installed anyway)

    top job mr little and affiliatefuture

  7. The Following User Says Thank You to Cheapdvds For This Useful Post:

    3wdl (20-08-08)

  8. #6
    befuddle's Avatar
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    1,101
    Thanks
    91
    Thanked 61 Times in 45 Posts
    I've got it installed here, took less than ten minutes to have it running with current Affiliate Future content and I'm not a techie.

    I Want Voucher Codes

    I'm not here to plug but I'm wracking my brain on two bugs.

    i) The merchants links aren't correct. They're being appended to the site's url, so I need to find a rogue dot or something.

    ii) £ signs are not being formatted correctly. Appearing as ? in Firefox and worse in IE.

    Here's to another night neglecting my main site whilst I have a play.

    Cheers, Ray

  9. #7
    3wdl's Avatar
    Super Dancer

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    3,212
    Thanks
    181
    Thanked 146 Times in 107 Posts
    cheapdvds - thanks for the comments - the thanks should mainly go to Steve for developing it as I'm just the pencil pusher, always nice to have feedback like that.

    Thanks Ray - we'll get those bugs fixed tonight and get the updated version out either tonight or tomorrow!

    I'm having a play tonight at this myself - managed to completely change the design so i'll put a link up when it's finished!

    J
    James Little | Partnerships Director | TopCashBack

  10. #8
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,123
    Thanks
    247
    Thanked 198 Times in 157 Posts
    I havnt tried it as I am still looking over the code. But to make the deeplinks correct you need to find the following in the functions file:-

    PHP Code:
    $deeplink=cleandata($voucherarray[$i][LandingPage][value]); 
    and change it to:-

    PHP Code:
    $deeplink=trim($voucherarray[$i][LandingPage][value]); 
    Ta

    Baz

  11. #9
    Registered User

    Status
    Offline
    Join Date
    Sep 2007
    Posts
    1,351
    Thanks
    43
    Thanked 72 Times in 63 Posts
    the pound sign is because the script isnt classing it as a valid character , u just need to add it somewhere but i cant find where yet

  12. #10
    Registered User

    Status
    Offline
    Join Date
    Sep 2007
    Posts
    1,351
    Thanks
    43
    Thanked 72 Times in 63 Posts
    think it should be in inc/functions.php , have checked but the pound sign is already listed as a clean character so not sure now

  13. #11
    befuddle's Avatar
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    1,101
    Thanks
    91
    Thanked 61 Times in 45 Posts
    Viewing the html source, it looks like : and . are being stripped out of the url but / are included.

  14. #12
    lowndsy's Avatar
    Dark Prince

    Status
    Online
    Join Date
    Aug 2003
    Location
    Behind you
    Posts
    1,824
    Thanks
    7
    Thanked 44 Times in 33 Posts
    edit: Replaced my previous post wit the most up to date fix.

    Open up inc/functions.php and replace the cleandata function with this one.

    TAKE THE SPACES OUT OF THE ISO values (& # 36; etc) - I had to put them in to make them display here.

    PHP Code:
    // Clean Data
    function cleandata ($cleantarget

    $cleantarget TRIM($cleantarget); 
    $cleantarget STRIPSLASHES($cleantarget); 
    $cleantarget=strip_tags($cleantarget); 
    $cleanchars = array("'""*""@""`"",""~""("")""{""}""\\""\""); 
    $cleantarget str_replace($cleanchars""$cleantarget);
    $cleantarget str_replace("£""& # 163;"$cleantarget);
    $cleantarget str_replace("%""& # 37;"$cleantarget);
    $cleantarget str_replace("$""& # 36;"$cleantarget);

    //USEFUL ROUTINES TO KEEP TUCKED AWAY 
    //Heavy duty one below - uncomment use if you absolutely only want letters and numbers...
    //$cleantarget = ereg_replace("[^A-Za-z0-9]", "", $cleantarget); 
    // Conditional ADDSLASHES CLAUSE - CHECKS IF MAGIC QUOTES IS INSTALLED - MIGHT BE USEFUL 
    //if (!get_magic_quotes_gpc()) { 
    //$cleantarget=addslashes($cleantarget); 
    //} 

    $cleanedup=$cleantarget
    return 
    $cleanedup

    You will need to reimport your vouchers to update them. Empty the DB and re-import or just edit them and save to update them.
    Affiliate Partnership Manager - Kidstart

  15. The Following 2 Users Say Thank You to lowndsy For This Useful Post:

    3wdl (20-08-08), befuddle (20-08-08)

  16. #13
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,123
    Thanks
    247
    Thanked 198 Times in 157 Posts
    I'll be on the case in about 5 mins. Just getting it uploaded and installed now.

    Ta

    Baz

  17. #14
    3wdl's Avatar
    Super Dancer

    Status
    Offline
    Join Date
    Jun 2005
    Posts
    3,212
    Thanks
    181
    Thanked 146 Times in 107 Posts
    I'm going to bed soon, but I thought I'd show that the site can look very different:

    This has taken me about 30 minutes to put together after finding a free template - still a fair bit to do on it though!

    Discount-Code.eu >> Voucher Codes and Discount Codes across the UK and Europe

    I've also changed a few bits and pieces and put things into headers and footers which we may well replicate tomorrow to make the templating a bit easier.
    James Little | Partnerships Director | TopCashBack

  18. #15
    befuddle's Avatar
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    1,101
    Thanks
    91
    Thanked 61 Times in 45 Posts
    Thanks, the pointer to that free CSS template site is useful too

Page 1 of 6 123456 LastLast


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, 11:46 AM
  2. Weekly Update: Webgains Current Promotions
    By Emma Delaforce in forum Webgains
    Replies: 2
    Last Post: 08-06-07, 09:09 AM
  3. Replies: 0
    Last Post: 10-01-07, 07: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