Only show comments for registered users Only show comments for registered users
 

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

Only show comments for registered users

Started by Gert-Paul, July 17, 2006, 12:39:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gert-Paul

I use Coppermine in a Joomla based community website. Most of the pictures are not visible for the public, but some albums we want to show. For these pictures we don't want that not registered users can read the comments. In the permission settings there is something about not letting the user post comments, but I couldn't find something about not viewing them.

Is there a possibility to solved this without making a hack, or is hacking the core code the only way of solving this problem?

Nibbler

You can modify it via the theme system, which is preferable to modifying core code. Look for theme_html_comments() function in the sample theme's theme.php, copy the entire function into the theme.php of the theme you are using, and add


if (!USER_ID) return '';


in a new line near the top of the function.

Gert-Paul

Thanks. This solved it. I think this can be marked as solved.

Nibbler

Great, thanks for returning and resolving your thread.