coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: blue_eyed_devil on August 19, 2012, 02:05:53 PM

Title: hide description
Post by: blue_eyed_devil on August 19, 2012, 02:05:53 PM
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.
Title: Re: hide description
Post by: blue_eyed_devil on August 20, 2012, 07:51:34 PM
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';
            }
Title: Re: hide description
Post by: Jeff Bailey on August 20, 2012, 08:54:49 PM
Glad you found the answer. Thank you for resolving your thread.
Title: Re: hide description
Post by: Αndré on August 27, 2012, 04:04:51 PM
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.