Posted on: 10/02/06 06:06pm
By: samstone
As of 1.4.1, I noticed that the CenterBlock's edit link is showing under the block if you have the Staticpages Admin permission. For none admin, it's fine since it doesn't show, but for an admin, the page layout just doesn't look the way it is suppost to because of the additional space under the center block with that "Edit" link hanging there that I would hardly use.
I looked at the codes and couldn't find which part relates to this. Is there anyone that knows where it is in the codes so that I can disable it?
Sam
Where is the CenterBlock Edit Link Code
Posted on: 10/02/06 10:51pm
By: samstone
Found it in /gl/plugins/statipages/functions.inc, around 517. Commented out the following codes. Can't see the need of it at the cost of layout look.
/* Sam commented out to remove edit link under centerblock
if ((SEC_hasAccess ($spresult['owner_id'], $spresult['group_id'], $spresult['perm_owner'],
$spresult['perm_group'], $spresult['perm_members'], $spresult['perm_anon']) == 3) &&
SEC_hasRights ('staticpages.edit')) {
$retval .= '<p align="center"><a href="' . $_CONF['site_admin_url']
. '/plugins/staticpages/index.php?mode=edit&sp_id='
. $spresult['sp_id'] . '">';
$retval .= $LANG_STATIC['edit'] . '</a></p>';
}
*/