Info
- 8 posts
- 5 voices
- Started 2 years ago by xarzu
- Latest reply from divinicus2
- This topic is not resolved
Linking to WordPress
-
- Posted 2 years ago #
I installed a fresh copy of bbpress and during the installation process I was asked if I wanted to connect it to a wordpress database.
Now, when I register a new account on wordpress, it appears as a new account on bbpress.
But here is the rub. I have added a plug in on the wordpress side on the registration menu. You have to click to agree to some policy. Since this plugin does not exist on the bbpress side, if I register a new account on the bbpress side, and try to use it to log in on the Wordperss side, I get an error that says "you do not have permission to ...."
How do I make the registration I have formed on the WordPress side match the Registraion process on the BBPress side. Although the database is shared according to my tests and how I installed the latest versioin of BBPRess, the registration and login pages are not the samel
Here is the registration on the wordpress side showing my custom plugin
http://i67.photobucket.com/albums/h292/Athono/WordPress/arguemaxregistration2.jpgHere is the registration on the bbpress side.
http://i67.photobucket.com/albums/h292/Athono/WordPress/arguemaxregistration.jpgMaybe there is a way to make the bbpress such that when they click on the login link it directs the user to the login for the wordpress side (and also if they click on the registration link on the bbpress it goes to the registration on the wordpress side). How would I go about changing that? Is it html code or php code? The page http://www.arguemax.com/bbpress-1.0,2-2/bbpress/ has the login and register links the link for login goes to http://www.arguemax.com/bbpress-1.0,2-2/bbpress/bb-login.php and the link for Register goes to http://www.arguemax.com/bbpress-1.0,2-2/bbpress/register.php . How do I change that?
-
- Posted 2 years ago #
Why not just a simple .htaccess redirect? Or this: http://bbpress.org/forums/topic/howto-disable-registration
For .htaccess, something like this in your bbpress folder might help:
RewriteRule ^bb-login.php http://www.arguemax.com/wordpress/wp-login.php [L,R=301] RewriteRule ^register.php http://www.arguemax.com/wordpress/wp-login.php [L,R=301] -
- Posted 2 years ago #
oh.
That is pretty clever. I like that. I think I will use this technique. Now I just need to refresh my memory on how to code .htaccessI have created the file, .htaccess and I included the lines
[code]
RewriteRule ^bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [L,R=301]
RewriteRule ^register.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register [L,R=301]
[/code]
And I gave it a shot, but it did not work. Is there something I need to do such as make the file a certain type or read/write privledge? -
- Posted 2 years ago #
Try:
RewriteRule ^.*/bb-login.php$ http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [R=301,L]or:
Redirect 301 /bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php -
- Posted 2 years ago #
While I try several combinations of this I thought I would throw this out for consideration.
PHP is not like HTML. PHP generates HTML or browser code on the server and spits it out onto the browser on the client side. I am just thinking now that maybe you cannot use this method of redirection because the functionality is overwritten. I am just asking. Has anyone tried this redirection method with PHP before?As I type this, I am deleting the browser histrory/memory to see if that helps because so far this method does not redirect anything.
-
- Posted 2 years ago #
I went the PHP route.
At the top of register.php I put this code:<?php
header( 'Location: http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register' ) ;
and it works.
-
- Posted 2 years ago #
This PHP redirect worked beautifully for my exact same situation, thanks.
-
- Posted 1 year ago #
Xarzu,
I am a total newbie with bbpress and want to integrate to my wp 2.9.2 self-hosted site.
Can you publish a short description of exactly what you did to make yours work properly, either here or you can register on our site and I'll contact you directly?
http://christianteenartists.com/dev
Thank you SO much!
-
You must log in to post.