1 dananzo May 10, 2010 07:58
3 dananzo May 10, 2010 18:43
Yea, I mean that's kinda what I'm doing now.
I either require login, or I hide the content (posts, pages, links).
The only problem I have with hiding the content is that widgets are still visible. I'd like to hide them too.
4 sam2kb May 10, 2010 22:22
if( is_logged_in() )
{
// Widget container goes here
}
;)
5 dananzo May 11, 2010 09:15
You rock :)
6 ethan5150 Sep 15, 2010 04:45
I'm still confused,
I've put:
$login_required = true)
if( is_logged_in() )
{
// Widget container goes here
}
Into my blog5.php file but now it won't open regardless of whether or not I'm logged in...what am I missing?
7 sam2kb Sep 15, 2010 05:03
Did you reload the skin on Global settings > Skins?
8 ethan5150 Sep 15, 2010 10:46
Just tried that - no dice.
9 bushleaguecritic Sep 15, 2010 15:16
I hope you haven't typed it exactly as you presented it here:
$login_required = true)
if( is_logged_in() )
{
// Widget container goes here
}
If so, you have a stray closing parenthesis at the end of the first line in place of a semicolon.
Notice the difference:
$login_required = true;
if( is_logged_in() )
{
// Widget container goes here
}
10 yabba Sep 15, 2010 17:13
The first line is pointless ;)
¥
11 ethan5150 Sep 15, 2010 23:14
Still not working, tried:
$login_required = true;
if( is_logged_in() )
{
// Widget container goes here
}
and tried:
if( is_logged_in() )
{
// Widget container goes here
}
Both give same problem - blank white page regardless of login status.
There should be 2 ways of blog protection
- display login page for non-members ($login_required = true)
- display blog, widgets, post titles, but hide post content