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: How do I get rid of too many lines?  (Read 3250 times)

0 Members and 1 Guest are viewing this topic.

silly42

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
How do I get rid of too many lines?
« on: November 01, 2010, 04:52:36 pm »

In this page, the comment-page, I would like to rearrange tings... where do I do that?

i would like the comments to be directly under the picture,  the "Kommentarer 1 til 1 fra 1" line should disapear, for som reasom there are two of them.

So the way I want this page shown is:
Picture
Comment
Write Comment
pagenr (If I HAVE to have it, would prefer not to have more than the one page.

http://cb70bd357179ff53d4c9eeb01622a6d768db3686.web16.temporaryurl.org/displayimage.php?album=lastcom&cat=0&pid=1&msg_id=1&page=1#comment1

Is this possible?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How do I get rid of too many lines?
« Reply #1 on: November 01, 2010, 05:30:05 pm »

Do you want to remove both pagination lines or just the first one?
If you remove that line nobody can view older comments that are on page 2 etc. Of course you can increase the 'Comments per page' setting.
Logged

silly42

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How do I get rid of too many lines?
« Reply #2 on: November 01, 2010, 06:31:39 pm »

I would like to remove both, we have never had more than 30 comments on one picture, so I don't need more than one page. I will just increase "comments per page".
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How do I get rid of too many lines?
« Reply #3 on: November 02, 2010, 10:15:15 am »

Open themes/<yourtheme>/theme.php and make sure the function theme_html_comments exists. Then, find and comment out
Code: [Select]
        ob_start();
        echo '<br />';
        starttable();

       
        echo '<tr><td class="tableh2"><div style="float: left">'.$lang_display_comments['comment'].' '.sprintf($lang_display_comments['comment_x_to_y_of_z'], ($start+1), min($num, $start+$limit), $num).'</div>';
        echo '<div style="float: right">'.$lang_display_comments['page'].': ';
        $links = array();

        for ($i = 1; $i <= $max; $i++){
            if ($i < 5 || ($i > $max - 5) || (($i > $page -5) && ($i < $page + 5))){
                $links[$i]= '<a href="displayimage.php?pid=' . $pid . '&amp;page='.$i.'#comments_top">'.$i.'</a>';
            }
        }

        $links[$page] = "<b>$page</b>";
        echo implode(' - ', $links);
        echo '</div></td></tr>';

        endtable();
        echo '<br />';
        $html .= ($tabs = ob_get_clean());
and
Code: [Select]
        $html .= $tabs;
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.