StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-10-2010, 10:10 PM
custompc1's Avatar
custompc1 custompc1 is offline
Registered User
Pro Plus Member
 
Join Date: May 2010
Location: Ohio, US
Posts: 319
Default

This is the code that works, just sends users to the dashboard instead of where i want them to go.
PHP Code:
<?php
// Template Name: Force Log-in
if(is_user_logged_in()): ?>

<?php
require_once(PARENT_DIR'/index.php');
?>

<?php else:
wp_die('You must first <a href="/wp-login.php">log in</a> to 

view this page.'
);
endif; 
?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make page redirect to wp-login page? Sowpan09 General Discussion 2 01-29-2010 01:15 AM
I give up...please help regarding wp-login.php redirect toomanytoys General Discussion 1 02-13-2009 03:08 AM
Login Redirect eLiasPT General Discussion 11 01-10-2009 10:04 AM


All times are GMT -5. The time now is 06:07 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.