 2014-11-09 07:34 | I have simpleSlider for Quick.CMS 5.5 How can i modifyng for multi langauge. ? » Quick.Cms v5.x |
 2014-11-10 22:54 | Define $lang[''] for images links in file database/translation/xx.php for each language separately. For example in en.php:
$lang['slider1'] = "slider1.jpg";
in another language file : $lang['slider1'] = "slider1xxxx.jpg"; and use variable $lang['slider1'] in simpleslider code - for example:
<img src="<?php echo $config['dir_files'].$lang['slider1'] ;" alt="" />
so, you can define other links to graphics for each of the languages and you can change that in the panel , not in the code ...
Jarek - napisane z pulpitu Quick.Cms 6.0 |
 2014-11-11 14:09 | My Header:
<div id="content"> <div class="theme-default"><!-- SLIDER STARTS HERE --> <div id="slider" class="nivoSlider"> <img src="<?php echo $config['dir_files'].$lang['slider1'] ;" alt="" /> </div> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </div>
I have error:
Parse error: syntax error, unexpected '" /> ' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\site\templates\temp\_header.php on line 56
|
 2014-11-11 14:13 | i added define to en.php tr.php
$lang['slider1'] = "slider1.jpg"; $lang['slider2'] = "slider2.jpg"; $lang['slider3'] = "slider3.jpg";
|
 2014-11-12 14:56 | Sorry my mistake. ( You must to end php code by ?>) If You have 3 files so:
<div id="content"> <div class="theme-default"><!-- SLIDER STARTS HERE --> <div id="slider" class="nivoSlider"> <img src="<?php echo $config['dir_files'].$lang['slider1'] ;?>" alt="" /> <img src="<?php echo $config['dir_files'].$lang['slider2'] ;?>" alt="" /> <img src="<?php echo $config['dir_files'].$lang['slider3'] ;?>" alt="" /> </div> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </div>
Does it work?
Jarek |
 2014-11-13 18:26 | Ufuk26, The Grafiqa's code will work better :) if you give voice to Grafiqa. StudioStrona.pl |
 2014-11-14 04:51 | Ufuk26, openzibi True, true :) Jarek |