close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add HTML link to image description

Thread began 3/08/2011 10:46 pm by kiebe | Last modified 4/06/2011 7:43 am by Jason Byrnes | 7803 views | 11 replies |

kiebe

Add HTML link to image description

In some posts in this forum it says it can be done. But when I add a HTML link (like <a href="http://mydomain.com/page.htm">Click here</a>) to the image description - the HTML code shows up and is unclickable in the gallery. Can something like this be done?

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a link to your gallery please?

or at least, what gallery design are you using?

Sign in to reply to this post

kiebe

Add HTML link to image description

I'm using the grid_fullsize gallery design

Please see attached image

Sign in to reply to this post

Jason ByrnesWebAssist

ok, on the galleries/grid_fullsize/index.php file, change line 74:

php:
echo '<img alt="" title="' . $i . '##' . str_replace('"', '\"', $gallery['images'][$i]['title']) . '##' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '"  src="' . $gallery['images'][$i]['thumb']['url'] . '" width="62" height="62" />';




to:

php:
echo '<img alt="" title="' . $i . '##' . str_replace('"', '\"', html_entity_decode($gallery['images'][$i]['title'])) . '##' . str_replace('"', '\"', html_entity_decode($gallery['images'][$i]['description'])). '"  src="' . $gallery['images'][$i]['thumb']['url'] . '" width="62" height="62" />';
Sign in to reply to this post

kiebe

Thanks - this worked. Will this fix work for the other gallery designs too? If not, is it possible to post the code changes for those as well? Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, it will work for other galleries, basically the change is to find the code that outputs the title:
$gallery['images'][$i]['title']

and add html_entity_decode() around it:
html_entity_decode($gallery['images'][$i]['title'])

Sign in to reply to this post

kiebe

Thanks a lot

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

photoeyes2u348674

I am using the grid_lightbox mostly. I have figured out how to put this html link in the description. However, when the slide show thumbnails are viewed, I can't seem to get to click on the link. The description shows up but when the individual slides are shown, the description doesn't show up and I don't know how to make the description available for the link to be clicked on. What am I missing? Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

can you post a link please.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...