forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Rheinland on February 27, 2005, 08:24:08 am

Title: Change the captioninformation in the Thumbnail Page
Post by: Rheinland 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;
        }
Title: Re: Change the captioninformation in the Thumbnail Page
Post by: Joachim Müller 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
Title: Re: Change the captioninformation in the Thumbnail Page
Post by: Rheinland 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  :\'(