You are not logged in.
#1 2009-01-19 17:19:13
- Cactaur
- Member
Descriptions
I'm sorry, first off, as I do not know if this topic belongs here.
But, my question to you is, is it possible to have the description under the picture?
An example would be this page(not my work/page): http://lost-soleil.com/gallery/Commissi … ae.jpg.php
See how just under the picture there is a description? Is this possible in singapore; if so, how can I do it?
Offline
#2 2009-01-19 20:39:42
- DC
- Administrator

Re: Descriptions
Not by default, but the template can be modified to do this ...
try this in your image.tpl.php
add this code where you want it to show in your template...
That should do what you want it to do.
<?
$out = $sg->image->detailsArray();
echo $out['Description']." <B>".$out['Copyright']."</B>";
?>
DC
To code or not to code that is the question?
Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php
Offline
#3 2009-01-20 05:12:16
- Cactaur
- Member
Re: Descriptions
Alright, thank you very much. But, I'm sorry to bother you again.
Now that I've added the code, where do I go to put the descriptions?
Offline
#4 2009-01-20 06:01:29
- DC
- Administrator

Re: Descriptions
In the admin click Manage galleries and images, then view gal thumbs and click on the thumb of the image you want to add the description to, you should then see a field that says description. just add in the descrip and the ©date ...
As thats what I coded the mod for ...
then to make it look nice you can use this slight update to the code ...
<div class="sgDetailsList">
<p align="center">
<?
//DC mod shows description copyright under image ...
$out = $sg->image->detailsArray();
if ($out['Description']){
echo $out['Description']." <B>©".$out['Copyright']."</B>";
}
?>
</p>
</div>
you will also need to remove the code that outputs the detail info so that you only have it showing up in the one location under the image as requested ...
let me know as that should work fine.
DC
To code or not to code that is the question?
Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php
Offline
#5 2009-01-20 16:26:37
- Cactaur
- Member
Re: Descriptions
Yes it worked nicely! Thank you so very much! I really appreciate you taking the time to help me out! <3
Offline
#6 2009-01-20 17:15:24
- DC
- Administrator

Re: Descriptions
No Prob, Good to hear that you got it all setup the way you wanted.
DC
To code or not to code that is the question?
Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php
Offline
#7 2009-01-24 04:17:57
- lakechicago
- Member
Re: Descriptions
Sorry but I'm using Polaroid template and I don't see any field for description. Am I missing something or is the field not possible in Polaroid theme?
Thanks.
Don
Offline
#8 2009-01-27 20:07:52
- DC
- Administrator

Re: Descriptions
In the admin you should see a place to put a description ...
The mod above was meant for those that need it for special purposes such as was requested were by default its not avail ...
Taken from my above post
In the admin click Manage galleries and images, then view gal thumbs and click on the thumb of the image you want to add the description to, you should then see a field that says description. just add in the descrip.
DC
To code or not to code that is the question?
Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php
Offline