Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Making a 'child page' password protected when it holds a forum


  #1  
Old Mar 31, 2009, 07:27 AM
Steven
 
9 posts · Jan 2009
A unique problem for sure...I have installed a plugin called XDForum. It's almost exactly like this forum...it's cool because it intergrated right into a blog should you have a need for both types of interaction/communication etc.

Herre's my problem/question:

I want my blog to have a totally private bulletin board forum "hiding" in my blog. The public can see a link on the menu/page bar or perhaps a link embeded in a side-bar test widget but if you click on it all you should see is a "password required" message and a box (perhaps some explanitory text). And then you put in a pass word and it takes you to the "secret forum".

I have tried to do this with a simple password protected page but strangly it does not hide the forum...I have also tried a child page but it makes a menu drop down item and I do not want that either.

How could I accomplish this design goal?

My site is:

www.NutritionWire.org and if you or anyone would like to see the forum (before I figure this out and you need a password to see it) just click on the menu bar item that says DACBN Forum.

Thanks Flynn...the checks in the mail!

Last edited by Steven; Mar 31, 2009 at 07:30 AM. Reason: bad punctuation
  #2  
Old Mar 31, 2009, 05:39 PM
Steven
 
9 posts · Jan 2009
By the way...I don't have to use a "Parent and Child" page to do what I want (Hide the page unless you have the secret password to open it)...I just thought that that would be one way to do it.

The forum with in this theme looks so good I can't take how happy I am.

Anyone have any advice on the best way to list a bunch of recipies? I thought it would be cool if I could have a way for my readers to print each one separatly...right now I am just putting them all on one page...take a look at the page called BREAKFASTS...any advice is GREATLY appreciated!

LOOK Here -----> http://nutritionwire.org/healthy-recipies/breakfasts/

There has to be a better way to do this...I didn't want to make each recipie its own page...that dumb, right?

Last edited by Steven; Mar 31, 2009 at 05:41 PM.
  #3  
Old Mar 31, 2009, 06:11 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The following may not work.

The problem is we're going to protect a directory that does not even exist in reality (its just a WP permalink redirection). Protecting a real directory would have been easier.

It may be required to edit the plugin and include a PHP based authentication there, instead of this Apache based directory authentication below:


1.) Create one or several username/password combinations, i.e. here http://www.htaccesstools.com/htpasswd-generator/
paul:mypass123 will become something like
paul:49f8cns83%638d(83hndjdoejdbeiro39ejs

2.) Copy the result, i.e.:

paul:34fi3beck3b5i3hvow3nkef
otheruser:293jfhfeje3fbi347383fz73f
mary:9343jkkfekfekfekf44i43hf3hf3i4fi3

and save it in a file named ".htpasswd"

3.) Upload this file to somewhere OUTSIDE the web accessible area on your web hosting account
(although the passwords are encrypted, but to be sure)

Example:

/var/www/html/clients/paul/nutritionwire.com/_public_html/wordpress installation here
/var/www/html/clients/paul/.htpasswd <-- .htpasswd file outside (= above) _public_html folder

4.) Create a directory "forum" in the Wordpress installation directory
/var/www/html/clients/paul/nutritionwire.com/_public_html/forum/

5.) Create a file named .htaccess with this content (Edit the path in the first line to match the actual location of your .htpasswd file)

AuthUserFile /var/www/html/clients/paul/.htpasswd
AuthName "Any Title, user will see this on Login Form"
AuthType Basic
require valid-user
# Repeating the Wordpress permalinks htaccess here for the forum directory
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

6.) Upload this new .htaccess file to
/var/www/html/clients/paul/nutritionwire.com/_public_html/forum/.htaccess

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove parent slug from child page's permalink? Tarzanna77 Page & Category Menu Bars 9 Aug 21, 2010 01:45 PM
Making a page invisible to public and only accessible though email link animalcommunicator Page & Category Menu Bars 5 May 25, 2010 06:12 AM
[SOLVED] Making Link descriptions appear on page (instead of on hover)? machepap Sidebars & Widgets 1 May 7, 2009 08:31 AM
Trying to convert my page menu bar to the format on my simple machines forum page.. Joelb53 Page & Category Menu Bars 1 Apr 5, 2009 03:01 PM
Page Menu Drop Down Only Showing First 6 Child Pages LabbyRoad Page & Category Menu Bars 4 Mar 11, 2009 11:40 AM


All times are GMT -6. The time now is 11:24 PM.


Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.