forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: rwhmur on August 08, 2011, 04:25:26 pm

Title: Comment _ to _ of _
Post by: rwhmur on August 08, 2011, 04:25:26 pm
This is written twice on each of my image pages, once at the top of the comments and once at the bottom of the comments. Is it possible to delete the one on the top?
Title: Re: Comment _ to _ of _
Post by: rwhmur on August 09, 2011, 05:58:53 am
I'm using the "curve" theme at http://weestyles.com/gallery
Title: Re: Comment _ to _ of _
Post by: Αndré on August 10, 2011, 05:39:45 pm
You're using a custom theme and I can see that line only once. Is this issue already solved? If so, please mark this thread accordingly.

Btw: Nice theme - I like it very much. Do you want to share it with the community? :)
Title: Re: Comment _ to _ of _
Post by: rwhmur on August 11, 2011, 03:16:43 pm
It's a customized version of "curve," and I'd be happy to share once it's finished (I've gotten a lot of requests, actually). The following image has a comment and shows the line twice: http://weestyles.com/gallery/displayimage.php?album=toprated&cat=0&pid=46#top_display_media
Title: Re: Comment _ to _ of _
Post by: Αndré on August 11, 2011, 03:47:17 pm
Ah, sorry. I initially misread your issue. It's a feature that this line will be shown twice: once at the top of all comments, once at the bottom of all comments. It's useful if you have a lot of comments below a file.

If you want to remove it anyway, have a look at the function theme_html_comments, especially at the following lines:
Code: [Select]
$html .= ($tabs = ob_get_clean());
Code: [Select]
$html .= $tabs;
Title: Re: Comment _ to _ of _
Post by: rwhmur on August 12, 2011, 04:52:33 pm
Thanks! I put
Code: [Select]
$html .= ($tabs = ob_get_clean()); where
Code: [Select]
$html .= $tabs; was and it worked great.