coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: JBChris on January 10, 2005, 03:56:55 AM

Title: Coppermine's login system
Post by: JBChris on January 10, 2005, 03:56:55 AM
Hey,
I need some help.  I need to take the login system completely off of my photo gallery.  The reason is that it's under a member's area and I need to use the login system that I created.  If this is possible, can I get some tips?

Thanks,
Josh
Title: Re: Coppermine's login system
Post by: donnoman on January 10, 2005, 04:27:28 AM
sounds like your asking for "bridging" which might be your easiest route.

search the forums on bridging and writing custom bridges.
Title: Re: Coppermine's login system
Post by: kegobeer on January 10, 2005, 04:41:56 AM
If you don't need any of the user specific functions, like personal galleries, using groups to allow/disallow access to albums, etc, and you'll just be displaying pictures for your members to see, you can edit the theme and remove the login/logout links.  In theme.php, find

<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->


and change to

<!-- BEGIN login -->
<!-- END login -->
<!-- BEGIN logout -->
<!-- END logout -->


In order to access the admin section, you'll have to create a bookmark/favorite to like this: yoursite.com/coppermine/login.php and another to logout: yoursite.com/coppermine/logout.php.

Make sure you verify your config setting Allow new user registrations is set to no.