Search Results for '\"wordpress\'
-
Search Results
-
Hi guys,
This is my first post here, but I’ve been building an wp/bb integrated site for a few weeks now, and I’ve come to the point where I think it’s time to write my first plugin. I want this plugin to redirect users to my WordPress login page if they are not logged in. It is important that the forums remain private and also that there is only one point of entry to the site for users, so as to avoid any confusion.
I have _ck_’s Hidden Forums plugin set up to control access to forums, and that’s working fine, but I need some advice on how to handle an issue or two in the code I’ve written so far. Now, I don’t do a ton of programming, and this is my first attempt at anything like this, so bear with me if I’ve committed any cardinal sins.
<?
add_action('bb_init','login_redirect_init',300);
function login_redirect_init()
{
global $bb_current_user;
$id = (!empty($bb_current_user)) ? intval($bb_current_user->ID) : 0;
if( $id < 1 )
{
$redirection = 'http://'.$_SERVER['SERVER_NAME'].'/caa/wp-login.php?redirect_to='.$_SERVER['REQUEST_URI'];
if (function_exists('status_header'))
status_header( 302 );
header("HTTP/1.1 302 Temporary Redirect");
header("Location:".$redirection);
exit();
}
}
?>As it is now, accessing bbPress redirects to wp-login with the proper redirection URL (I’m using the WP Members Only plugin), but then logging in from there kicks me back to the wp-login page again. I’m thinking that perhaps
bb_initis not the hook for me, as it appears that the login process is not getting a chance to do its thing, and thus I’m getting booted out. As a test, I tried bb_head, but of course the headers have been sent by then, and the redirect does not work.So, if this is in fact the issue, what hook should be using? Or am I going about this all wrong? I’d really appreciate any and all input into this. Thanks, guys.
Topic: Beginner
Ok, I’m just a coding, upload beginner. I have some experience with WordPress, but I use as much none uploading stuff as possible, simply because I’m not familiar with it.
In the install instructions it says upload to the server. I did what I thought was that, but no install page appeared.
I’m just starting my forum out, so it’s a blank canvas. Where do I put the download on my server? Do I need WordPress on the blog to begin with?
I know these are beginner questions, but I’ve been at the beginner stage of many things, and have learned, so if you can help, I’m completely open to learning a new skill.
Thank you.
Topic: looping installation
Hi, I successfully complete the whole installation process of the bbpress but even after a successful installation it always divert me to the installation everytime I visit my forums
http://www.mydomain.com/forums. wordpress mu is install on the root.
plz help me.
thanks
We are considering extending our wordpress site with forum capbilities. The question is whether is possible or not to integrate mailman and bbpress. Any experience?
Thanks in advance.
I am trying to integrate WPMU 2.71, BuddyPress 1.0, and bbpress bbPress 1.0-rc-1.
WPMU and BuddyPress work fine.
BBPress is a nightmare.
It never finishes the installation although it says:
Your installation completed with some minor errors. See the error log below for more specific information.
Key master could not be created!
Forum could not be created!
Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 – Creating database tables
>>> Database is already installed!!!
Step 2 – WordPress integration (optional)
>>> WordPress address (URL): http://lilienbrown.net/
>>> Blog address (URL): http://lilienbrown.net/
>>> WordPress cookie keys set.
>>> WordPress “auth” cookie salt set from input.
>>> WordPress “secure auth” cookie salt set from input.
>>> WordPress “logged in” cookie salt set from input.
>>> User database table prefix: wp_
>>> WordPress MU primary blog ID: 1
Step 3 – Site settings
>>> Site name: Lilien Brown Forums
>>> Site address (URL): http://lilienbrown.net/forums/
>>> From email address: richard@lilinbrown.net
>>> Key master could not be created!
>>>>>> That login is already taken!
>>>>>> Existing key master entered!
>>>>>> Re-setting admin email address.
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email sent
There were some errors encountered during installation!
When I try log in it takes me back to the install page.
Can someone advise how to get out of this loop?
If not how to delete BBpress?
Hello, I have my WordPress installed at root level of my domain.
I have bbPress installed in a directory called forums.
Everything seems to be working fine except when I click on Add New when not logged in.
I am redirected to:
http://domain.com/forum/bb-login.php?re=http://domain.com/forum/?new=1
which brings up my wordpress 404 page.
Removing ?re=http://domain.com/forum/?new=1
from the end of the URL does bring me back to my bbPress login page at http://domain.com/forum/bb-login.php. Any ideas on how to fix this issue?
I’m trying to integrate WordPress 2.7.1 with bbPress 1.0 rc1
I have few of issues going on
1) Logged in as Admin in WordPress, but bbpress doesn’t recognize it. I have to login in again into bbPress.
2) If I log out from bbPress, it logs me out in wordpress too.
3) If I logout from wordpress, it doesn’t log me out in bbpress
4) After integration, users data from bbpress is not shared i.e. only Admin is listed under the bbPress Admin > users. There are 231 registered users in bb_users table.
5) Since users are missing, all the existing posts by the users are displayed as Anonymous
Root cause for all the above – I tried to integrate 0.9.0.4 with 2.7.1 and later realized that its not straight forward process.
I’m trying to get the forum backup and running, atleast map the existing users to their posts.
Thanks for your help.
