2010-04-17, 06:36:22
Anyone have any ideas for how to create a password protected page? Or possibly a redirect to a "hidden" page (not listed in the menu)? or a Plugin?
thanks!
thanks!
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
|
Password Protected Page
|
2010-04-17, 06:36:22
Anyone have any ideas for how to create a password protected page? Or possibly a redirect to a "hidden" page (not listed in the menu)? or a Plugin?
thanks!
2010-04-17, 06:57:23
Hey,
This is how I did it on one of my sites, needed some quick and easy. You'll need Customfields plugin installed... setup a new field as a dropdown with one option"protected" and a second textfield called "password" Change your template file where you echo the page content to Code: if (returnCustomField('pagetype')=="protected"){ The content of protected.php is Code: <?php Could probably be coded a lot better but he needed something fast and this works for him... Hope it helps... Mike....
2010-04-17, 06:59:59
n00dles101 Wrote:Hope it helps... As ever, awesome! Thanks - will try it out. |
« Next Oldest | Next Newest »
|