forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: protox on September 14, 2005, 11:13:30 am

Title: [feat. request] Show only the picture, the comments + emoticons are hided
Post by: protox on September 14, 2005, 11:13:30 am
Ladys & Gentlemen .. Another feature for you :o

Could be great to have a picture without all the disturbing comments and emoticons just under it.
The website which gave me the idea could be browsed here (http://www.joesnyc.streetnine.com/archives/times_square-september_12_2005_38.html)

The comments + emoticons could be visible just after the visitor swaped it by clicking the button " see the [11] comments " for example
Title: Re: [feat. request] Show only the picture, the comments + emoticons are hided
Post by: Tranz on September 14, 2005, 04:52:01 pm
@those who know better: Could this be accomplished with a custom theme?
Title: Re: [feat. request] Show only the picture, the comments + emoticons are hided
Post by: kegobeer on September 14, 2005, 05:08:24 pm
A quick look tells me yes.  In the theme.php file, in function_theme_display_image, just change

Code: [Select]
    echo $pic_info;
    endtable();
    echo "</div>\n";

    starttable();
    echo $comments;
    endtable();

to

Code: [Select]
    echo $pic_info;
    endtable();

    starttable();
    echo $comments;
    endtable();
    echo "</div>\n";