2013-10-26, 18:02:20
Hi, this is my first post here.
How can I make certain page contents visible to the admin only?
Thanks!
How can I make certain page contents visible to the admin only?
Thanks!
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
|
contents only visible to admin
|
2013-10-26, 18:02:20
Hi, this is my first post here.
How can I make certain page contents visible to the admin only? Thanks!
2013-10-26, 23:13:21
Page options, page visibility, Private
Does anyone even read the wiki ?
2013-10-26, 23:17:04
damn - I guess I should never post before coffee
Thanks!
2013-10-26, 23:20:06
lol, i just looked and its here
http://get-simple.info/wiki/how_to:page_editing although the images and some info is way outdated.
2013-10-27, 10:05:54
2015-09-14, 05:58:06
Hi,
I did actually read the wiki, but either there is a piece of information missing, or something does not work right on my site: Choosing "private", the page gives a 404 when not logged in - fine. But the menu item remains visible. Should it not disappear? I can switch it off, of course, but then the page could not be found anymore at all ... Thanks!
2015-09-15, 04:55:18
(2015-09-14, 05:58:06)wdburgdorf Wrote: Hi, try to get content when you are login into admin area: PHP Code: if (isset($_COOKIE['GS_ADMIN_USERNAME'] == 'admin')){ PHP Code: <?php get_i18n_navigation(return_page_slug(),0,1,I18N_FILTER_MENU | I18N_FILTER_LANGUAGE); ?>
user plugin: scroll to top
2015-09-15, 07:50:06
This is expected, it has always been this way.
You can make your own navigation function and use that instead... just copy get_navigation and a private and logged in check, perhaps you also want a author is user check, we don't know what you want therefore we do not filter them. PHP Code: if ($page['menuStatus'] == 'Y') { |
« Next Oldest | Next Newest »
|