coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: ipodlounger on February 24, 2004, 09:59:12 AM

Title: [solved]: getting rid of the Login link in {MAIN_MENU}
Post by: ipodlounger on February 24, 2004, 09:59:12 AM
how can i get rid of the Login link in {MAIN_MENU} navigation...

i tried deleting it from theme.php but it gave me an error when trying to login... it was looking for the Login link in theme.php but was not found due to commenting it out...

thanks
Title: [solved]: getting rid of the Login link in {MAIN_MENU}
Post by: Joachim Müller on February 24, 2004, 10:14:27 AM
you mustn't delete the comments surrounding the actual html link (is needed for theme.php to actually find it's way round).
To remove the login link, edit /themes/yourtheme/theme.php and find<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
and replace it with<!-- BEGIN login -->
                        <!--<a href="{LOGIN_TGT}">{LOGIN_LNK}</a>-->
<!-- END login -->

You can even replace it with<!-- BEGIN login -->
<!-- END login -->
, but you can not just delete it!

GauGau
Title: [solved]: getting rid of the Login link in {MAIN_MENU}
Post by: ipodlounger on February 24, 2004, 09:14:45 PM
Thank you... worked perfectly.