Show Edit Tag To Logged In Admins Only

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
thorny
New Member
New Member
Posts: 5
Joined: Thu Sep 25, 2008 6:25 pm

Show Edit Tag To Logged In Admins Only

Post 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
mike-r

Re: Show Edit Tag To Logged In Admins Only

Post 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.
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: Show Edit Tag To Logged In Admins Only

Post 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'))
Last edited by korpirkor on Sat Dec 20, 2008 7:12 pm, edited 1 time in total.
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
Post Reply

Return to “Modules/Add-Ons”