clweed Posted February 21, 2006 Report Share Posted February 21, 2006 There was a code posted on the list last week to hide the access log. Can someone post the code again with a little guidance on where to insert it in the index page.Thanks,Lee Quote Link to comment Share on other sites More sharing options...
Jamie Walker Posted February 21, 2006 Report Share Posted February 21, 2006 Doing a search of the list, I think this should work:<?php if ($currentuser && $allow_edit) {echo "<li> <a href=\"showlog.php\" class=\"lightlink2\"> $text[mnushowlog]</a>";} ?> Quote Link to comment Share on other sites More sharing options...
clweed Posted February 21, 2006 Author Report Share Posted February 21, 2006 Thanks Jamie,Do I insert the code in the index page, if so between which lines?or do I replace an existing code with the new code?Lee Quote Link to comment Share on other sites More sharing options...
Jamie Walker Posted February 21, 2006 Report Share Posted February 21, 2006 In your index.php file:Find and Delete:echo "<li><a href=\"showlog.php\">$text[mnushowlog]</a></li>\n"; Find and insert after:echo "<li><a href=\"suggest.php\">$text[contactus]</a></li>\n";?> Quote Link to comment Share on other sites More sharing options...
Jennifer Crockett Posted February 21, 2006 Report Share Posted February 21, 2006 There was a code posted on the list last week to hide the access log. Can someone post the code again with a little guidance on where to insert it in the index page.Thanks,LeeHere is the code I think you referred to, from Jerry. It says it also hides Administration. I have not tried it and am not able to give any help about where to put it and if to replace anything - I would like to know too!Jennifer<?php if ($currentuser && $allow_edit) {echo "<li> <a href=\"showlog.php\" class=\"lightlink2\">$text[mnushowlog]</a>";} ?><?php if ($currentuser && $allow_edit) {echo "<li> <ahref=\"admin/index.php\" class=\"lightlink2\"> $text[mnuadmin]</a>";} ?> Quote Link to comment Share on other sites More sharing options...
clweed Posted February 22, 2006 Author Report Share Posted February 22, 2006 In your index.php file:Hi Jamie,I'm using a different template and the code is a little different, would you mind looking at my index page and tell me what to delete and where to insert again.Thanks,LeeMy Webpage Quote Link to comment Share on other sites More sharing options...
Jamie Walker Posted February 22, 2006 Report Share Posted February 22, 2006 Lee,Go ahead and send it to me via email [as an attachment] or you can post it here. If you post the text from the file here, please remember to wrap it with this code: [#code] YOUR TEXT HERE [#/code] (delete the # signs and insert your text into the "YOUR TEXT HERE" part.) I'll take a look and see what needs to be changed. Quote Link to comment Share on other sites More sharing options...
mrstucci Posted February 23, 2006 Report Share Posted February 23, 2006 Did someone figure this out? I don't understand code or anything like that but would like to eliminate the Access Log and Administration options on my homepage also. I am using Template 3. I am afraid I need 'spoon fed' directions because I have messed up my site before trying what is supposedly an easy task. Maybe I should just forget it but as my husband says, I like a challenge! Thanks for the help, Judy ??: Quote Link to comment Share on other sites More sharing options...
Jamie Walker Posted February 24, 2006 Report Share Posted February 24, 2006 Did someone figure this out?...I am using Template 3....See my reply to your other post. Quote Link to comment Share on other sites More sharing options...
hyle Posted March 2, 2006 Report Share Posted March 2, 2006 In template 3, this is what I did. It worked pretty good.Find this part at the bottom of index.php<?php if( $currentuser ) { echo "<a href=\"logout.php\">$text[mnulogout]</a> | \n"; } else { echo "<a href=\"login.php\">$text[mnulogon]</a> | \n"; }?> | <a href="showlog.php"><?php echo $text[mnushowlog]; ?></a> | <a href="admin/index.php"><?php echo $text[mnuadmin]; ?></a> | <a href="/mambo/index.php?option=com_comprofiler&task=registers"><?php echo $text[mnuregister]; ?></a></font>Replace with:<?php if( $currentuser ) { echo "<a href=\"logout.php\">$text[mnulogout]</a>\n"; } else { echo "<a href=\"login.php\">$text[mnulogon]</a>\n"; }?> <?php if ($currentuser && $allow_edit){ echo " |  <a href=\"showlog.php\">$text[mnushowlog]</a> \n "; } ?> <?php if ($currentuser && $allow_edit) { echo " |  <a href=\"admin/index.php\">$text[mnuadmin]</a> \n";} ?></a> | <a href="http://www.losdorados.org/index.php?option=com_comprofiler&task=registers" TARGET="_top"><?php echo $text[mnuregister]; ?></a></font> I added one extra portion at the bottom.. Im using Joomla/Mambo and I didnt want the users to register with the TNG registration.. the last part causes them to be redirected to the main registration but causes a complete reload so I dont get a frame in a frame problem. The only site specific part is the URL to my site for the registration link. the </font> isnt part of the code but the original file doesnt have a break to put it on its own line so I just included for easier cut and paste.If you ARE using the default TNG registration leave the administration URL alone.Hyle Quote Link to comment Share on other sites More sharing options...
mrstucci Posted March 2, 2006 Report Share Posted March 2, 2006 Thank you Hyle! Judy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.