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
Show Edit Tag To Logged In Admins Only
Re: Show Edit Tag To Logged In Admins Only
Full ack. The tag is in this time and version not useable.
The edit-tag should normally have an "edit-if-logged-in"-parameter.
The edit-tag should normally have an "edit-if-logged-in"-parameter.
Re: Show Edit Tag To Logged In Admins Only
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'))
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]
Projektowanie stron WWW[/ur]