Svarrers Gallery and html in titel
Moderator: Tata
Svarrers Gallery and html in titel
Using Michael Svarrers Gallery-Plugin It would be cool if you could type html in the titel of a photo. So that visitors could visit a website releated to the photo when they see the lgihtbox version of it and clicking then on the titel.
As a admin I did go to the details from a photo and then where you type the titel and did type this:
if you want to see more of this just click <a target="_blank" href="http://www.more.com">here</a>.
Now, when i see the thumbnailpage i see the following below the thumbnail:
here." class="picture">
When i click on the thumbnail and i get the lightbox photo i do see the correct text on the bottom left.
How can i get this away on the thumbnailpage?
Any help is much appreciated!!!
As a admin I did go to the details from a photo and then where you type the titel and did type this:
if you want to see more of this just click <a target="_blank" href="http://www.more.com">here</a>.
Now, when i see the thumbnailpage i see the following below the thumbnail:
here." class="picture">
When i click on the thumbnail and i get the lightbox photo i do see the correct text on the bottom left.
How can i get this away on the thumbnailpage?
Any help is much appreciated!!!
Re: Svarrers Gallery and html in titel
Hi Emile,
show title thumb [true/false] If titles are enabled, "false" will hide the titles on the thumb page
Holger
There is a setting in the configuration to hide the title on the thumbnail-page:bastingse wrote:How can i get this away on the thumbnailpage?
show title thumb [true/false] If titles are enabled, "false" will hide the titles on the thumb page
Holger
Re: Svarrers Gallery and html in titel
Hi Holger, thanks for repley! I didn't explain enough what i mean. I indeed set the configuration to show no title on the thumbnail-page and that works perfect, it shows no title above the thumb. But because (i think) i use html in the title it shows here." class="picture"> under the thumb.
Re: Svarrers Gallery and html in titel
Ah, I see.
I remember that we had some postings on that in the past.
So I'll have a closer look on it tonight.
Coming back ASAP.
Holger
I remember that we had some postings on that in the past.
So I'll have a closer look on it tonight.
Coming back ASAP.
Holger
Re: Svarrers Gallery and html in titel
cool! Thanks... having late shift today so i read about it tonight when i get home ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)
Re: Svarrers Gallery and html in titel
Hope that I'll get it.bastingse wrote:cool! Thanks... having late shift today so i read about it tonight when i get home
Holger
Re: Svarrers Gallery and html in titel
Hi Emile,
I've made some tests and found the problem:
The thumbnail itself is covered by a link. Let's say like
Now you put your code into the "alt" of the image-tag.
This will result in a code like this:
This code will brake after the first </a> of course.
So there's no chance - beside coding - to get what you want.
It will work in some browsers when you write your link without double quotes, because the title is saved with htmlspechialchars().
But this will cause validation errors and may not work with every browser.
WBR
Holger
I've made some tests and found the problem:
The thumbnail itself is covered by a link. Let's say like
Code: Select all
<a href='imageblah" ....><img source="blah" alt="blah" class="picture" /></a>
This will result in a code like this:
Code: Select all
<a href='imageblah" ....><img source="blah" alt="<a target="_blank" href="http://www.more.com">here</a>" class="picture" /></a>
So there's no chance - beside coding - to get what you want.
It will work in some browsers when you write your link without double quotes, because the title is saved with htmlspechialchars().
Code: Select all
<a target=_blank href=http://www.more.com>here</a>
WBR
Holger
Re: Svarrers Gallery and html in titel
Well, that did the trick!! Thanks Holger!!! Good job. It is working in Firefox and also on IE !!!!Holger wrote: It will work in some browsers when you write your link without double quotes, because the title is saved with htmlspechialchars().But this will cause validation errors and may not work with every browser.Code: Select all
<a target=_blank href=http://www.more.com>here</a>
WBR
Holger
![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
Thanks a lot!!!!
![Exclamation :!:](./images/smilies/icon_exclaim.gif)