Closed (duplicate)
Project:
Views Ticker
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2012 at 20:45 UTC
Updated:
14 May 2018 at 18:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexmc commentedI've just noticed this myself with a later D7 version. Basically I want several blocks with the vertical ticker style, and the ticker only seems to apply to the last view in a block, not to all views . Using 7.x-2.0. Google Chrome on Linux is my browser....but seems to have the same problem on Firefox. (I can try others if you like)
Incidentally it isn't just an animation problem. Although I have set up my ticker to show one node at a time the broken earlier one shows three nodes
Comment #2
akhilbabbar commentedSame issues with me as well. Cannot use the same effect on multiple views in the same page, only the last view shows the effect while others show up as static blocks of content.
I'm using Drupal 7, views ticker 7.x-2.0.
Comment #3
doors commentedI am having this problem as well.
It also happens with multiple blocks from the same view (Using the same effect) are placed on the same page.
Comment #4
doors commentedWhy isn't this bug being treated as critical and have not received a response from the developers?
It is more than practical to want this effect within multiple blocks on the same page.
Please can someone look into this.
Comment #5
vip_sa commentedYes please can someone have a look to fix this as it is needed to have the same effect in say panels or one below another on the same page.
Comment #6
eboss commentedwhy there is no response for this issue? :(
Comment #7
st-ar commentedyou have to make changes in file views_ticker.views.inc to fix that problem.
Example:
Line 54:
Change
drupal_add_js('(function($) { Drupal.behaviors.views_ticker_fade = { attach: function (context) { $("#views-ticker-fade-' . $view->name . '").newsTickerFade(); } };})(jQuery);', 'inline');to
drupal_add_js('(function($) { Drupal.behaviors.views_ticker_fade_'. $view->name .' = { attach: function (context) { $("#views-ticker-fade-' . $view->name . '").newsTickerFade(); } };})(jQuery);', 'inline');make the same extension _'. $view->name .' in line 59, 64, and 69
Comment #8
doors commentedThanks a ot @st-ar. Your fix works.
Comment #9
alienzed commentedConfirmed that #7 fixes the "multiple instances of vticker on a given page only has the last one loaded work" problem
Here is the updated file: 7.x-2.0
Comment #10
volkan@bd commentedThanks.it works.
Comment #11
wasiiim commentedFinally..
after i designed my ticker and every thing was ok on firefox cos i don't use chrome usually.. i detected a problem..
i can't describe what i'ts happenin' good so i will leave the url of my site... if any one have any idea how to solve this please help me
here is the url http://ssnp-latakia.org/LNN/
and the ticker is at the bottom of the screen...
remember the problem is only in chrome
Comment #12
bneil commentedSetting back to active since there's no patch yet in this issue.
Comment #13
bneil commentedComment #14
genjohnson commented@skycool123, the horizontal ticker functions in Chrome, but there are some css issues causing the text to not be displayed. An issue about this has been opened: #2306583: Review/reduce css provided by views_ticker.
Comment #15
genjohnson commentedHere's a patch based on st-ar's comment in #7.
Comment #16
genjohnson commentedComment #17
bneil commentedThe patch needs work as it removes the context that was introduced in #1395054: Conflict with ajax.
Comment #18
bneil commentedDownloaded the patch and tested it.
It looks like there was one context that got removed. Here's a patch that adds it back in and an interdiff.
I also found that the BBC style isn't using context so I filed that issue: #2306607: BBC ajax issue
Comment #19
bneil commentedComment #20
Jorge Navarro commented#18 solves the issue. Thanks.
Comment #21
sgdev commentedWhile this patch is ok, it can be improved. We've created a patch that removes all Views Ticker javascript from being inline, and leverages
Drupal.settingsinstead. This also has the added benefit of allowing the JavaScript to be aggregated using the AdvAgg module.Please review our patch, and I'd appreciate any feedback. Thanks!
https://www.drupal.org/node/2704723
Comment #22
elamanMarking this issue as duplicate, since issue #2704723: Refactor module has the fix.