Table of Contents

Newsbox Rotator

Download and demo: Newsbox Rotator plugin for CMSimple (XH verified)

Newsbox Rotator is a newsbox plugin for CMSimple. Properties:

  • Unlimited number of rotating news in the same box
  • Fading with the configuration of times for fading and visibility.
  • Time menagenment of each news (optional).

Revisions:

version 1.1.0 released january 2009

  • added cursor definition in config.php
  • added language section
  • added explanation to mouseover action

version 1.1.1 released 21. january 2009

  • bug fix: if only one newsbox is found then cursor remains unchanged
Newsbox Rotator on multilanguage pages

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.

plugins/newsbox_rotator.txt · Last modified: 2010/06/16 08:39 by jerry
Webdesign: NMuD chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0