forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: gorcutt on November 06, 2004, 03:38:56 am

Title: Trying to add {ALB_DESC} on the thumb page and ...
Post by: gorcutt on November 06, 2004, 03:38:56 am
... It doesn't work. I just want to show the album description inside the album page, not only on the albums list page. I tried to add the tag {ALB_DESC} on the next table cell, beside the album title and it doesn't work. The tag appears on the page as it is, not as the album description. I'm really a bit lost about how, when and where to use all those available tags, not only the {ALB_DESC}.
Thanks for any help.
Guilherme
Title: Re: Trying to add {ALB_DESC} on the thumb page and ...
Post by: Joachim Müller on November 06, 2004, 07:41:01 am
the stuff in curly braces is in fact just a placeholder for actual content that has to be filled in when the theme file is being parsed - putting {ALB_DESC} into parts of the code where it hasn't been defined before is just wishfull thinking. If you take a look at how it's being filled with a value:
Code: [Select]
'{ALB_DESC}' => $album['album_desc'],in the function theme_display_album_list() that is only being taken into account in the index, but not on displayimage.php, it should become obvious that you will have to come up with more than just a placeholder in curly braces to accomplish what you're looking for.

Joachim
Title: Re: Trying to add {ALB_DESC} on the thumb page and ...
Post by: gorcutt on November 06, 2004, 02:35:33 pm
Thanks Joachim, I think now it's time to learn a bit of PHP  ;)
Guilherme
Title: Adding album description to the album thumbs page
Post by: gorcutt on November 06, 2004, 10:38:49 pm
Hi, I thought this would be a not so hard task but I was wrong. At least for me, a complete PHP dumb. Well, I would like to add the album description the album page, on a cell beside the album title. I tried to place the {ALBUM_DESC} tag over there, but as mentioned by GauGau in my previous post, it's not that simple, as this placeholder is not defined at that point.
So I'm here asking if someone fluent in PHP can help me on this task.
Thanks a lot.
Guilherme
Title: Re: Adding album description to the album thumbs page
Post by: Joachim Müller on November 07, 2004, 12:06:59 pm
This is the "feature" requests board. If you read the board's description it should be quite obvious that no actual code will be provided here; instead this sub-board is meant for proposals for new features in future versions of coppermine. Don't expect an answer here with a solution ready to be copied and pasted. In fact I could have moved the other thread you mentioned here if I thought this would have been helpfull.

Joachim
Title: Re: Adding album description to the album thumbs page
Post by: gorcutt on November 07, 2004, 02:56:09 pm
Hey Joachim, so please move this post to the apropriate board please. I'm burning my brains with that code, I'm really in need of some help here.
Thanks.
Guilherme
Title: Re: Trying to add {ALB_DESC} on the thumb page and ...
Post by: Joachim Müller on November 08, 2004, 08:06:37 am
merged the thread from the "feature requests" board into the existing one you started on the same issue.

Joachim