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
  #11  
Old 04-12-2012, 12:51 AM
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: 333,304
Hall of Famer is on a distinguished road
Default

the adopt.php file in AdminCP subfolder.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #12  
Old 04-12-2012, 12:51 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,343
SilverDragonTears is on a distinguished road
Default

No it says
Code:
<p>
									User:(leave blank if you want it to be available to everyone)<br>  
								<input name='user' type='text' id='name'>
								</p>
__________________

Check out SilvaTales
Reply With Quote
  #13  
Old 04-12-2012, 01:43 AM
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: 333,304
Hall of Famer is on a distinguished road
Default

Then change it, I apologize for this. No idea why it happened as my site was working out just nicely...
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #14  
Old 04-12-2012, 01:48 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,343
SilverDragonTears is on a distinguished road
Default

Changed it and readded the promocode but there is still nothing in the user field
__________________

Check out SilvaTales
Reply With Quote
  #15  
Old 04-12-2012, 01:52 AM
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: 333,304
Hall of Famer is on a distinguished road
Default

Then it was not the cause of your problem after all, its strange how it is working on my site though. What did you enter for the user field? It should be the username, not uid.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #16  
Old 04-12-2012, 02:01 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,343
SilverDragonTears is on a distinguished road
Default

Nothing. It says if you want it to apply to all then to leave it blank.
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 04-12-2012 at 02:05 AM.
Reply With Quote
  #17  
Old 04-12-2012, 02:17 AM
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: 333,304
Hall of Famer is on a distinguished road
Default

Oh... So the promocode is working if you give it to a specific user, but not to the general public?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #18  
Old 04-12-2012, 02:18 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,343
SilverDragonTears is on a distinguished road
Default

Yep! That's the problem
__________________

Check out SilvaTales
Reply With Quote
  #19  
Old 04-12-2012, 02:26 AM
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: 333,304
Hall of Famer is on a distinguished road
Default

I see, at this moment the promocode is not set up in a way to handle multiple users yet. However, you can make it happen by editing these:

PHP Code:
  public function __construct($code ""){
      
// Fetch the database info into object property

      
$stmt $GLOBALS['adopts']->select("promocodes", array(), "code ='{$code}'");
      if(
$row $stmt->fetchObject()){
         
// loop through the anonymous object created to assign properties
         
foreach($row as $key => $val){
            
// Assign properties to our promocode instance
            
$this->$key $val;         
         }
      }
      else 
$this->message "Promocode does not exist...<br>";
  } 
change to:

PHP Code:
  public function __construct($code ""){
      
// Fetch the database info into object property

      
$stmt $GLOBALS['adopts']->select("promocodes", array(), "code ='{$code}'");
      if(
$row $stmt->fetchObject()){
         
// loop through the anonymous object created to assign properties
         
foreach($row as $key => $val){
            
// Assign properties to our promocode instance
            
$this->$key $val;         
         }
         if(empty(
$this->user)) $this->user $GLOBALS['loggedinname'];
      }
      else 
$this->message "Promocode does not exist...<br>";
  } 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #20  
Old 04-12-2012, 02:29 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,343
SilverDragonTears is on a distinguished road
Default

Sorry :/ Which script?
__________________

Check out SilvaTales
Reply With Quote
Reply


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
Give promocode when buy item? dulop Questions and Supports 5 02-02-2013 05:42 AM
1.3.2 promocode for pages draugluin Questions and Supports 1 12-10-2012 03:36 PM
Promocode Problem Roaringwindz Questions and Supports 5 11-21-2012 10:04 AM
Change promocode private message dulop Questions and Supports 6 09-06-2012 09:04 PM
Item Promocode MaximumRide Questions and Supports 11 05-02-2012 11:31 PM


All times are GMT -5. The time now is 05:05 AM.

Currently Active Users: 9707 (0 members and 9707 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