Page 1 of 1

Show Edit Tag To Logged In Admins Only

Posted: Mon Nov 10, 2008 8:03 pm
by thorny
Hello there,

I was wondering if there was a way to only show the {edit} tag to the admins that are logged in rather than everyone that visits the site, i just see it as rather ghastly and dont want any visitors trying to get into the site. If you do have any ideas on how to do this then please submit them below or PM me.

Many Thanks
Thorny

Re: Show Edit Tag To Logged In Admins Only

Posted: Sat Dec 06, 2008 3:35 pm
by mike-r
Full ack. The tag is in this time and version not useable.

The edit-tag should normally have an "edit-if-logged-in"-parameter.

Re: Show Edit Tag To Logged In Admins Only

Posted: Sat Dec 20, 2008 4:24 pm
by korpirkor
everything is in plugins/function.edit.php.
In CMSMS 1.2 it worked fine, but in current version not.

I think, i found a solution for this problem:

--[ Find ]--
if (!check_permission(get_userid(false), 'Modify Any Page')
    && !quick_check_authorship($gCms->variables['content_id'],
       author_pages(get_userid(false))))

--[ Replace By ]--
if (!check_permission(get_userid(false), 'Modify Any Page'))