Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-13-2012, 10:07 PM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 319,591
Alaric is on a distinguished road
Default

I Guess you are having the same problem as shown In The link (.See Screenshots.)

Problem

I'll help you out!

1. Go to the File-Manager.
2. Find classes/class_promo.php
3. Find this part as shown below.

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>";
  } 
4. Now Change it 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>";
  } 
__________________
Reply With Quote
 


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 06:42 AM
1.3.2 promocode for pages draugluin Questions and Supports 1 12-10-2012 04:36 PM
Change promocode private message dulop Questions and Supports 6 09-06-2012 10:04 PM
Item Promocode MaximumRide Questions and Supports 11 05-03-2012 12:31 AM
Promocode SilverDragonTears Questions and Supports 25 04-12-2012 04:11 AM


All times are GMT -5. The time now is 08:47 PM.

Currently Active Users: 2703 (0 members and 2703 guests)
Threads: 4,082, Posts: 32,047, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636