#1
|
||||
|
||||
Promo Codes
Why is it that I can't let each user on the site use the same promo code once each? I want to give everyone an item but only let them get it once each by entering the same promo code. How can I achieve this?
|
#2
|
||||
|
||||
I assume it's this part?
Code:
private function checknumber(){ $data = $GLOBALS['adopts']->select("messages", array(), "touser='{$loggedinname}' and status='unread'")->fetchAll(); if($this->availability == 0){ // The promocode has been used, so it is unavailable now... $this->message .= "The promocode has been used before and is now unavailable. Please contact the admin if you believe this is a mistake.<br>"; return FALSE; } else return TRUE; } |
#3
|
||||
|
||||
Well because the way this system is designed does not support advanced usage of public promocodes. And in fact to make a promocode available for each user only once, it will require a bit more coding than I had envisioned at the very beginning. You need to create a field in your database table prefix.promocodes to keep track of a list of users who have used this specific promocode. It may not be difficult, but sure can be tedious.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some ideas for hiding Promo Codes | Kyttias | Tutorials and Tips | 13 | 04-20-2015 01:22 AM |
A small question regarding adoption limits and promo codes..c: | Pear | Feedback and Suggestions | 2 | 06-25-2014 10:06 PM |
Promo And Banning | Alaric | Questions and Supports | 5 | 04-20-2012 08:28 AM |
promo codes | maximillion | Questions and Supports | 5 | 07-05-2011 06:28 PM |
Admins Can View All Active Promo Codes | HIddenPanda | Mys v1.1.x Mods | 0 | 07-15-2010 06:55 PM |
What's New? |
What's Hot? |
What's Popular? |