Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mysidia Adoptables Official Announcement (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=2)
-   -   Mysidia Adoptables v1.3.2[Security Release] (http://www.mysidiaadoptables.com/forum/showthread.php?t=3878)

Hall of Famer 11-22-2012 09:47 PM

Mysidia Adoptables v1.3.2[Security Release]
 
Well guess the development for Mys v1.3.2 has been taking longer than expected, I almost put it off for like half a year. The good news is that the new version is finally ready to be released. Happy Turkeys day everyone, and now allow me to introduce the changes and new features in Mys v1.3.2:

1. Improvement of Object Oriented Design: If Mys v1.3.1 was our first step towards OOP, Mys v1.3.2 sure pushed this forward quite a bit. In this version several core mysidia classes are created, they will prove quite useful for us in not so distant future. Mys v1.3.2 introduces 50+ new classes, and old classes are revised to improve performance. The ACP brings up the concept of controller, which you will see a lot in Mys v1.3.3.

2. New AdminCP Layout and functionality: Well this isnt the grand ACP overhaul project I was talking about for Mys v1.4.0, but its a rather important step to achieve the goal. I already posted the new ACP layout in a blog entry, I like the way it looks thanks to Nyxi's awesome work. The ACP menu items expand/collapse using javascript, something you may find intriguing once you get used to how it works.

3. Adoptables Shop System: It is now possible to buy adoptables from various shops in the marketplace! The shop works in a similar way as itemshop, in which admins can specify whether the shop is open and how much tax to charge. The adoption center now only shows pets not purchasable from adoptables shop. This was supposed to be the main new feature for Mys v1.3.2, though it didnt take me much time to complete.

4. Protected Custom Pages:
If you have paid attention to a recent blog I posted, you'd figure out that the content management system has received a major improvement. In additional to the usage of CKEditor, admins can even specify protected pages with the following conditions: promocode, item, time and usergroup. The four aint mutually exclusive, so it is up for you to build an highly protected page for authorized users only.

5. MyBB Forum Integration Basics: It's been quite a long time since we first supported MyBB forum integration. In Mys v1.3.1 there was a problem that forum stats could not rebuild, which led to messed up forum stats. This has been fixed in Mys v1.3.2, and at this point all basics of MyBB bridge are completed. Future updates will probably bring up advanced features such as user sync and forum posts/activity in user profile tab.

6. Old glitches fixed in new release: umm this happens in every release, doesnt it? One major issue was the font size glitch with pagination, this has been resolved in Mys v1.3.2. The promocode now supports both public and private promocodes equally well. Adoptables hard deletion is also working as it should be. Anyway Mys v1.3.1 fixed most glitches in the original release, so there probably aint many noticeable ones this time.

Installation Guide:
1. Use ftp to Upload the entire folder Mysidia Adoptables v1.3.2 to your preferred directory, and change the name to whatever you like.
2. Change the CMD of folder "picuploads" to 777, together with its subfolders, this is required to enable user uploading images.
3. Rename the file config_adopts to config.php, otherwise the script will tell you config.php does not exist.
4. Access the installer script at "http://yoursitename.com/install/index.php", follow the instructions and proceed.
5. Congrats, you've successfully installed Mys v1.3.2. There is no need to manually encrypt your password in Mys v1.3.2, so cheers!

Note: The value pepper code can be generated from a website called: http://strongpasswordgenerator.com/, it can be of any length and may contain symbols. Make sure to delete the file install/index.php after running this script, or your site is potentially at danger if this file is accessed by someone else.

Upgrade Mini-Guide:
An upgrader from mys v1.3.1 is available, but the megaupgrader from Mys v1.2.x will have to wait till probably in my winter break. To upgrade, simply upload all script files to your folder and overwrite the existing ones. The config file is named config_adopts.php by default, so your old config file should be safe. Now run the upgrade.php script to complete this task, shouldnt take more than 10 secs. Note you need to manually remove the file lang.php from your /inc directory before proceeding, and the upgrade.php file too after you have completed this process.

Do not use the upgrader if you have a site with heavily modified script! Unlike Mys v1.3.1, Mys v1.3.2's changes are way too dramatic. If you have modified any script files before, or added your own piece of code, your site will surely not function at all. Even old Mods/Addons for Mys v1.3.1 do not work on this version, for this reason I will update my 'Gender Ratio' Mod a few hours later to be compatible with this version. Of course if you are intermediate or advanced programmer, you should be fine making changes on your own to get it to work somehow.


Forum Integration Guide:

First of all, make sure you have both fresh installation of Mysidia Adoptables and MyBB forum. Open the file /inc/config_forums.php, enter each empty field for the database info of your MyBB forum. Then Change the variable mybbenabled from 0 to 1. The very last step is to disable registration on the forum. It is all said and done, new users will have accounts created from both the adoptables site and the forum from now on. In Mys v1.3.2 they also log into site and forum accounts simultaneously! The forum stats is automatically updated whenever a new registration is completed, so there is no need for admins to update forum stats in ACP from now on.

Download Links(both .rar and .zip are provided):

Rapidshare links:

Rar version:
https://rapidshare.com/files/2866623...s%20v1.3.2.rar

Zip version:
https://rapidshare.com/files/1617330...s%20v1.3.2.zip

Mediafire Links:

Rar version:
http://www.mediafire.com/?xk38s8mocccvnw4

Zip version:
http://www.mediafire.com/?9zpf0xvaxs2d76h

The fact is that, well, Mys v1.3.2 is a dramatic change from Mys v1.3.1. It comes with a few new features, but these features alone should not have taken more than 2 months for me. The real challenge was with the improvement of script quality. I am trying to establish an organized coding style and structure for this script. Some programmers refer to this as framework, though at this point this script still does not really have a complete framework yet.

Starting from Mys v1.3.2 we are making a huge step in the transition from procedural PHP to object oriented PHP. The new code will probably give a headache to some of you, especially if you are so used to traditional php programming. This cannot be helped, its the way of future. The only thing I am sure is that once the transition is complete, development of Mysidia adoptables script will be moving forward in a different level. Much faster and much less redundant work.

I thank you everyone who stick to us and this project for this long without a stable release being made. The next version should not take more than one and a half month though, the transition from Mys v1.3.1 to v1.3.2 really was one of the hardest since we had to find a direction where this script should go.

Hall of Famer
November 22, 2012

Abronsyth 11-23-2012 10:12 AM

Yes! Yes! Yes! Downloading this right away! Finally decided that, since I love drawing them so much, I'm going to go ahead and make a Pine Marten site :D Can't wait to get working on my site!

You have no idea how grateful and happy I am for this script!

EDIT:
Okay, just finished installing the script and all went well...but when I tried to access my site, I got this:
Fatal error: Can't inherit abstract function Creator::create() (previously declared abstract in UserCreator) in /home/u526740665/public_html/classes/abstract/abstract_usercreator.php on line 3

Hall of Famer 11-23-2012 03:20 PM

umm weird, never happened to me before, are you trying to upgrade from an old site? Can you show me the two script files abstract_usercreator.php and class_membercreator.php? It looks to me that the script is trying to inherit the same method twice.

Abronsyth 11-23-2012 04:36 PM

Okay, here's the abstract_usercreator.php:
PHP Code:

<?php

abstract class UserCreator implements Creator{
  
// The abstract factory class UserCreator
  
  
abstract public function create();
  abstract public function 
massproduce();
  
  public static function 
logincheck(){
     global 
$mysidia;
    
     
//Check for cookie
     
if(!$mysidia->cookies->getcookies("mysuid") or !$mysidia->cookies->getcookies("myssession")) return FALSE;
     else{
        
$uid secure($mysidia->cookies->getcookies("mysuid"));
        
$session secure($mysidia->cookies->getcookies("myssession"));

        
//Run login operation
        
$luser $mysidia->db->select("users", array("uid""session"), "uid = '{$uid}'")->fetchObject();
        
$luid=$luser->uid;
        
$lsess=$luser->session;
        
        if(
$uid == $luid and $session == $lsess) return TRUE;
        else{
            if(isset(
$_COOKIE['mysuid'])) setcookie("mysuid"$uidtime() - 10);
            if(isset(
$_COOKIE['myssession'])) setcookie("myssession"$sessiontime() - 10);
            return 
FALSE;
        }
     }
     
// End of login check
  
}
  
  protected function 
getusergroup($userinfo){
     global 
$mysidia;
     
$whereclause = (is_numeric($userinfo))?"uid ='{$userinfo}'":"username ='{$userinfo}'";
     
$usergroup $mysidia->db->select("users", array("usergroup"), $whereclause)->fetchColumn();
     if(empty(
$usergroup)) throw new Exception('Invalid Usergroup, cannot instantiate user object');
     return 
$usergroup;
  }
  
  protected function 
getgroupcategory(){
     global 
$mysidia;
     
$category $mysidia->db->select("groups", array("category"), "uid ='{$uid}'")->fetchColumn();
     if(empty(
$category)) throw new Exception('Invalid Usergroup Category, cannot instantiate user object');
     return 
$category;     
  }
  
  protected function 
getidentity(){
     
$spiderip = array();
     if(
in_array($_SERVER['REMOTE_ADDR'], $spiderip)) $identity "Spider";
     else 
$identity "Guest";
     return 
$identity;
  }
  
}
?>

And here's the class_membercreator.php:
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_mod();
           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);
  }
}
?>

(Sometimes I feel like it's just my job to find as many errors as possible...most of them being my fault for some reason XD)

Hall of Famer 11-23-2012 05:29 PM

Well its perfectly fine, lol. An compile-time error like this should have been detected and fixed by me way before the official release if I can find it. Mvm...

I dont see anything wrong with the script, lets give this a try though. For the UserCreator class, find the first line::

PHP Code:

abstract class UserCreator implements Creator

remove the implements Creator parts so it becomes:

PHP Code:

abstract class UserCreator

See if it works. If not, post your class_visitorcreator.php too and I'd like to do a thorough search on what may be causing the error.

schepers12 11-24-2012 07:59 AM

is htere also coming a tutorial coming for imlementing own scripts? (i.e. modifications), as i heard somewhere on this board that there are some changes in the variables~ (and i don't know what to change right now in my modifications):catfish:

Hall of Famer 11-24-2012 08:06 AM

Well yeah, I will post a short tutorial on how to do this. In fact, its pretty simple.

And btw, do you encounter the 'cannot inherit abstract method' error Iris was getting? It never occurred on my server, but an error of this magnitude should be noticeable to me long before the script was completed. Weird.

Abronsyth 11-24-2012 08:39 AM

Okay, edited as you said to, and got this error:
Fatal error: Call to undefined method DateTime::getTimestamp() in /home/u526740665/public_html/classes/class_visitor.php on line 15

And here's my class_visitor.php:
PHP Code:

<?php

class Visitor extends User{
  public 
$isloggedin;
  public 
$error;
  
  public function 
__construct($uid){
      
// Fetch the basic member properties for users
      
      
$this->uid 0;
      
$this->ip $_SERVER['REMOTE_ADDR'];
      
$this->usergroup Usergroup::fetchgroup('Visitor');
      
      
$time = new DateTime();
      
$this->lastactivity $time->getTimestamp();
      
$this->isloggedin UserCreator::logincheck();      
  }
  
  public function 
__call($method$param){
      
// This magic method triggers when visitors attempt to visit pages inaccessible to guests
      
      
$this->error "The functionality is unavailable for guests, please log in or register.";
      return 
FALSE;
  }
  
  public function 
__get($param){
      
// This magic method triggers when visitors attempt to visit pages inaccessible to guests
      
      
$param 0;
      return 
$param;
  }
  
  public function 
register(){
      
// Will be added in future
      
global $mysidia;
      
$date = new DateTime;
      
$salt codegen(15);
      
$password passencr($mysidia->input->post("username"), $mysidia->input->post("pass1"), $salt);
      
// Insert the very first row of data for user registration
      
$mysidia->db->insert("users", array("uid" => NULL"username" => $mysidia->input->post("username"), "salt" => $salt"password" => $password"session" => NULL"email" => $mysidia->input->post("email"), "ip" => $_SERVER['REMOTE_ADDR'], 
                                     
"usergroup" => 3"birthday" => $mysidia->input->post("birthday"), "membersince" => $date->format('Y-m-d'), "money" => $mysidia->settings->startmoney"friends" => NULL));
      
$uid $mysidia->db->select("users", array("uid"), "username = '{$mysidia->input->post("username")}'")->fetchColumn();
      
      
// Now update the session
      
$myssession md5($uid.$mysidia->session->getid());
      
$mysidia->db->update("users", array("session" => $myssession), "uid = '{$uid}'");    

      
// Insert user data to the other tables
      
$mysidia->db->insert("users_contacts", array("uid" => $uid"username" => $mysidia->input->post("username"), "website" => NULL"facebook" => NULL"twitter" => NULL
                                               
"aim" => NULL"yahoo" => NULL"msn" => NULL"skype" => NULL));
    
      
$mysidia->db->insert("users_options", array("uid" => $uid"username" => $mysidia->input->post("username"), "newmessagenotify" => 1"pmstatus" => 0
                                              
"vmstatus" => 0"tradestatus" => 0"theme" => $mysidia->settings->theme));

      
$mysidia->db->insert("users_profile", array("uid" => $uid"username" => $mysidia->input->post("username"), "avatar" => $mysidia->input->post("avatar"), "bio" => $mysidia->input->post("bio"), "color" => $mysidia->input->post("color"), 
                                              
"about" => NULL"favpet" => 0"gender" => $mysidia->input->post("gender"), "nickname" => $mysidia->input->post("nickname")));                                              
    
      
$mysidia->db->insert("users_status", array("uid" => $uid"username" => $mysidia->input->post("username"), "canlevel" => 'yes'"canvm" => 'yes'"canfriend" => 'yes'
                                             
"cantrade" => 'yes'"canbreed" => 'yes'"canpound" => 'yes'"canshop" => 'yes'));
    
      
$mysidia->page->settitle($mysidia->lang->success_title);
      
$mysidia->page->addcontent($mysidia->lang->success.$mysidia->input->post("username").$mysidia->lang->success2);      
  }
  
  public function 
login($username){
      global 
$mysidia;
      if(
$this->ip != $mysidia->session->clientip) throw new Exception('Your IP has changed since last session, please log in again.');
      else{         
         
$mysidia->cookies->setcookies($username);
         
$mysidia->db->update("users", array("session" => $mysidia->cookies->getcookies("myssession")), "username = '{$username}'");         
         include(
"inc/config_forums.php");
         if(
$mybbenabled == 1){
            include_once(
"functions/functions_forums.php");   
            
mybblogin();
         }
         return 
TRUE;
      }     
  }
  
  public function 
getloginform(){
      
$loginform "<form name='form1' method='post' action='login.php'>
                    <p>Username: <input name='username' type='text' id='username'></p>
                    <p>Password: <input name='password' type='password' id='password'></p>
                    <p><input type='submit' name='Submit' value='Submit'></p>
                    <p>Don't have an account?<br>
                    <a href='register.php'>Register Free</a>  </p>
                    <a href='forgotpass.php'>Forgot your password?  Click Here</a>
                    </form>"
;
      return 
$loginform;    
  }
  
  public function 
logout(){
      global 
$mysidia;
      
$mysidia->page->settitle("Already logged out");
      
$mysidia->page->addcontent("It appears that you are already logged out from this site..."TRUE);
      return 
FALSE;
  }
  
  public function 
resetpass($username$email){
      global 
$mysidia;
      
$newpw codegen(12);
      
$newsalt codegen(15,0);
      
$newpass passencr($username$newpw$newsalt);

      
//Update the database with the new password...
      
$mysidia->db->update("users", array("password" => $newpass"salt" => $newsalt), "username='{$username}' and email='{$email}'");

      
//Delete the entry from the password reset table
      
$mysidia->db->delete("passwordresets""code='{$mysidia->input->post("code")}'");
      return 
$newpw;      
  }
}
?>


Hall of Famer 11-24-2012 09:26 AM

Well are you running PHP 5.2? This looks like a problem that should not have existed in the first place, your PHP version does not support advanced DateTime Object manipulation. Or it may have been misconfigured?

I can look up the files and use alternative approaches for you at this point so that you can bypass the DateTime functions missing error. But keep in mind that DateTime is a common class in PHP 5.3.x development, if you are indeed running PHP 5.2.x then its probably time to upgrade or switch host. I try to compromise for those using PHP 5.2.x for Mys v1.3.x releases, but in Mys v1.4.0 and onwards supports for older versions of PHP will be dropped.

schepers12 11-24-2012 09:36 AM

i currently am a little too lazy to test it out, so don't expect me upgrading my site soon or reporting bugs..~ ^^;

Abronsyth 11-24-2012 10:05 AM

I'll try to find out what version of PHP 99webs.info is using...since that's the host I am using for it.

Do you know, off the top of your head, what version 000webhost.com is using? They just say PHP 5, nothing more specific.

EDIT: 000webhost is running 5.2 as well. Do you know of any hosts that are running 5.3..? I'll try to find a free host that does support it...hm...

EDIT 2: Nevermind, I finally found a host that allows more than one database and also is running PHP 5.3.1, I guess I'll just be moving my site over to this host.

Hall of Famer 11-24-2012 04:01 PM

Well many shared hosts such as hostgator and bluehost actually provide PHP 5.3 as alternative, you have to add an additional config file to PHP's directory. For 000webhost and x10hosting probably not, these are freehosts, not shared host.

Abronsyth 11-27-2012 04:45 PM

Well, I've contacted 99webs.info about it, and they (Nemesis, I presume) said they'll look into getting it updated...hope so because the host I found does not allow Java, of all the things.

Hall of Famer 11-27-2012 05:24 PM

I see, best of luck on that Iris. If the worst came to worst and this problem remains unresolved by the time I finish my last final exam, I will try to re-design the script so that it has backward compatibility with PHP 5.2.

Hall of Famer 11-30-2012 05:07 AM

Update: The error Iris was getting early on turns out to be a PHP bug, not with this script. It affects PHP version 5.2 and early versions of 5.3, you need PHP 5.3.9 or newer to be able to use it properly. But if you do happen to use older version, do not worry, look at the first page and I've offered a solution to get through this error.
https://bugs.php.net/bug.php?id=43200

Kesstryl 12-05-2012 03:02 PM

WOOT!!! I've been quiet and have done nothing for my site as I'm now currently returned to college and classes are taking ALL my time, that and running a guild in Everquest 2, but my dream to run my own pet site someday will happen. Thank you for your hard work and for making a script for us non/ankle deep programmers. I will upload this when I get a chance and play around with it. I probably won't do any serious work in my site until a much later version that is fully OOP as each change lately is so massive it generally requires a full installation.

Will there eventually be a premium version of this project that will require a purchase? I would definitely consider buying a premium version when this is in it's final form.

Hall of Famer 12-05-2012 03:16 PM

Thanks for your comment Kesstryl. The script is likely to be mostly object oriented by version 1.4.0, I have no idea when it will be released though. The entire lifecycle of Mys v1.3.x will pave way for this transition, eventually an ORM-MVC framework will be constructed successfully for this product. It may take version v1.5.0 to make a fully object oriented truly professional script.

I am not sure for a premium version of this script, for the entire Mys v1.3.x and v1.4.x series it will remain as free product. If someday I feel like it, I may end up running hosting services for Mysidia Adoptables in which you can build a free default site with some features only available through purchasing. It will be like a much more upgraded version of MA, although you pretty much dont see much difference between Mysidia Adoptables and MyAdopts already. Not sure if this will happen though, but I dont rule out such a possibility.

Abronsyth 12-05-2012 07:43 PM

As an update to my problem:

The other host I found isn't go to work out...nor is another I found. Both refused to return any questions I had, and just didn't work out at all. Luckilly, however, I have been assured that 99webs.info will be updating to a newer version of PHP :) Hopefully I can actually get my site up and running soon...switched from Pine Martens to Hamsters, since hamsters are pure love (though I hate those ugly little tails...they're still pretty cute).

Until then I'll just work on art...finally figured out how to shade realistically!

GuardiansWish 12-06-2012 01:15 PM

Okie dokie. Everything so far is going pretty well but I have a question about forum integration. Our forum and adopts have been separate (not integrated) for months now. The integration seems easy enough but I'm worried for my members. What will happen to the accounts that are preexisting or that only have an account on one half of the site?

Hall of Famer 12-06-2012 04:43 PM

These old accounts will not be integrated most likely, but there is a chance they will assuming the user Ids from adoptables and forum database match rach other. It won't hurt to try, in future I will create a user synchronization script that does the trick to you.

Abronsyth 12-08-2012 05:54 PM

Hey, got impatient and found a host that is using 5.3.18 :D So, I uploaded everything and, whoo, it's working perfectly! I'll let you know if I encounter any problems :)

OH!One thing, it's not redirecting me after I log into the Admin CP, but I can fix this simply by refreshing the page. So, it's not a big problem, but it might throw some people off :)

Hall of Famer 12-08-2012 05:57 PM

Well glad you figured this out Iris, and yeah its better to stick to a host with PHP 5.3. In Mys v1.4.0 support for PHP 5.2 will be dropped completely, so people have to make this transition sooner or later.

umm it wont redirect you? Weird, it does redirect me properly on my demo site. If you find any serious glitch please do report to me, I will make sure to fix them all in Mys v1.3.3.

LucasA33 12-08-2012 11:46 PM

Update made all my adoptables free, and I can't even log in with out being logged out.
#fml

Hall of Famer 12-09-2012 12:13 AM

Quote:

Originally Posted by LucasA33 (Post 25198)
Update made all my adoptables free, and I can't even log in with out being logged out.
#fml

Well how did you upgrade your site? Were you using Mys v1.3.1 before? If so, running the upgrader script should do you just good. Keep in mind that you cannot upgrade if you have a highly customized site.

LucasA33 12-09-2012 12:16 AM

Yea, decided I'd go for clean install, just run it under the same database as the previous, now I get Cannot alter table prefix.adoptables

Hall of Famer 12-09-2012 12:34 AM

What do you mean by clean install? The database structure is different from Mys v1.3.1 to Mys v1.3.2, if you install Mys v1.3.2 fresh there's no need to run upgrader. The upgrader simply alters database table for ya.

LucasA33 12-09-2012 12:39 AM

The only issue I am having right now is that it automatically logs me off, even in the clean install.

The issue with the free adoptables is the fact that they have to be in shops to not be free. Now thats okay. I found the issue, you should note that in the upgrader area to prevent confusion..

Its even more annoying that it logs me out every 5 clicks..
Last time, it only happend sometimes..

Try it yourself.. game.pixelcore.tk/login.php
Using the game.pixelcore.tk redirects you to a temp page for my default users.

Hall of Famer 12-09-2012 12:43 AM

Well Mys v1.3.2 is designed in a way that all adoptables are free unless they are in adoptables shops, this is the way it is. Not sure why it keeps logging you out though, do you notice any changes in the url by the time you are logged out? I mean, something like the http:// part becomes missing or appears out of nowhere?

LucasA33 12-09-2012 12:47 AM

I have no idea what you are saying. I can make you a temporary admin just to let you see what I am saying.. I'm going to enable the old index sense there no way to get them yet.

http://game.pixelcore.tk

Also, how do I make it so my previous adoptables can be in a shop.

Levelup also gives a nasty error D:

Warning: mt_rand() [function.mt-rand]: max(0) is smaller than min(10) in /home/mineedit/public_html/game/classes/class_member.php on line 111

Fatal error: Uncaught exception 'Exception' with message 'Cannot change user money by a non-numeric value!' in /home/mineedit/public_html/game/classes/class_member.php:95 Stack trace: #0 /home/mineedit/public_html/game/levelup.php(75): Member->changecash(false) #1 {main} thrown in /home/mineedit/public_html/game/classes/class_member.php on line 95

PS. I fixed the previous issue, just now need help with the logging out, and why I cannot level up these adoptables.

Hall of Famer 12-09-2012 01:25 AM

Well it seems to me that you have specified the money reward incorrectly. What does that look in your database? It needs to be in the format like 10, 20 or something like that. The second parameter needs to be bigger than the first.

LucasA33 12-09-2012 01:31 AM

Will check. It also seems my theme (even after reverting it from a backup theme) randomly broke down aswell.

(issue after issue D:)

OK, after trialing and erroring, I guess it was missing WWW...
Thats understandable.

I'm used to not even having WWW..

Something i'd note out aswell on the main post.

Hall of Famer 12-09-2012 01:39 AM

Oh so you found it out? Thats nice. My demo site always runs with 'http://www.', so I'd never be able to debug the script's possible malfunctioning without it. XD

LucasA33 12-09-2012 01:46 AM

Yes, so if anyone across random log outs, and shiz; thats your answer apparently.
I would note that somewhere in the main post to save so much frustration.
(trust me, :P)

ps. where can I edit the sidebar (change theme, admin center ect,,

Hall of Famer 12-09-2012 02:03 AM

I think you can edit the sidebar from the script file /classes/class_page.php. It is where sidebar is defined.

LucasA33 12-09-2012 02:11 AM

Found it, but for some reason, my theme isn't working correctly anymore.

SilverDragonTears 12-11-2012 06:09 AM

*sigh* This really sucks for people who have modified the script :(

Hall of Famer 12-11-2012 07:04 AM

Well yeah, there are pros and cons for modifying your script lol. But if you want to add certain features to your site, you may as well look into the source code and see what you can do to implement a newly added feature to the old script. Its doable, just wont be too easy.

pachoofoosh 12-11-2012 02:47 PM

This script is really awesome, I love all the different features it has! :3 I tried installing the script, and all went well, until I tried to access the site, and I got this message. I entered all the information correctly, and my host is using PHP 5.3, so i'm not quite sure why it's showing this message. ^^;

Quote:

Could not connect to database, the following error has occurred:
could not find driver

Hall of Famer 12-11-2012 02:54 PM

Your host appears to have not installed mysql driver for PDO, its weird. Please contact them to see if they can get mysql driver for you, if not I will figure out a solution for you to get by using a different driver.

*sigh* Perhaps its time for this script to go multi-database drivers, instead of having mysql-only.

SilverDragonTears 12-11-2012 08:46 PM

I need help. I added all the tables needed and am now trying to figure out what files need adding or editing. I'm getting this when I access the shop.

Fatal error: Can't inherit abstract function Creator::create() (previously declared abstract in UserCreator) in /home/taleofdr/public_html/classes/abstract/abstract_usercreator.php on line 3


All times are GMT -5. The time now is 12:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.