Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2012, 02:10 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,220
SilverDragonTears is on a distinguished road
Default 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?
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 06-29-2012, 02:58 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,220
SilverDragonTears is on a distinguished road
Default

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;
  }
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 06-30-2012, 01:22 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,505
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
Reply

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 Off

Forum Jump

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


All times are GMT -5. The time now is 02:34 PM.

Currently Active Users: 454 (0 members and 454 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636