Jump to content
TNG Community

Hiding Access log


clweed

Recommended Posts

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

Link to comment
Share on other sites

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>";} ?>

Link to comment
Share on other sites

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";
?>

Link to comment
Share on other sites

Jennifer Crockett

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

Here 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> <a

href=\"admin/index.php\" class=\"lightlink2\"> $text[mnuadmin]</a>";} ?>

Link to comment
Share on other sites

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,

Lee

My Webpage

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :???:

Link to comment
Share on other sites

Did someone figure this out?...I am using Template 3....

See my reply to your other post.

Link to comment
Share on other sites

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 "&nbsp;|&nbsp <a href=\"showlog.php\">$text[mnushowlog]</a> \n ";

} ?>

<?php

if ($currentuser && $allow_edit) {

echo "&nbsp;|&nbsp <a href=\"admin/index.php\">$text[mnuadmin]</a> \n";}

?>

</a> &nbsp;|&nbsp; <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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...