Skip to:
Content
Pages
Categories
Search
Top
Bottom

Linking to WordPress


  • xarzu
    Participant

    @xarzu

    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.jpg

    Here is the registration on the bbpress side.

    http://i67.photobucket.com/albums/h292/Athono/WordPress/arguemaxregistration.jpg

    Maybe 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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Why not just a simple .htaccess redirect? Or this: https://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]


    xarzu
    Participant

    @xarzu

    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 .htaccess

    I have created the file, .htaccess and I included the lines

    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?


    zaerl
    Participant

    @zaerl

    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


    xarzu
    Participant

    @xarzu

    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.


    xarzu
    Participant

    @xarzu

    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&#8217; ) ;

    and it works.


    bluesquares
    Participant

    @bluesquares

    This PHP redirect worked beautifully for my exact same situation, thanks.

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar