When I created some block view with views_ticker formated and fade effect, but the fade effect just apply to latest view and previous fade effect going to listing all off contents without any effect.

Comments

alexmc’s picture

I'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

akhilbabbar’s picture

Same 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.

doors’s picture

I 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.

doors’s picture

Version: 6.x-2.0 » 7.x-2.x-dev

Why 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.

vip_sa’s picture

Yes 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.

eboss’s picture

why there is no response for this issue? :(

st-ar’s picture

you 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

doors’s picture

Thanks a ot @st-ar. Your fix works.

alienzed’s picture

Version: 7.x-2.x-dev » 7.x-2.0
Component: Miscellaneous » Code
Status: Active » Needs review
StatusFileSize
new169.73 KB

Confirmed 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

volkan@bd’s picture

Thanks.it works.

wasiiim’s picture

Category: bug » support
Priority: Critical » Normal

Finally..
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

bneil’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Status: Needs review » Active

Setting back to active since there's no patch yet in this issue.

bneil’s picture

Title: Can't use same effect for one page » Use multiple views of one style on one page
Category: Support request » Feature request
Issue summary: View changes
genjohnson’s picture

@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.

genjohnson’s picture

Here's a patch based on st-ar's comment in #7.

genjohnson’s picture

Status: Active » Needs review
bneil’s picture

Status: Needs review » Needs work

The patch needs work as it removes the context that was introduced in #1395054: Conflict with ajax.

bneil’s picture

StatusFileSize
new2.54 KB
new762 bytes

Downloaded 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

bneil’s picture

Status: Needs work » Needs review
Jorge Navarro’s picture

Status: Needs review » Reviewed & tested by the community

#18 solves the issue. Thanks.

sgdev’s picture

Related issues: +#2704723: Refactor module

While 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.settings instead. 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

elaman’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Marking this issue as duplicate, since issue #2704723: Refactor module has the fix.