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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.