[wp-hackers] Use WP User Validation for Non-WP Pages

Chris Williams chris at clwill.com
Tue Aug 25 02:09:55 UTC 2009


Thanks.  I use page templates in a variety of places in various blogs.  It
was the user validation that I wasn't sure about.  I'll look at your
pointers.

Thanks again.


> From: Glenn Ansley <glenn at glennansley.com>
> Reply-To: <wp-hackers at lists.automattic.com>
> Date: Mon, 24 Aug 2009 16:00:40 -0400
> To: <wp-hackers at lists.automattic.com>
> Subject: Re: [wp-hackers] Use WP User Validation for Non-WP Pages
> 
> I would make these "pages" into Page Templates and then create WordPress
> Pages that use your page templates accordingly.
> Then you can use is_user_logged_in() to decide what you want to do. Place it
> in the content area if you want to display a message or place it in a custom
> function attached to the template_redirect hook if you want to send them
> elsewhere. If you use the template_redirect hook, use the is_page( [page_id]
> ) conditional.
> 
> http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
> 
> 
> Glenn Ansley
> Owner / Developer | FullThrottle Development, LLC
> http://fullthrottledevelopment.com
> http://twitter.com/full_throttle
> (919) 522-1532
> 
> 
> On Mon, Aug 24, 2009 at 2:34 PM, Chris Williams <chris at clwill.com> wrote:
> 
>> Let me clarify, these pages will be fully part of the site, including
>> headers/footers as required, they just won't have a "loop".
>> 
>> Thanks in advance,
>> Chris
>> 
>>> From: Chris Williams <chris at clwill.com>
>>> Reply-To: <wp-hackers at lists.automattic.com>
>>> Date: Mon, 24 Aug 2009 10:23:37 -0700
>>> To: <wp-hackers at lists.automattic.com>
>>> Subject: [wp-hackers] Use WP User Validation for Non-WP Pages
>>> 
>>> I want to have some pages on my site, mostly a WP blog, accessible to
>> only
>>> WP logged in users.  These are not WP pages, but other PHP-coded pages.
>>> 
>>> Pointers to references on how to accomplish this are appreciated.
>>> 
>>> Thanks,
>>> Chris
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list