hide description hide description
 

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

hide description

Started by blue_eyed_devil, August 19, 2012, 02:05:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blue_eyed_devil

Is there any way How I can hide album description from guests? I was looking for hide bbcode but it seems that nothing like that exists for coppermine.

blue_eyed_devil

I see that I have to answer myself :D

so open the file include/themes.inc.php.

FIND (2 occurences)

        foreach($alb_list as $album) {
            $count ++;


AFTER ON NEW LINE ADD

//to hide description from unlogged users
            if(!USER_ID){
                $album['album_desc'] = '<a href="login.php?referer=index.php">Login</a> or <a href="register.php">Register</a> to see the Download Link';
            }

Jeff Bailey

Glad you found the answer. Thank you for resolving your thread.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

ΑndrĂ©

Quote from: blue_eyed_devil on August 20, 2012, 07:51:34 PM
open the file include/themes.inc.php.
Even better: copy the needed functions from themes/sample/theme.php to your theme's theme.php file and apply the modification in that file.