Need help with activity stream
-
Im not programmer so i ask for help about easy fancybox plugin and here is why
I have some weird problem so i wanted to ask maybe someone can help me.
Buddypress activity stream on my page here looks ok and images are shown ok but when i press Read more on some article there on that page, content of the article gets expanded as it should be but when i click on image from that article fancybox effect doesnt work just for that article.
Does somebody have same problem?I found out this
this is the code of element before i press Read more<div id="attachment_3120" class="wp-caption alignleft" style="width: 160px"> <a class="fancybox" rel="gallery" href="http://www.xxx.com/wp-content/uploads/2014/07/iphone-6.jpg"> <img class="size-thumbnail wp-image-3120" width="150" height="150" alt="Ajfon 6" src="http://www.xxx.com/wp-content/uploads/2014/07/iphone-6-150x150.jpg"> </a> <p class="wp-caption-text">Ajfon 6</p> </div>
and this is after i click Read more on Activity stream
<div id="attachment_3120" class="wp-caption alignleft" style="width: 160px"> <a rel="nofollow" href="http://www.xxx.com/wp-content/uploads/2014/07/iphone-6.jpg"> <img class="size-thumbnail wp-image-3120" width="150" height="150" alt="Ajfon 6" src="http://www.xxx.com/wp-content/uploads/2014/07/iphone-6-150x150.jpg"> </a> <p class="wp-caption-text">Ajfon 6</p> </div>
It is missing fancybox class after clicking Read more.
Does anybody have same problem?i get answer by author
the problem here is new content being loaded via Ajax. For FancyBox to ‘know’ which links it should bind itself to, it needs an event trigger. The plugin uses currenty two events: “document ready” which happens right at page load, and “post-load” which is an event fired by Jetpack Infinite Scroll after loading new posts via ajax on scrolling down a category page for example…I’m surprised that BuddyPress does not use the same “post-load” event. If you can find out if BuddyPress fires an event at all and what its handle/name is, then I can update Easy FancyBox to start listening for this event too.
Can someone tell me what event is that so that author can fix that?
Thanks 🙂
- The topic ‘Need help with activity stream’ is closed to new replies.