Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] - Only show page on menu if logged in
#15
Install my component hook plugin

create component called

hook_content-bottom

add this to it

PHP Code:
<?php
// component hook_content-bottom
GLOBAL $id,$url,$GSADMIN;
if(
$url == '404' && $id != $url && is_logged_in()){
  echo 
'<a href="'.get_site_url(false) . $GSADMIN '/edit.php?title=' _id($id) . '">Create Page</a>';
}
?>

Done
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
RE: Only show page if logged in - by Frens - 2016-01-13, 04:40:45
RE: Only show page if logged in - by shawn_a - 2016-01-13, 04:42:43
RE: [SOLVED] - Only show page on menu if logged in - by shawn_a - 2016-01-20, 01:00:08



Users browsing this thread: 1 Guest(s)