Recent Topics

1 May 10, 2010 07:58    

Currently, I'm only running one blog on my b2evo 3.3.3 setup.

What I would like to see is a tab in the Blog Settings that would allow me to change the visibility status of the entire blog in much the same manner one can do with Posts, Pages, etc. That way, someone can come to my website and the skin and layout will be visible, but in order to view any content, they would need to login.

I understand that putting

$login_required = true;

into the top of my index.php file protects the visibility of my site from non-users (and am currently doing this), but that makes the big, white login page the first thing anyone sees when they visit.

I would like the index.php to be visible, just devoid of my posts.
Make sense?

2 May 10, 2010 18:29

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

3 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 May 10, 2010 22:22

if( is_logged_in() )
{
    // Widget container goes here
}

;)

6 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 Sep 15, 2010 05:03

Did you reload the skin on Global settings > Skins?

8 Sep 15, 2010 10:46

Just tried that - no dice.

9 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 Sep 15, 2010 17:13

The first line is pointless ;)

¥

11 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.


Form is loading...