2010-10-17, 23:22:36
the is a path problem with this plugin.
the function is :
the problem is here :
When you are on a subpage for exemple, the path become mydomain/first-page/subpage/admin/edit.php?... so it's wrong.
Maybe in using GSADMINPATH it will be better (cf http://get-simple.info/docs/plugin-creation )
the function is :
Code:
function content_check($contents){
$tmpContent = $contents;
if (plugin_login_check() == TRUE) {
$slug = return_page_slug();
$tmpContent .= "<br/><p><a href='admin/edit.php?id=$slug'>Edit this Page</a></p>";
}
the problem is here :
Code:
<a href='admin/edit.php?id=$slug>
When you are on a subpage for exemple, the path become mydomain/first-page/subpage/admin/edit.php?... so it's wrong.
Maybe in using GSADMINPATH it will be better (cf http://get-simple.info/docs/plugin-creation )