Okay
  Public Ticket #1113623
scrolling ticker
Closed

Comments

  •  2
    debkloot started the conversation

    hi

    i'm trying to do a scrolling ticker, just like the one you have on your demo page for the scrolling up example.

    as hard as i try, i cannot get the continuous scroll that you have there. i have a list of 6 and it scrolls through them and then there is blank underneath for a period and then the list starts again. how can i make the scroll continuous, like you have in the demo without a gap? i have tried all different settings. do i need to customise something in the css? 

    thanks in advance for your help

    debby

  •  26
    Joe replied

    Do you have a link to your site that I can check out?

    The ticker does not duplicate ticks, so if all 6 ticks are on the screen at the same time, the first tick will not start up again until it completely leaves the screen. Same goes for the other ticks. If this is the case, then I suggest making the height of the ticker smaller. The height of vertically scrolling tickers is based on the Height field of the "Tick Dimension" panel for scrolling tickers.

    Let me know if this is the issue or not. Thanks for your purchase!

  •  2
    debkloot replied

    hi 

    i am testing the widget here:

    http://jmedia.online/homepage-one/homepage-two/

    your advice was useful but i still can't get it to work properly. i still have a big gap, before the scroll starts again,  even though not all ticks are on screen at the same time. i adjusted the height of the ticker and it still didn't help. 

    can you help further?

    thanks

    debby

  •  2
    debkloot replied

    actually i just figured it out!!

    my problem was that in the grid display, i thought i had to choose 6 rows, since i had 6 entries. once i changed that to 1 row, it now seems to work. 

    this is a bit unclear, and i'm still not sure why it works now but it does!

    a separate problem - how can i change the caching settings? i am putting the widget on my homepage, and i have a problem with updating because of the caching, or else because it seems to update once a day. i am putting news links on and i would like it to refresh each time the page is refreshed. is that possible?

  •  26
    Joe replied

    Ok, yes, you should actually disable the grid completely if all rss items are separate. The grid is really meant to be used on rotate mode, in order to show multiple "ticks" at a time (creating a grid of items for each rotation).

    There is a cache setting for the RSS feed under News Tickers > Settings > RSS, which let's you adjust the amount of time that the ticker fetches info from your feeds. Be default it is set for 10 minutes, but you can decrease it if you wish. Normally some sort of cache is a good idea just so your site isn't making too many url calls.

    If you site itself has a cache plugin running on it, you'll have to find a way to disable the site from cacheing the section containing the ticker. I can't say exactly how to do this, but I know some cache plugins have a way to block of parts of the page to "not cache". That way the rendering of the ticker would never cache and allow my plugin to load on every page load. This would then trigger my cache to fire at the interval set on my settings page.

  •  2
    debkloot replied

    hi thanks again for your reply


    i tried turning off the grid, but the spacing got uneven. it actually looks better with the grid on, so i am leaving it on!

    your rss setting for caching had no effect. i did find the necessary code online, to override the wordpress caching on the homepage. i wasn't able to block the caching just for the widget. i've changed the caching for the front page to 2 minutes.

    thanks for all your help!

    this is the answer i used to solve the caching problem, in case you want to provide this code to others:

    WordPress’ built-in RSS widget is fantastic, but sometimes it doesn’t update often enough.

    Luckily, there is a fairly simple solution for that. Just add this code to your functions.php file:

    add_filter( 'wp_feed_cache_transient_lifetime', 
       create_function('$a', 'return 600;') );

    As you can see, we are using WordPress’ add_filter() function, which accepts a filter hook, callback function and (optional) priority. The wp_feed_cache_transient_lifetime hook handles the feed’s refresh rates. We’re creating our callback function on the fly using PHP’s create_function() function. It is one line, which returns the refresh rate in seconds. Our refresh rate is set to 10 minutes (600 seconds).

    Set the value in seconds according your needs.

  •  26
    Joe replied

    Thanks for the feedback. I'll double-check the cache functionality early next week to ensure it's working properly.

    For the spacing, you may need to set a Tick width in your scroll settings to resolve this issue, depending on what you want (if you turn off the grid settings). Otherwise, if you are happy with how it looks it's fine leaving it as is.