Custom text boxes on Album pages Custom text boxes on Album pages
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Custom text boxes on Album pages

Started by Tomw, October 13, 2005, 09:21:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tomw


Hi,

I have tried looking for this for a long time in these forums and I can't find anything that says whether this is possible or not, so I'm not sure whether it's a features request or not.
Sorry if it should have gone in another forum.

I would like to be able to do the following:

1. On each individual album page I would like to add a block of introductory text. This may be quite long - ie 500-2000 words and its purpose is to describe the contents of that particular album in more detail than the current fields allow. It needs to sit above the thumbnails on the individual albums page.

2. I would also like to be able to remove the ratings and comments fields from the individual image view pages.


Sorry if I have missed the answers to any of this that have already been posted & thanks for your help.


Stramm


Tomw

Thanks for replying Stramm.

Is there any chance of a bit more information/direction please? I'm very glad that it exists. I worked out the comments/ratings problem, but I
I am on an incredibly slow dial-up connection in Asia - doing some charity work for someone, I have already spent a day looking and I cannot find anything about the extra album description field on the albums thumbnail page.

I'd really appreciate any advice you could offer.

I have created a new Theme (just copied classic) and found what I think is the relevant area in the theme.php file:

// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                        {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="17" /><br />
<!-- END spacer -->

EOT;


Are you saying that someone somewhere has already modified this to write an extra table row/text block above the thumbnails where it it says

<!-- BEGIN header -->
        <tr>
<!-- END header -->


Is this in a particular theme that you know of?

Here is an image of roughly what I am trying to achieve.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.irukandji.co.uk%2F_temp%2Fscreengrab.gif&hash=5238b102d565465b4db254bd93ea1e805bcd2cb8)

Many thanks...




Joachim Müller

a feature request is just that: you request a feature for future versions of coppermine. You're actually asking for support, so I'm moving your question accordingly. Next time, take a look at the sub-board description before posting in it.

Stramm

#4
1. you'll have to be in admin mode, click properties and here you can add a gallery description. By default it's on the right hand of the album preview thumb. To move it above the thumb you'll have to modify theme.php
if youz'd read the docs you'd already know http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#album_prop

2. the docs... they give you the answer here as well. The solution is the 'group control panel' http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#group_cp

edit: sorry missunderstood 1.
If the text is the same as your album description it's doable without a lot of theme modifying. If not then some more code has to be modified. Still not a 'feature' that has to go into the core code but a nice addon. Maybe you'd just wait a lil bit longer if someone comes up with a solution or you ask on the freelancers board