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
  #8  
Old 01-25-2018, 07:52 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 93,649
Dinocanid is on a distinguished road
Default

Quote:
Originally Posted by AriaAmberkinz View Post
Could you post a more detailed version of what you did, Dinocanid? I seem to be having the same issue.
On a fresh install, there's this code under "public function initialize" in class_language.php:
PHP Code:
public function initialize(){
        
$globallangfile "{$this->dir}lang/lang_global.php";
        require 
$globallangfile;
        
$this->global = new ArrayObject($langArrayObject::ARRAY_AS_PROPS);
    } 
I changed it so I defined the path myself, like this:
PHP Code:
public function initialize(){
    
$this->root "/home/foodbabs/public_html/";
        
$globallangfile "{$this->root}lang/lang_global.php";
        require 
$globallangfile;
        
$this->global = new ArrayObject($langArrayObject::ARRAY_AS_PROPS);
    } 
In class_mysidia.php, I replaced "public function getTemplate()" with this:
PHP Code:
public function getTemplate(){
    
$this->root "/home/foodbabs/public_html/";
        
$templateClass "{$this->root}inc/smarty/Smarty.class.php";
        require 
$templateClass;
        
        
$this->template = new Template($this->path);
        
Registry::set(new String("template"), $this->templateTRUETRUE);
        return 
$this->template;
    } 
So I added my own path based on the home directory, that way it doesn't forget where things are for some reason.
__________________
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


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

Currently Active Users: 3522 (0 members and 3522 guests)
Threads: 4,081, Posts: 32,032, 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