CMSMS 2.0: Accessing the admin theme

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
pschoenb
Forum Members
Forum Members
Posts: 92
Joined: Sun Jul 15, 2007 1:18 pm

CMSMS 2.0: Accessing the admin theme

Post by pschoenb »

Hello,

I have a multilanguage site based on Babel. However, Babel's admin interface no longer works, because the code

Code: Select all

$admintheme = $gCms->variables["admintheme"];
returns null.

Has this variable been removed? If so, what is the new way of accessing the admin theme?
Regards,
Patrick
otopanne
Forum Members
Forum Members
Posts: 20
Joined: Tue Sep 15, 2015 4:43 pm

Re: CMSMS 2.0: Accessing the admin theme

Post by otopanne »

How are you still using that module?
I have used it in the past, but it has not been updated for a couple of years now.
I warn you, solving this problem will lead to some other problem! You are better off finding a new multi-lang solution (like this one made by Rolf)

The problem you are now experiencing was 'caused' by some changes in the CMSMS core somewhere during the 1.9 to 1.10 or 1.10 to 1.11 upgrade. More modules were effected by this little change.
The solution to your question is actually quite simple and is explained in this topic

[removed by moderator]

Not sure, but from memory I believe that right after you solve this trivial problem, babel throws a new one at you. I might be able to find reference to the way I solved that error back then.

But really, I must warn you: babel is not supported anymore and more things have been broken during upgrades of the core of CMSMS.
Last edited by velden on Sat Sep 19, 2015 8:36 pm, edited 1 time in total.
Reason: Note that we do not allow posting of 'mods'
otopanne
Forum Members
Forum Members
Posts: 20
Joined: Tue Sep 15, 2015 4:43 pm

Re: CMSMS 2.0: Accessing the admin theme

Post by otopanne »

@velden:

How is this a 'mod'?
I have read and understood the rules stated in http://forum.cmsmadesimple.org/viewtopi ... 40&t=28132

This is not a mod. Not a hack.
This is the official 'fix' posted and explained by Calguy, to solve a problem with a module that is not being maintained by its creator anymore.

@pschoenb
In the topic linked to above, you'll find that the $gCms->variables['admintheme'] has changed to something else. If you want babel to work, you could file a bug report and ask the creator to update the module.
Otherwise, if you're capable there is enough information in this topic to do it yourself.
Post Reply

Return to “The Lounge”