hide description hide description
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.