Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Edit this page"
#13
the is a path problem with this plugin.

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 )
Reply


Messages In This Thread
"Edit this page" - by Carlos - 2010-03-15, 02:01:31
"Edit this page" - by Zegnåt - 2010-03-15, 02:13:24
"Edit this page" - by JWH_Matthew - 2010-03-15, 06:08:22
"Edit this page" - by Carlos - 2010-08-13, 01:33:21
"Edit this page" - by Oleg06 - 2010-08-13, 06:03:35
"Edit this page" - by daguy - 2010-08-14, 04:02:31
"Edit this page" - by ccagle8 - 2010-08-14, 12:13:15
"Edit this page" - by Carlos - 2010-08-15, 00:38:50
"Edit this page" - by dominionit - 2010-09-13, 02:43:33
"Edit this page" - by Zegnåt - 2010-09-13, 22:53:27
"Edit this page" - by dominionit - 2010-09-13, 22:57:55
"Edit this page" - by dominionit - 2010-09-14, 14:24:30
"Edit this page" - by El-Cherubin - 2010-10-17, 23:22:36
"Edit this page" - by dominionit - 2010-10-18, 01:59:54
"Edit this page" - by El-Cherubin - 2010-10-18, 02:04:18
"Edit this page" - by Zegnåt - 2010-10-18, 03:07:22
"Edit this page" - by dominionit - 2010-10-18, 04:45:33
"Edit this page" - by dominionit - 2010-10-18, 05:13:45
"Edit this page" - by Carlos - 2010-10-18, 05:48:18
"Edit this page" - by dominionit - 2010-10-18, 05:59:30



Users browsing this thread: 1 Guest(s)