OK, being fairly new to PHP, I'm having a tough time with this customization.
I'm trying to add the description for a particular gallery at the top of the thumbnail display page. I've figured out where to put the code, I just haven't figured out what I should use for code. Can anyone help me out here?
Thanks.
Brian Curtis
P.S. (Gallery is the "best in class" program IMO! Keep up the great work.)
Posts: 487
Well, I'm assumming your going to dump the contents of a variable or
use php code to print it so, place something like <?php echo $var ?> or
whatever code you wish within the html block.
Posts: 2
Hi vallimar,
Yes, I was hoping I could dump the contents of some var to get the description on the thumbnail display page, however, it's the specific var that I'm having a tough time figuring out.
Here's the code that displays the description:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
if ($gallery->album->isAlbumName($i)) {
$myAlbum = new Album();
$myAlbum->load($gallery->album->isAlbumName($i));
$myDescription = $myAlbum->fields[description];
$buf = "";
$buf = $buf."<b>Album: ".$myAlbum->fields[title]."</b>";
if ($myDescription != "No description") {
$buf = $buf."<br>".$myDescription."";
}
echo($buf."<br>");
}
</TD></TR></TABLE><!-- BBCode End -->
$i is incremented via some iteration through the available galleries, I'm assuming. Now the problem I'm having is carrying over the necessary information to display the description on the thumbnail display pages, as there's nothing similar to the above block of code on the thumbnail pages.
Thanks for the assistance.