Download and demo: Newsbox Rotator plugin for CMSimple (XH verified)
Newsbox Rotator is a newsbox plugin for CMSimple. Properties:
version 1.1.0 released january 2009
version 1.1.1 released 21. january 2009
Standardly the newsrotator adds call to rotator.js in the head section when the plugin is loaded. It means, that even if the webpage has its 2lang version, always the same commands, variables, and paths are loaded. Then on 2lang pages this plugin can't run.
There is a reccommendation mentioned in http://cmsimpleforum.com/viewtopic.php?f=12&t=368#p4777.
But there is also another - more universal - solution to make the plugin working on 2lang pages.
In plugins index.php look for:
$hjs.='<script language="JavaScript" src="plugins/'.$plugin.'/rotate.js"></script>';
and replace it by:
//*** multilingual support added on 03. July 2009 by Tata - info at cmsimple dot sk
if ($sl!==$cf['language']['default']){
$hjs.='<script language="JavaScript" src="../plugins/'.$plugin.'/rotate.js"></script>';
}else{
$hjs.='<script language="JavaScript" src="plugins/'.$plugin.'/rotate.js"></script>';
}
//***
Now, if the language will differe from the default language, new path to the rotate.js will be used.