How do I get rid of too many lines? How do I get rid of too many lines?
 

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

Main Menu

How do I get rid of too many lines?

Started by silly42, November 01, 2010, 04:52:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

silly42

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?

Αndré

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.

silly42

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

Αndré

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;