Hello,
Does anyone knows out to show image descriptions and/or other custom fields in the slimbox?
When I click on a image slimbox opens very nice and shosws only image name and image 1 out of 6... I need to put a description there and a some other extra fields.
Thx in advance
Comments
Here´s my question again,
Anyone knows how to show the imagem description inside the slimbox?
I can only show the image name, image count (1 of 8) and the close button.
I need to show the image description there and also some icons to link to facebook and other networks.
Anyone got it working?
Thx in advance
I think it is not possible to show the description in the slimbox. You will have to do modifications to that. Also note that FB etc buttons will not work as using these boxes there is no page to link to.
too bad it doesn´t work, the theme is awsome with that option available it would be perfect.
I´m customizing a site that uses zenphoto with effervescence+ with a lot of modifications and I would love to use that function... Too bad it´s not possible.
About the moderation issue, I´m sorry about that, I did noticed the warning but the post was shoing blank in the forum so I presumed there was some error, didn´t understant the the post would be blank until moderation...
Once again I´m sorry
Best regards
ZenPhoto Rocks
Always remember. If you are going to modify a theme you should do so from a copy so that future ZP updates do not wipe out your changes.
I´ve tried and the only thing I´ve managed to do is in functions.php
function annotateImage() {
global $_zp_current_image;
if (!$_zp_current_image->getShow()) {
$tagit = "\n".gettext('The image is marked not visible.');
} else {
$tagit = '<p>THIS IS A TEST</p>';
}
return sprintf(gettext('View the image: %s'),GetBareImageTitle()).$tagit;
}
text appears fine in the slimbox but I still can´t put in the image description there, and if I try to put a text link there it will show up on the album page and not on the slimbox.
This is all i´ve managed to do so far...
On how to get the image desc I recommend to rewiew the object model and theming tutorials.
I´ve managed to show the image description inside the slimbox.
In functions.php
REPLACED:
function annotateImage() {
global $_zp_current_image;
if (!$_zp_current_image->getShow()) {
$tagit = "\n".gettext('The image is marked not visible.');
} else {
$tagit = '';
}
return sprintf(gettext('View the image: %s'),GetBareImageTitle()).$tagit;
}
WITH:
function annotateImage() {
global $_zp_current_image;
if (!$_zp_current_image->getShow()) {
$tagit = "\n".gettext('The image is marked not visible.');
} else {
$tagit = "\n".getImageDesc('');
}
return sprintf(gettext('View the image: %s'),GetBareImageTitle()).$tagit;
}
Halfway trough the desired result...
To show only text just type the desired description
And the result I was after...
Type the folowing in the description box:
<link removed by admin>
And you get the link working in the slimbox...
It would be nice if someone who realy understands php to clean up the code or maybe even turn this idea into a plugin or something.
I´m using this as a links page for a custumer, I know it isn´t the cleanest code and not a fully function plugin but I´m just a designer who does a little bit of freelance work to some friends. In this case it´s for a tattoo studio and I was asked to leave the links page as if it was a gallery page so this is the best I can do.
I hope someone grabs this idea and turn it into a "real" function of zenphoto.
Thanks for the help
Can you edit or delete the post please?
Sorry about that... Newbie typing :P and I´m not used to write in forums
I don't think we will do as we ship actually Colorbox which is more or less the same based on jQuery instead of Motools (it is in Eff+ actually for legacy reasons I think).
But of course maybe someone else will.
Btw, I removed your link as I saw nothing Zenphoto related there actually (more a placeholder)
something like:
href='http://zenphoto.org.com'>CLICK HERE TO VIEW THE SITE</
just don´t forget to use in the end...
The site I´m working is based on effervescense+ but with a lot of graphic work on it, like I said before I don´t know much about code so it could be better, but at least is good looking
I´ll post a link to it when I finish it.
Meanwhile you guys keep up the good work ZenPhoto is a amazing gallery script and in my opinion the best one I´ve seen so far, because it´s possible to modify it to your personal needs.
Keep it up
` oder `backticks``
Once again... sorry for the mistake and thanks for your pacience with newbies.
Sbillard:
Effervescence+ is awsome, don´t change anything about it. I only needed to make this change because it was requested, because in my opinion slimbox is perfect as it is... clean and simple.
A sugestion (If I´m allowed) for a next release, maybe use jquery to show album description over the thumbnail when hovered.
Keep it up
For suggestions best use the bugtracker, otherwise it tends to be forgotten in the stream of forum posts.