let me try to better explain the situation... there's actually two thoughts going on in this post... which are addressing both issues i'm having... before i get to the "Down for maintence/work-behind part"
I'm trying to understand the part of turning off articles where only the admin can see...
Well, when i log in, i turn off public/visible for the articles
but when i hit preview it doesn't show the article... just like if you were to visit the site as a guest...
but if i change the article to public and hit preview... then i see the article !!!
I was thinking, i could preview the article regardless if i was admin or logged in user with backend access... if that make sense.... **8looking for the frustrated GRRRRRR icon*** LOL!
how do you disable the site from being seen to work behind
"ohhhhhhhhhhhhhhhh i see" ding ding there goes the bells... now i follow....lol **slaps forehead**DeXXus wrote:Ahhhh...NOPE
Preview means show me how the content will look WITH THE CURRENT SETTINGS (including visble/public, hidden articles and article start dates, ETC).
In other words...WHAT ARE MY VISITORS GONNA SEE.
is there anyway to preview the newly added/updated content without the public being able to see it?
and what's the difference between public & visible??? if either one of these icons are deactivated/red then i can't see the content.. why not just have one "V"
because the only way i can see content period is for both of them is to be green... and i'm thinking admin should be able to see content in the layout regardless..
Re: Down for Maintenance
this worked perfectly for shutting down the site for maintenance!!!Goran wrote:Here's a temporary solution, works fine on my test installation...now you can turn off the phpWCMS frontend for non admin users in conf.inc.php, just set $phpwcms['down_for_maintenance'] to 1.
-----------------------------------------------------------
1. Create html file closed.html in phpWCMS root directory
2. Open config/phpwcms/conf.inc.php and enable sessions in frontend:3. Same file(config.inc.php), add this code under // other stuff group:Code: Select all
$phpwcms['SESSION_FEinit'] = 1;
4. Open index.php and find this line: require_once (PHPWCMS_ROOT.'/config/phpwcms/conf.template_default.inc.php');Code: Select all
$phpwcms['down_for_maintenance'] = 1; // set 1 to disable frontend for non admin users
and add the following code before/above:Code: Select all
if($phpwcms["down_for_maintenance"] && empty($_SESSION["wcs_user_admin"])) { headerRedirect($phpwcms['site'].$phpwcms["root"].'closed.html'); }


