Language driven templates
Re: Language driven templates
Hi Tata,
there are two config options regarding the template. In config.php there is $cf['site']['template']. This is the default template for the complete CMSimple installation. In SUBSITEconfig.php there is $txc['subsite']['template']. If set this will override the default template in $cf['site']['template']. This works fine on my installation, and the configuration is totally independent.
Do you have something like $txc['site']['template'] in your SUBSITEconfig.php?
Christoph
there are two config options regarding the template. In config.php there is $cf['site']['template']. This is the default template for the complete CMSimple installation. In SUBSITEconfig.php there is $txc['subsite']['template']. If set this will override the default template in $cf['site']['template']. This works fine on my installation, and the configuration is totally independent.
Do you have something like $txc['site']['template'] in your SUBSITEconfig.php?
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Language driven templates
Hi Tata,
I guess you have TemplatSwitch_XH active.
Gert
PS: Try TemplateSwitch_XH 1.4, released today: http://www.ge-webdesign.de/cmsimpleplug ... eswitch_XH
But if you have choosen a template by TemplateSwitch_XH, this template will be active in all second languages and subsites, and you have to delete the session-cookie in your browser.
I guess you have TemplatSwitch_XH active.
I guess you have AN OLD TemplateSwitch_XH active,Tata wrote:After changing the subsite template in mysubsiteconfig.php also the default template is overwritten in config.php.
Gert
PS: Try TemplateSwitch_XH 1.4, released today: http://www.ge-webdesign.de/cmsimpleplug ... eswitch_XH
But if you have choosen a template by TemplateSwitch_XH, this template will be active in all second languages and subsites, and you have to delete the session-cookie in your browser.
Re: Language driven templates
No, templateswitch is not installed.
Installed are the latest:
advancedform, calendar, comments, fotogalerie, hi_fancybox, hi_kcfinder, hi_pd_scripting,
imagescroller, memberpages, realblog, uploader and wdir.
Tried again:
1. 2site copied/renamed to mysubsite and there cmsimplesubsite.htm renamed to mysubsite.htm
2. sk.php and skconfig.php copied/renamed to mysubsite.php and mysubsiteconfig.php - in mysubsiteconfig.php also inserted
added new template [mysubsite]
Made no change. The default template is loaded with /mysite and mysite/mysubsite.
Installed are the latest:
advancedform, calendar, comments, fotogalerie, hi_fancybox, hi_kcfinder, hi_pd_scripting,
imagescroller, memberpages, realblog, uploader and wdir.
Tried again:
1. 2site copied/renamed to mysubsite and there cmsimplesubsite.htm renamed to mysubsite.htm
2. sk.php and skconfig.php copied/renamed to mysubsite.php and mysubsiteconfig.php - in mysubsiteconfig.php also inserted
Code: Select all
$txc['subsite']['template']="mysubsite";
$txc['subsite']['password']="test2";
added new template [mysubsite]
Made no change. The default template is loaded with /mysite and mysite/mysubsite.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Language driven templates
That's wrongTata wrote:and there cmsimplesubsite.htm renamed to mysubsite.htm
cmsimplesubsite.htm must remain cmsimplesubsite.htm,
Gert
Re: Language driven templates
Then calling mysite/mysubsite I get Access denied
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Language driven templates
Hallo Tata,
have you installed hi_shutter_reloaded? For me that caused the same problem. Maybe other plugins from Holger causes this problem by this line in admin.php:
... or so, you should search for "strlen($sl)" and delete in this case "(strlen($sl) !== 2) || " from this line.
Please check all plugins from Holger for that code,
Gert
have you installed hi_shutter_reloaded? For me that caused the same problem. Maybe other plugins from Holger causes this problem by this line in admin.php:
Code: Select all
if ((!function_exists('sv')) || (strlen($sl) !== 2) || preg_match('/adm.php/i', sv('PHP_SELF')))die('Access denied');
Please check all plugins from Holger for that code,
Gert
Re: Language driven templates
Seems to be the reason. Removing it only from hi_fancybox did not help. But then I found the same in memberpages plugin and removin it from there made it working.
Thank you for the hint.
Thank you for the hint.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Language driven templates
I didn't know, that Holger had his hands on memberpages some years ago:Tata wrote:But then I found the same in memberpages plugin ...
Code: Select all
if ((!function_exists('sv')) || (strlen($sl) !== 2) || eregi('admin.php', sv('PHP_SELF')))die('Access denied'); //HI prevent direct access
Gert
Re: Language driven templates
I'll do it, however no more warnings occured. Only now I see, that all plugins communicate since then only in EN. A little confusing in some cases.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Language driven templates
Hi Tata,
Christoph
To be exact: the plugins communicate in mysubsite-ish , as the mysubsite.php files in the plugin's language folders are a copy of default.php. To change that, you can copy sk.php to mysubsite.php for every plugin.Tata wrote:that all plugins communicate since then only in EN.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH