Welcome, Guest. Please login or register.
Did you miss your activation email?
09 May 2008, 14:56

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: Adding links to Album Comments [SOLVED]  (Read 241 times)
0 Members and 1 Guest are viewing this topic.
tophers
Forum Member
*

Karma: 0
Offline Offline

Posts: 40

Location: Calgary, Alberta, Canada



« on: 17 Mar 2008, 17:59 »

I ran through the Forum but couldn't find anyone with this particular problem...

I'm trying to add links to the Comments of Album images. My client wants to add in the ability to download a high-res image from the big-picture view. i thought simply adding a link into the comment would do the trick. I added this to my image comment:
Code:
<a target="_blank" href="uploads/images/gallery/south/south_stephenave_entrance.jpg">Download high-res photo</a>

Instead of what I was looking for, I get this:


Anyone know if what I'm attempting is possible? Or if there is another work-around? The site I'm working on is at:
http://www.calgary-convention.com/index.php?page=gallery-south-building

I'm using CMSMS 1.2.3 and Album 0.9.3
« Last Edit: 27 Mar 2008, 18:03 by tophers » Logged
tophers
Forum Member
*

Karma: 0
Offline Offline

Posts: 40

Location: Calgary, Alberta, Canada



« Reply #1 on: 18 Mar 2008, 11:49 »

Anyone have any thoughts on this? I could really use the help. I don't want to resort to building a separate system for handllng the hgh-res files. I thought a simple link to them in the Comments section would work...
Logged
tophers
Forum Member
*

Karma: 0
Offline Offline

Posts: 40

Location: Calgary, Alberta, Canada



« Reply #2 on: 18 Mar 2008, 12:43 »

Got it. It was solved at the end of this post:
http://forum.cmsmadesimple.org/index.php/topic,9533.0.html

EDIT: Nope - still giving me the same problem. Anyone?
« Last Edit: 18 Mar 2008, 12:46 by tophers » Logged
tophers
Forum Member
*

Karma: 0
Offline Offline

Posts: 40

Location: Calgary, Alberta, Canada



« Reply #3 on: 18 Mar 2008, 16:41 »

Turns out I was premature on declaring this done. It looks like the previously mentioned post was never declared [Solved]. On further investigation it seems that you can now add html tags to the Comments of an Album image. So long as it isn't the <a> tag. Once you add the <a> it blows apart (as shown in the screenshot at the start of this post).

One added thing - the template still doesn't seem to be processing the <html> within the Comments properly. If you look at the first photo in the link I supplied at the start of this post you can see what I mean. The Title still shows the <h1> tags when you mouse over, but it does display properly when you view the large image.

Any help is appreciated.
Logged
tophers
Forum Member
*

Karma: 0
Offline Offline

Posts: 40

Location: Calgary, Alberta, Canada



« Reply #4 on: 27 Mar 2008, 18:02 »

First, I'd like to apologize to all of you who've read this thread and wondered what happened to it. I was tied up on another project and just got back to this one today.

Second, it seems that the solution given in the original post may have worked when it was posted. The code for the Templates has changed since then, and my lack of scripting knowledge led to my dilemma. Seems the answer was staring me in the face. To overcome the mess shown above when adding html to you Comments, track down the section of the code that adds the Comment to various image attributes, and remove them (all!). In my case, I removed one adding it to the image Title, but missed the one for the Alt tag.

It may vary from template to template (I'm using Lightbox), but look for it under the {* Photo List *} section.

Look for this:
Code:
<img src="{$onepicture->thumbnail}" alt="{$onepicture->name} - {$onepicture->comment}" title="{$onepicture->name} - {$onepicture->comment}" />

And replace it with this:
Code:
<img src="{$onepicture->thumbnail}" alt="{$onepicture->name}" title="{$onepicture->name}" />

And don't forget to look for variations such as:
Code:
{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}
Logged
Pages: [1]
Print
Jump to: