Problems with images in activities after refreshing (ajax adding is ok)
-
Hi,
I have a problem with displaying uploaded images after refreshing the browser. At the same time there is no problems just after adding new post with uploaded image to activity stream (via ajax). Everything looks good and image has normal link to lightbox. After refreshing I still see this image but also some strange link above. Image link is broken. Html code after refreshing looks like this (I changed website adress and login/displayname):
<div class="bpfb_images"> <a href="https://mysite.com/wp-content/uploads/bpfb/2_0-17173600-1404479135_indexation50.png" class="thickbox" rel="a43f792dedeb39f691b3b80e27bb80c8" title="<a href=" http: mysite.com members mylogin ">mydisplayname</a>"><br> <img src="https://mysite.com/wp-content/uploads/bpfb/2_0-17173600-1404479135_indexation50-bpfbt.png"><br> </div>
I don’t know why but code is modified – added title with wrong “href”. There are a lot of mistakes inside href tag.
If I delete a code “. trim($img);” from the link generating in images_tag_template.php, I don’t have this problem but also don’t have the correct link. If I manually set the name like 123.pcx it works, but 123.jpg – not! I think maybe some image filter in buddypress works bad with my theme but I spent 2 full days and cannot understand these dependencies. If you have any ideas you can very help me.
- The topic ‘Problems with images in activities after refreshing (ajax adding is ok)’ is closed to new replies.