Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   A bunch of small questions (http://www.mysidiaadoptables.com/forum/showthread.php?t=5522)

Dinocanid 11-03-2017 04:50 PM

Sure xD
Here are a few screenshots I just took:
http://www.clipular.com/c/5375023132...bp-9E-JbGv8htohttp://www.clipular.com/c/5326005475...BqBvn4NEgWpPM0http://www.clipular.com/c/4814262538...D_g7pIB7bbVlLYhttp://www.clipular.com/c/6396837056...1Vz42wWiVeefhM
http://www.clipular.com/c/5512090222...VhbIWksaNf6Gz0
(this last one is actually an older screenshot I took)

I'm still working on developing new markings since I only have about 20 or so at the moment, which causes a lot of wolves to look the same/similar.

gwynmil 11-03-2017 05:04 PM

Ooooh! Very inspiring, yes. :D Though I see what you mean. Looks like 1, 2 and 5 have the same marking.
If you have a public development thread, blog or anything then I'd be interested to follow and see how it goes.

Well, it's late now. Will try wrangling with the image script tomorrow.

Dinocanid 11-03-2017 05:07 PM

I have a dev thread for it here: link
I post the most frequent updates on TGL though: link

gwynmil 11-04-2017 02:56 PM

Will check them out!

But firstly, uh... I seem to have destroyed everything?? Following Kyttias' notes on editing the indexview page, I logged out to see if Guest would appear instead of username, and suddenly every page is blank. >_<

Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/griffusi/public_html/view/indexview.php on line 3

If the "public" is removed,

Fatal error: Class 'IndexView' not found in /home/griffusi/public_html/classes/class_controller.php on line 135

(I'm an idiot, ignore the above)

I saved the default code, and pasted it back in, but it now gives this instead:

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'template.tpl'' in /home/griffusi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/griffusi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch('template.tpl', NULL, NULL, NULL, true) #1 /home/griffusi/public_html/classes/class_template.php(135): Smarty_Internal_TemplateBase->display('template.tpl') #2 /home/griffusi/public_html/classes/class_view.php(280): Template->output() #3 /home/griffusi/public_html/classes/class_frontcontroller.php(102): View->render() #4 /home/griffusi/public_html/index.php(74): FrontController->render() #5 /home/griffusi/public_html/index.php(78): IndexController::main() #6 {main} thrown in /home/griffusi/public_html/inc/smarty/sysplugins/smarty_internal_templatebase.php on line 127

Seems there's nothing I can do. Ahhh. (flailing helplessly)

edit: line 127.
throw new SmartyException("Unable to load template {$_template->source->type} '{$_template->source->name}'{$parent_resource}");

No idea what to make of that. I had used the Mysidia admincp editor to add a few lines of text earlier, before deciding to try this instead. Has it caused a conflict by "overwriting" the old stuff, or something?

Hall of Famer 11-04-2017 03:28 PM

Looks like some kind of syntax error, can you show the code in the entire file? Either post it here or show it in pastebin.

gwynmil 11-04-2017 03:36 PM

Sure, this was the modified indexview.php

PHP Code:

class IndexView extends View{

    public function 
index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;        
        
$document->setTitle(" Your Title Here ");
        
        
$name = (!$mysidia->user->isloggedin)?"Guest":$mysidia->user->username;
        
$document->add(new Comment(" Welcome, {$name}! <br>"FALSE));

        
$document->add(new Comment("<h2>In development</h2><br><br>This will be a griffin breeding game. Emphasis on <b>will be</b>... we still have a very long way to go.<br>
            <div style='width:600px;height;200px;padding:20px;background-color:white;text-align:center;margin-top:30px;'>
                Here is a div. Later to feature some griffins.</div>"
));
    
    } 


And back to the default:

PHP Code:

class IndexView extends View{
    
    public function 
index(){
        
$frame Registry::get("frame");
        
$frame->getDocument("index");
    }


The other files (classes, smarty) have not been touched at all since the Mysidia installation.

(edit: ignore the syntax error earlier, that was from when I was an absolute idiot and forgot to include the first class IndexView extends View{ part. Good lord. Still got the template error, no matter what.)

---

Edit again: looked through all the errors, it's always about template.tpl. My two themes are totally unchanged though...

Just realised this was the first time I'd logged out, for several days. I changed the Green theme to act as the new site layout, and deleted the Main and Elements ones. Can't remember if something was done, to set it to the new default... but someone did say it was safe to delete the other two.

Could this be the real issue? If so, how do I reinstate the Main theme for guests not-logged-in? The files are still here in cpanel.

(Hmm, I will email my co-designer, ask if she's still logged in and can view pages normally. If yes, hopefully she can upload the theme again using the admincp.)

Yet another edit: added the two themes back in the DB table, with id 1 and 2. adopts_settings still says Green is the default; it can't be changed in this table. Will keep looking... pretty much any change should be possible via cpanel, right?


Final edit: nope, can't find any way. Not hearing anything back from co-designer either. Maybe tomorrow...
If it's relevant, the admincp pages still look fine, I just can't log in anywhere. Wonder if it would be possible to set up a temporary login form/page under that area?

Who knew that editing the index page and/or logging out could cause so much trouble? x) Wish I hadn't done that. I'd been hoping to spend all evening working on a bunch of features.

gwynmil 11-05-2017 07:37 AM

OK, crisis averted! Co-designer was still logged in and could view things as normal. She added a fresh Main theme back in and the template error is gone.

Only problem is that the login page is restricted to members only (lol, how did that happen?) but that shouldn't be hard to fix.

Dinocanid, your game-in-progress looks good! Nice layout, and the interactive explore thingy is especially cool.

Maybe we could start a development thread for our game too. Not sure how early is too early, but we do have loads of scribbly griffin concept art to post, I guess.


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

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