We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to add a link tag to a photo[Unsolved].... trying.... | Forum

WOO
WOO Apr 20 '16
I need all the photos have a "href" code, even just a empty link with "#".


Now, the most photos in home page and dashboard have. But then go to PHOTO to see the photos list and also the photo detail page, the photo has no "href" code.


How can I add such code?



Thanks!


The Forum post is edited by WOO Apr 21 '16
dave Leader
dave Apr 20 '16
Hi, so glad you got that sorted out and solved :),  if you can, please share your solution to help others. :)


Thanks :)

WOO
WOO Apr 21 '16
No problem. I thought few people need such modification. 


Will post in next replay.
Quote from dave Hi, so glad you got that sorted out and solved :),  if you can, please share your solution to help others. :)


Thanks :)


WOO
WOO Apr 21 '16
In fact, I 'm trying to add social share function in China (http://share.baidu.com/code). 


I find it seems that the share icons will not be shown on a photo unless the photo have a link tag.  


Now, I'm trying to find which file should be modified to add such link tag.


The file I found is:  ow_plugins/photo/views/components/photo_floatbox.html


at line 48:  <img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" class="ow_photo_img ow_photo_view" />


Just add <a href="#">......</a>


But there is still a issue. Poor english and need more words, so I need explain in next replay.


So this post is not resolved.   :-P   I will change the title.


LOL

The Forum post is edited by WOO Apr 21 '16
ross Team
ross Apr 21 '16
Topic was moved from General Questions.
WOO
WOO Apr 21 '16
After I make the change mention above, the share icons are still not shown on the photo when click a photo in photo list to show one big photo. That big photo is shown in a popup layer and background page become gray.  The link tag is OK but no share icons on the photo.


Then, if I refresh the page, the photo will be shown in page(not a popup layer). The social share icons were shown on the big photo. But the page link of twice try are same, such as:/photo/view/58/latest


I guess if there is a script to close any layer except the photo layer when the photo is shown in popup layer(first try)?