coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: silly42 on November 01, 2010, 04:52:36 PM

Title: How do I get rid of too many lines?
Post by: silly42 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?
Title: Re: How do I get rid of too many lines?
Post by: Αndré on November 01, 2010, 05:30:05 PM
Do you want to remove both pagination lines or just the first one?
Quote from: Αndré on November 01, 2010, 10:47:25 AM
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.
Title: Re: How do I get rid of too many lines?
Post by: silly42 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".
Title: Re: How do I get rid of too many lines?
Post by: Αndré 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
        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
        $html .= $tabs;