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: Change the captioninformation in the Thumbnail Page  (Read 2679 times)

0 Members and 1 Guest are viewing this topic.

Rheinland

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Change the captioninformation in the Thumbnail Page
« on: February 27, 2005, 08:24:08 am »

Hello again  ;D ,

i hope im right in this board with my question. i would change the caption information under the thumnails. now i find the place in the functions.inc.php file here i can replace the title with the filename (line 5 and line 8 ). then i find the place where the ' - ' is input between the filename and the hits in line 11 " – ". but what have i put input to make a break on the same place that under the thumbnail the filename is in line 1 and the hits are in line 2.

thank you for your help.

regards

Andreas

PS: Gibt es auch irgend wo ein deutsches Supportforum. Mein englisch ist dermassen eingeschlafen, dass ich arge Probleme habe das Board hier zu lesen und ich befürchte, dass ich viele Lösungen für meine Probleme einfach nicht erkenne.

Danke und Gruss


Code: [Select]
// Set picture caption
                if ($set_caption) foreach ($rowset as $key => $row){

                        $caption = "<span class=\"thumb_title\">";
                        $caption .= ($rowset[$key]['filename']||$rowset[$key]['hits']) ? $rowset[$key]['filename'] : '';

            if ($CONFIG['views_in_thumbview']){
               if ($rowset[$key]['filename']){$caption .= "&nbsp;&ndash;&nbsp;";}
            $caption .= sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits']);
            }
                 $caption .= "</span>";


                        if ($CONFIG['caption_in_thumbview']){
                           $caption .= $rowset[$key]['caption'] ? "<span class=\"thumb_caption\">".bb_decode(($rowset[$key]['caption']))."</span>" : '';
                        }
                        if ($CONFIG['display_comment_count']) {
                                $comments_nr = count_pic_comments($row['pid']);
                                if ($comments_nr > 0) $caption .= "<span class=\"thumb_num_comments\">".sprintf($lang_get_pic_data['n_comments'], $comments_nr )."</span>";
                        }

                        if ($CONFIG['display_uploader']){

          $caption .= '<span class="thumb_title"><a href ="profile.php?uid='.$rowset[$key]['owner_id'].'">'.$rowset[$key]['owner_name'].'</a></span>';
                        }

                        $rowset[$key]['caption_text'] = $caption;

                }

                return $rowset;
        }
« Last Edit: February 28, 2005, 08:27:17 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change the captioninformation in the Thumbnail Page
« Reply #1 on: February 27, 2005, 09:04:36 am »

i hope im right in this board with my question. i would change the caption information under the thumnails. now i find the place in the functions.inc.php file here i can replace the title with the filename (line 5 and line 8 ). then i find the place where the ' - ' is input between the filename and the hits in line 11 "&nbsp;&ndash;&nbsp;". but what have i put input to make a break on the same place that under the thumbnail the filename is in line 1 and the hits are in line 2.
The html code for a new line / line break is <br />

PS: Gibt es auch irgend wo ein deutsches Supportforum.
nein, Begründung hier: http://forum.coppermine-gallery.net/index.php?topic=12296.0

Joachim
Logged

Rheinland

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Change the captioninformation in the Thumbnail Page
« Reply #2 on: February 27, 2005, 12:05:49 pm »

thank you again,

<br /> works fine. I try it befor with <br>. And this wouldnt work.

About the german Supportforum  :\'(
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.