forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started 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.
-
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';
}
-
Glad you found the answer. Thank you for resolving your thread.
-
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.