Hi, I'd like to add the Album Description to the album.php page to display just below the picture thumbnails on the album page - as opposed to having it display on the collections page. Has anyone found a way to do this?
Thanks very much for all the help so far. Plogger rocks.
I really do not know what you are asking. If you could send a link to the page you are refering. I am assuming you have entered a desc. in the plogger upon uploading? If you have the link post it and I am sure I can help you out.
Sorry for the confusion. I'm using the default theme and I'm hoping to add the Album Description to the Album page such as here: http://www.lib.colum.edu/plogger/index.php?level=album&id=3
Currently, the album description in the default theme shows up only on the Collection level (when you hover over an album thumbnail), but not at the Album level. Does that help clarify my question?
Alright your break down is like this Your collection is here : http://www.lib.colum.edu/plogger/index.php nothing Your first albums are here : http://www.lib.colum.edu/plogger/index.php?level=collection&id=3 HOver over is Album artist name your pictures are here : http://www.lib.colum.edu/plogger/index.php?level=album&id=3 Hover over is untitled landscape (something like that) invidual example here : http://www.lib.colum.edu/plogger/index.php?level=picture&id=67 Hover over is untitle landscape (something like that)
So what do you want and where based on this, sorry I am a tad bit lost as all for me have a hover over.
I'm not trying to create another hover over. Instead of the hover, I would like to have the Album Description appear just below the picture thumbnails at the bottom of this page: http://www.lib.colum.edu/plogger/index.php?level=album&id=3
By default in this theme, the Album Description would normally appear in a hover over on this page: http://www.lib.colum.edu/plogger/index.php?level=collection&id=3
However, I've changed that page to display the Album (artist name) when you hover because our Album Descriptions are long. That's why I'd like to have the Album Description display at the bottom of the album page instead of at the collection level.
Your Album.php should have something like the below (sorry I do not have the defualt anymore to view)
$capt = plogger_get_EXIF_subj_ref();
Of course your $capt will not = plogger_get_EXIF_sub_ref(); because my caption is catered to my needs. So if you want to change that mouseover to something else you can great a plogger_get function in plog_function.php and do so. To remove the mouseover so you have nothing there if you mouse over simply remove that line and the mouseover lines from your album.
If you want to add the Album Descripition below you have to do the following (again I am pretending the album description you want to use from you database is call album_desc It probably is not called this but I am sure you will see what I mean when I post below.
First you have to add a get function to plogger functions. This will allow you to call the values from the respective location in the database.
So open plog_function.php and add (find the get_functions by just searching the later and it will put you there, while it can be placed anywhere I like to keep the close for finding them when I forget where they are)
function plogger_get_album_desc() { $row = $GLOBALS["current_picture"]; return $row["album_desc"]; }
The above function will allow you to find the album description for the current album you are looking at.
Then you want to open your album.php
Add
$album_desc = plogger_get_album_desc();
Add that with the other $ stuff. This will give a name to your function so you can just call it with the $album_desc name
Then below the mouse over stuff add
print ' '. $album_desc . ' ' ;
The above will print the album desc below the album picture.
Hi, Thanks for your help, but that's not exactly what I'm trying to do. I don't want the album description to appear below the album thumbnails, but rather at the bottom of the album.php page below the thumbnail container before the footer.
So, I want the album description at the bottom of this page: http://www.lib.colum.edu/plogger/index.php?level=album&id=3
I can't seem to get that to work. Here's what I've tried so far:
in plog_function.php I have the following get function:
function plogger_get_album_description() { return htmlspecialchars(SmartStripSlashes($GLOBALS["current_album"]["description"])); }
Then in my album.php, i've added the following between the </div> for the thumbnail container and the footer: print '<p>' . plogger_get_album_description() . '</p>';
Unfortunately, I can't get the album description to display. Do you have other suggestions for me? I really need to get the album information to appear on this page.
Then called this function from the album.php page (just under the plogger_get_header() bit: $desc = plogger_get_description();
Then you can use the $desc variable to print the album description whereever you want it on the page: print '<p>'.$desc.'</p>';
If you need any help feel free to give me a shout, see it working on one of my album pages here: http://www.mangoro.co.uk/portfolio.php?level=album&id=18