Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Custom text boxes on Album pages  (Read 3398 times)

0 Members and 1 Guest are viewing this topic.

Tomw

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Custom text boxes on Album pages
« on: October 13, 2005, 09:21:42 am »


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.

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Custom text boxes on Album pages
« Reply #1 on: October 13, 2005, 01:12:15 pm »

already possible

Tomw

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Custom text boxes on Album pages
« Reply #2 on: October 14, 2005, 08:05:30 am »

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:

Code: [Select]
// 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

Code: [Select]
<!-- 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.

(http://www.irukandji.co.uk/_temp/screengrab.gif)

Many thanks...



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom text boxes on Album pages
« Reply #3 on: October 14, 2005, 08:17:47 am »

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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Custom text boxes on Album pages
« Reply #4 on: October 14, 2005, 02:48:03 pm »

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
« Last Edit: October 14, 2005, 02:55:10 pm by Stramm »
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 22 queries.