Page 1 of 2

MleCMS get_variable()

Posted: Thu Feb 04, 2016 11:18 am
by grazia
hello,
I installed MleCMS with all its dependencies, but when I try to see the page with MLE configuration this is the answer:

Call to undefined method CmsApp::get_variable() in (mysite)/modules/MleCMS/function.admin_mle_config.php on line 35

the row 35 is:
global $themeObject;


Please can you help me?

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 2:32 pm
by Jeff
Are you trying to install a non-2.x compatible module into 2.x?

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 2:45 pm
by grazia
:o I realized only now that Multilanguage CMS is not compatible with 2.x...!
(thank you for notice)

Is there another module for multilanguage in made simple that I can install?

Client ask for upgrade to 2.1 but it's a multilanguage site.

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 2:50 pm
by Jo Morg
AFAIK there are new members on the MleCMS development team. You may be interested in contacting them and maybe sponsor the upgrade of the module to work in CMSMS 2.x.
You don't have nothing to lose.

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 7:13 pm
by grazia
Yeah it's a good idea. I'll do it ^-^

Thanks for all informations.

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 8:42 pm
by Jeff
Rolf's site has a bunch of tips for doing ML sites:
http://www.cmscanbesimple.org/blog/mult ... ade-simple

Re: MleCMS get_variable()

Posted: Thu Feb 04, 2016 11:04 pm
by grazia
I'll try to use the script. It isn't easy.

But I think a good CMS to last should have a well-functioning multi-language module. Is it possible to ask to Made Simple development team to update MLE? I can't sponsor with money, I only can suggest it as an important complement of Made Simple.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 6:19 pm
by samplist
I too miss the mle module functionality in V2. If there is a movement to sponsor with money the DEV team I would gladly do so.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 6:34 pm
by Jo Morg
There are currently 2 modules under development:
  • - MleCMS: some new developers seem to have joined the project as I said before;
  • - Eridu: My own project, a fork of old Babel;
I don't know about MleCMS, but Eridu can be checked out from SVN to be tested by those curious about it's development (mind you: for testing purposes only atm). It will be seeing rapid changes in the next days though.
Either project has it's strengths and weaknesses, and sponsors are always welcome for both (or for any Open Source project for that matter)...

There are currently no plans to implement MLE on the core, other than to facilitate 3rd party modules to offer that feature as it already does.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 9:03 pm
by samplist
Ok so here's what I did to make the mlecms module work with CMSMS version 2.12.

Downloaded the mlecms module from here: http://viewsvn.cmsmadesimple.org/dl.php ... F&isdir=1&

I installed it by creating a directory named MleCMS inside the modules directory and then copying the extracted files from the trunk.r121 folder of the archive to the Modules MleCMS directory.

Then to make it work I had to make these changes to the following files (basicly replacing $smarty->assign with $smarty->assignGlobal):

MleCMS/lib/class.mle_tools.php
Replace lines from 112 to 116 with:

Code: Select all

[removed by moderator]
MleCMS/action.langs.php
lines 74 to 76

Code: Select all

[removed by moderator]
I haven't made any extensive test but this seems to work fine with:

Code: Select all

{MleCMS action="langs"}
{MleCMS name="snippet..."}
{MleCMS name="block..."}
{$lang_parent}
{$lang_locale}

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 9:08 pm
by Jo Morg
Please read forum rules before posting!!!!
Thank you.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 9:14 pm
by samplist
I'm very sorry didn't want to break the rules, honestly :-[ .
I just thought I'd offer some help, since this is a module I also use for my multilang sites.
So what would be the correct way for this to be implemented?

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 9:21 pm
by Jo Morg
samplist wrote:So what would be the correct way for this to be implemented?
File a bug report on the Forge on the respective project. Give as much detail as possible (just as you did here) adding what the nature of the error was and what your suggestion is meant to fix. That helps the developers; if the fixes are correct chances are they'll be accepted and implemented.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 10:08 pm
by samplist
I filed a bug in Forge, let's hope it gets fixed.

Re: MleCMS get_variable()

Posted: Sat Feb 06, 2016 10:46 pm
by Jo Morg
Thank you.
I'm confident it will be.