Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I force a login?


bgrun80
Participant

@bgrun80

Thanks for the quick replies.

@modemlooper: When I tried your code, it gave me this…
Warning: Division by zero in C:xampplitehtdocswp-contentthemespartyhookupsindex.php on line 10
Warning: Cannot modify header information – headers already sent by (output started at C:xampplitehtdocswp-contentthemespartyhookupsindex.php:4) in C:xampplitehtdocswp-includespluggable.php on line 890

@Jalien: I will give it a shot, but I’d really prefer to use my own code and keep plugins to a minimum

I tried this and it worked, but I’m wondering if it will break something else or if it’s bad programming practice. Any thoughts?

if ( !is_user_logged_in() ) :
global $bp;
$bp->signup->step = ‘request-details’;
locate_template( array( ‘registration/register.php’ ), true );
else :
index.php as usual

Skip to toolbar