2 personman Oct 31, 2005 15:33
![](https://forums.b2evolution.net/media/users/personman/profile_pictures/.evocache/3227909422ccf42e09de.jpg/crop-top-80x80.jpg?mtime=1372015408)
The edit link will be similar. The quickest way to make them go away is to edit the skin and remove the $Item->edit_link(). But you can find the code for this function in /b2evocore/_class_item.php . Looking at that code, it appears that the 'Edit' link won't show up unless the user has a right to edit the post. So you probably don't need to do anything.
There's also an edit_link function in /b2evocore/_class_comment.php
Thanks admin link gone :-)
You da manperson!!!
As for edit link, when I click on it, I'm taken to back office where if I click on edit tab, I get “permission denied”, so it seems that the link shows up even though I don't have permission?
Anyway i did find this code in class_item.php
function edit_link( $before = ' ', $after = ' ', $text = '#', $title = '#', $class = '', $glue = '&' )
{
global $current_User, $admin_url;
if( ! is_logged_in() ) return false;
if( ! $current_User->check_perm( 'blog_post_statuses', $this->status, false,
$this->blog_ID ) )
{ // User has no right to edit this post
return false;
}
if( $text == '#' ) $text = T_('Edit');
if( $title == '#' ) $title = T_('Edit this post');
echo $before;
echo '<a href="'.$admin_url.'/b2edit.php?action=edit'.$glue.'post='.$this->ID;
echo '" title="'.$title.'"';
if( !empty( $class ) ) echo ' class="'.$class.'"';
echo '>'.$text.'</a>';
echo $after;
return true;
}
Somethings not right if it's showing you the link for an item and then giving you an error when you try to edit that item in the backoffice.
First, the Admin link: One quick way would be to take the user_admin_link() function out of your skins. But if you want it to be available to some users, then try this. Open /b2evocore/_functions_users.php and find this around line 450:
change the line that says
to
and only level 2 or higher will see the admin link.