Cmsadesimple multilingual with installer

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
swgreed

Re: Cmsadesimple multilingual with installer

Post by swgreed »

No, it still works, however I checked the site now with different browsers.
It seems this problem is IE7 specific.

IE6 and Firefox display the site with the 'DEFAULT_LANG' setting correctly, regardless whether pretty_urls or mod_rewrite are enabled or not.

IE7 only displays the correct page if pretty_urls are enabled.  ???


One more thing:
If "assume_mod_rewrite" is enabled, the links behind the flags are wrong. Instead of
"domain.com/de/home" they are converted to "domain.com/de/home.html". The link won't work with the html extension and mod_rewrite enabled.
ChrisInBangkok

Re: Cmsadesimple multilingual with installer

Post by ChrisInBangkok »

Hi Everyone,

I'm having a problem installing MLE:
I'm trying to do a clean installation, i.e. in a new folder in my htdocs localhost. I copied everything as with the normal cmsmadesimple installation and when I run the installer nothing happens, except I get the following PHP parse error:

PHP Parse error:  syntax error, unexpected $end in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\cmsmle\\install\\install.php on line 1370

The original cmsmadesimple installed without any problems. Am I doing something wrong here?

Thanks in advance,
Chris
ChrisInBangkok

Re: Cmsadesimple multilingual with installer

Post by ChrisInBangkok »

I figured it out! You have to have

Code: Select all

short_open_tag = On
in the php.ini file. Seems that there's some short tags in the code...

Cheers,
Chris
thlaine

Re: Cmsadesimple multilingual with installer

Post by thlaine »

Hello everybody.
I'm just telling my experiences with setting up CMS Made Simple Multilingual version in case someone else faces the same problem. Actually, installation itself was smooth. Setting the correct write permissions for the directories/files is important, so make sure you do them properly before running the installation script. The installation script was able to modify the database tables accordingly and config_lang.php was modified as well. However, only default language option was added to the config_lang.php.

After installation was finished, I faced the 404 error on the main page of the CMS. I was able to access the admin area though, but I noticed that I was not able to add/modify pages. From the installation FAQ (http://dev.cmsmadesimple.org/docman/vie ... 53/faq.txt) I read that the problem could occur if the database tables were not modified properly by the installation script. I checked the tables, but they seemed to be alright. I finally opened up the source files and started to trace the source of the 404 error. As a result, I discovered that the $hls was not set at all. Later I learnt that the $hls is supposed to be set in config_lang.php, but it was not added there by the installer. Therefore I had to add it manually, resulting to following contents of the config_lang.php:

Code: Select all

$hls = array(
   'en' => 'En',
   'fi' => 'Fi',
);
define('DEFAULT_LANG', 'en');
You may have something else there instead of Finnish language. I hope this information helps someone :)

I have attached a flag of Finland as it was not present in the install bundle by default.

Teemu

[gelöscht durch Administrator]
jeme
Forum Members
Forum Members
Posts: 13
Joined: Thu Oct 26, 2006 11:41 am

Re: Cmsadesimple multilingual with installer

Post by jeme »

How do I do if I want more content blocks?

Right now I have two but this block shows the same in both languages.

/Jenny
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

Re: Cmsadesimple multilingual with installer

Post by KC »

This mle is just what I needed. Great!

I have a question.

The pages are all the same for 1 thing. The header or logo differs.
Is there a tag or so to define the right headerimmage in the css-sheet.

eg. header_en.jpg or header_de.jpg

Kind regard,
Kees
newclear

Re: Cmsadesimple multilingual with installer

Post by newclear »

you can do this yourself. just create one user defined tag and make it display different stylesheet for the specified div.

a little example

html



plugin named {style_this_div}

global $hl;
switch $hl{
case 'en':
echo "background: #fff url('header_en.gif');";
break;
case 'de':
echo "background: #fff url('header_de.gif');";
break;
}
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

Re: Cmsadesimple multilingual with installer

Post by KC »

Thanks!

Got it to work...

only switch $hl{ offcourse has to be switch ($hl){  ;)

You not only helped me to solve the problem, but I did not know about the user defined tags also.

Kind regards,
Kees
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

Re: Cmsadesimple multilingual with installer

Post by KC »

When one of the menupages is not filled (eg local route info is not interesting for residents in other countries) I want to leave the page, menutext and pagetitle blank.

When I do that, the menu-item appears with no content.

Can I alter the menutemplate that this menuoption is not shown for the language I leave the specific menuoption blank?

The menutemplate I use is:

Code: Select all

{* CSS classes used in this template:
.active - The active page in the horizontal menu (first level). 
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *} 
{if $count > 0}
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}

{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true or $node->parent == true}
<li id="current"><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"><hr class="separator" />
{else}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}><span>{$node->menutext}</span></a>{/if}
{/foreach}

{repeat string="</li></ul>" times=$node->depth-2}</li>
</ul>
{/if}
Help would again be greatly appreciated!

Regards,
Kees

Although the site needs more tweaking, it begins to get the look and feel I want: http://geest-nurseries.flowerxs.nl/

Solved (getting more and more familiair with cmsms  ;D ): added an if $node->menutext!= "leeg" statment to the menu-template (leeg == empty in Dutch) and named the empty pages "leeg"
Last edited by KC on Wed Feb 07, 2007 10:37 pm, edited 1 time in total.
rhys
Forum Members
Forum Members
Posts: 40
Joined: Thu Nov 24, 2005 4:16 pm

Re: Cmsadesimple multilingual with installer

Post by rhys »

Hello

I've succesfully installed CMS 1.02MLE, but when I click to 'view site' I get nothing. Navigating to the pages menu I see two flags, but when I try to add content, despite getting no errors my new pages do not appear in the list.

Please see the attached screenshot of my pages page.

Also, here's the Welsh flag (attached) - could you add it to the next download please. I have 2 english/welsh sites to build.

thanks in advance,
rhys

[gelöscht durch Administrator]
totophe
Forum Members
Forum Members
Posts: 63
Joined: Wed Feb 21, 2007 9:30 am

Re: Cmsadesimple multilingual with installer

Post by totophe »

Hi,

here is the picture for the Dutch language. Please add it :) Thanks...

[gelöscht durch Administrator]
Locked

Return to “[locked] CMSMS MLE fork”