Welcome, Guest. Please login or register.
Did you miss your activation email?
February 11, 2012, 09:28:42 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149588 Posts in 21096 Topics by 7538 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Anynews Coda slider  (Read 63 times)
mdemaree99

Offline Offline

Posts: 29


« on: January 31, 2012, 10:21:22 PM »

Anybody have a detailed walk through on how to get the coda slider up and running?

I have Installed the latest Anynews from websitebaker.

Entered in my website template:

Code:
<?php include_once(WB_PATH '/modules/anynews/coda-slider.inc.php'); ?> into header of my tempalte

include_once(WB_PATH . '/modules/anynews/coda-slider.inc.php');

Entered into code section of page:

Code:
displayNewsItems(
   $group_id = 0,
   $max_news_items = 10,
   $max_news_lenght = -1,
   $display_mode = 3,
   $lang_id = 'auto',
   $strip_tags = true,
   $allowed_tags = '<p><a><img>',
   $custom_placeholder = false,
   $sort_by = 1,
   $sort_order = 1,
   $not_older_than = 0
   );

I get the coda slider on the latest news, but it will not automatically go to the next slide.

I have gotten bxslider with library admin, but had to play with div to get it working correctly.  Would rather make it easier by just updating a news or WYSIWYG page.

Any other easy solutions for small generic slider?

Logged
mdemaree99

Offline Offline

Posts: 29


« Reply #1 on: February 01, 2012, 06:48:20 PM »

Currently Anynews is not set up to rotate the slides automatically

You must edit the coda-slider.js file and update scrollOptions

Code:
var scrollOptions = {
                interval: 6000, //time of each slide
cycle:true, //cycle endlessly ( constant velocity )
force:true,//force the scroll to the first element on start ?

                target: $scroll, // the element that has the overflow

Anybody thought of updating this to Coda 2.0?
May give a few more functions down the road?


Also.. If you want to override the current default of interval of 6000 for time..  You can update the DisplayNewsItem code.

ie:

Code:
displayNewsItems(
   $group_id = 0,
   $max_news_items = 10,
   $max_news_lenght = -1,
   $display_mode = 3,
   $lang_id = 'auto',
   $strip_tags = true,
   $allowed_tags = '<p><a><img>',
   $custom_placeholder = false,
   $sort_by = 1,
   $sort_order = 1,
   $not_older_than = 0,
   $interval = 1000      // much faster
   );

« Last Edit: February 01, 2012, 07:34:58 PM by mdemaree99 » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!