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 12-03-2012, 12:53 PM
GuardiansWish GuardiansWish is offline
Member
 
Join Date: Jun 2012
Posts: 95
Gender: Female
Credits: 8,406
GuardiansWish is on a distinguished road
Default One Sided Trades

Hi there. I am looking for a way to make one sided trades on my site. One of our members has suggested making a free items and exchanging that for a pet. wen we tested that today, it still said that we needed to offer an adopted pet. I would like to figure out a way where a member can gift another (be it a pet or an item). Thank you in advance for any help with this.

(I am updating to 1.3.2 today so help should go for that script)

Last edited by GuardiansWish; 12-03-2012 at 01:38 PM.
Reply With Quote
  #2  
Old 12-03-2012, 05:09 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: 329,576
Hall of Famer is on a distinguished road
Default

Umm this shouldnt be difficult, just need to disable the requirement for both parties to have to send adoptables in the trade request. I will help you, but can only do this by Thursday since I have a final exam coming up. Are you fine waiting till then? If not, someone else may be able to help you too. You most likely need to PM him/her.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 12-03-2012, 05:46 PM
GuardiansWish GuardiansWish is offline
Member
 
Join Date: Jun 2012
Posts: 95
Gender: Female
Credits: 8,406
GuardiansWish is on a distinguished road
Default

Yea, I'm fine waiting until then ^^
Reply With Quote
  #4  
Old 12-03-2012, 05:51 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: 329,576
Hall of Famer is on a distinguished road
Default

No problem, I am glad to see someone getting Mys v1.3.2 to run properly on their site. I made sure this new release has minimum if not zero glitches that stop your site from running, but some members are running PHP 5.2... *sigh*
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 12-03-2012, 07:01 PM
GuardiansWish GuardiansWish is offline
Member
 
Join Date: Jun 2012
Posts: 95
Gender: Female
Credits: 8,406
GuardiansWish is on a distinguished road
Default

Yea, the installion went pretty smoothly. I must say I was very pleased and we are LOVING the new admin panel.
Reply With Quote
  #6  
Old 12-03-2012, 07:14 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: 329,576
Hall of Famer is on a distinguished road
Default

Quote:
Originally Posted by GuardiansWish View Post
Yea, the installion went pretty smoothly. I must say I was very pleased and we are LOVING the new admin panel.
Oh great, glad you like it so far. Lemme know if you by any chance encounter any glitches, I cant find any on my beta site. This new ACP theme is gonna be what we will be using for Mys v1.4.0, although the content in ACP will change quite a lot. For the better of course, if you have any suggestions to make for the ACP overhaul project please feel free posting your ideas in this thread:
http://www.mysidiaadoptables.com/for...ead.php?t=3884
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 12-04-2012, 02:50 PM
GuardiansWish GuardiansWish is offline
Member
 
Join Date: Jun 2012
Posts: 95
Gender: Female
Credits: 8,406
GuardiansWish is on a distinguished road
Default Our First Error

I've got two of my artists unable to get to the adopts half of the site. This is the error they're getting. I think something is wrong with the group but I'm not sure.

Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class Mod either does not exist!' in /home/chibifur/public_html/classes/class_loader.php:26 Stack trace: #0 [internal function]: Loader->load('Mod') #1 /home/chibifur/public_html/classes/class_membercreator.php(58): spl_autoload_call('Mod') #2 /home/chibifur/public_html/classes/class_membercreator.php(38): MemberCreator->create_mod() #3 /home/chibifur/public_html/classes/class_mysidia.php(89): MemberCreator->create() #4 /home/chibifur/public_html/classes/class_mysidia.php(39): Mysidia->getcurrentuser() #5 /home/chibifur/public_html/inc/init.php(27): Mysidia->initialize() #6 /home/chibifur/public_html/adopt.php(3): require('/home/chibifur/...') #7 {main} thrown in /home/chibifur/public_html/classes/class_loader.php on line 26
Reply With Quote
  #8  
Old 12-04-2012, 03:02 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: 329,576
Hall of Famer is on a distinguished road
Default

Quote:
Originally Posted by GuardiansWish View Post
I've got two of my artists unable to get to the adopts half of the site. This is the error they're getting. I think something is wrong with the group but I'm not sure.

Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class Mod either does not exist!' in /home/chibifur/public_html/classes/class_loader.php:26 Stack trace: #0 [internal function]: Loader->load('Mod') #1 /home/chibifur/public_html/classes/class_membercreator.php(58): spl_autoload_call('Mod') #2 /home/chibifur/public_html/classes/class_membercreator.php(38): MemberCreator->create_mod() #3 /home/chibifur/public_html/classes/class_mysidia.php(89): MemberCreator->create() #4 /home/chibifur/public_html/classes/class_mysidia.php(39): Mysidia->getcurrentuser() #5 /home/chibifur/public_html/inc/init.php(27): Mysidia->initialize() #6 /home/chibifur/public_html/adopt.php(3): require('/home/chibifur/...') #7 {main} thrown in /home/chibifur/public_html/classes/class_loader.php on line 26
I see, the class Mod has yet to be made available. To fix the error, go to your class_membercreator.php and replace the entire code by this below:

PHP Code:
<?php

class MemberCreator extends UserCreator{
  
// The abstract factory class UserCreator
  
protected $userinfo;
  protected 
$usergroup;
  protected 
$user;
   
  public function 
__construct($userinfo){
     if(empty(
$userinfo)) throw new Exception('User id or Username does not exist...');
     
$this->userinfo $userinfo;
     
$this->usergroup $this->getgroupid();
  }

  public function 
getgroupid(){
     global 
$mysidia;
     
$whereclause $whereclause = (is_numeric($this->userinfo))?"uid ='{$this->userinfo}'":"username ='{$this->userinfo}'";
     
$gid $mysidia->db->select("users", array("usergroup"), $whereclause)->fetchColumn();
     return 
$gid;
  }

  public function 
getgroupcategory(){
     
// This feature will be fully implemented in Mys v1.3.3 or v1.3.4.
     
if($this->usergroup == or $this->usergroup == 2) return "Admin";
     elseif(
$this->usergroup == or $this->usergroup == 6) return "Mod";
     elseif(
$this->usergroup == 3) return "Registered";
     elseif(
$this->usergroup == 5) return "Banned";
     else throw new 
Exception('Cannot recognize usergroup category for this user, he/she may be a guest, a bot, or else...');
  }

  public function 
create(){
     
$category $this->getgroupcategory();
     switch(
$category){
        case 
"Admin":
           
$this->user $this->create_admin();
           break;
        case 
"Mod":
           
$this->user $this->create_admin();
           break;
        case 
"Banned":
           
$this->user $this->create_banned();
           break;           
        default:
           
$this->user $this->create_member();                   
     }
     return 
$this->user;     
  }
  
  public function 
massproduce(){
     return 
FALSE;
  }
    
  private function 
create_admin(){
     return new 
Admin($this->userinfo);
  }
  
  private function 
create_mod(){
     return new 
Mod($this->userinfo);
  }
  
  private function 
create_member(){
     return new 
Member($this->userinfo);
  }
  
  private function 
create_banned(){
     return new 
Banned($this->userinfo);
  }
}
?>
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 12-04-2012, 04:59 PM
GuardiansWish GuardiansWish is offline
Member
 
Join Date: Jun 2012
Posts: 95
Gender: Female
Credits: 8,406
GuardiansWish is on a distinguished road
Default

Okay. I just put it in and I will let you know as soon as I hear from them if it worked or not.
Reply With Quote
  #10  
Old 12-04-2012, 05:11 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: 329,576
Hall of Famer is on a distinguished road
Default

Quote:
Originally Posted by GuardiansWish View Post
Okay. I just put it in and I will let you know as soon as I hear from them if it worked or not.
Well that should work, but incase it does not please let me know. I wish you best luck.
__________________


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
Partial Trades Not Showing - MystFell.com NobodysHero Questions and Supports 12 12-12-2015 06:56 AM
Can offer negative money on trades tittlemouse Questions and Supports 7 03-24-2011 10:34 AM


All times are GMT -5. The time now is 07:45 PM.

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