Search Results for 'test'
-
Search Results
-
hi, i’ve installed the latest trunk integrating it with wp mu 2.7.1, the installation finish without problem, but when i try to login with the mu administrator i’m redirected to forum home…
any idea to resolve this problem? thanks!
I tested Vanilla for a while, and liked its simplicity, as do one group I’ve set up a forum for. One neat thing Vanilla has is a Sticky Order plugin. It allows you to drag-move sticky topics in Admin, so that important ones stay where you want them. I can’t find anything like this for bbPress. Is anyone up to creating it? (Hey, _ck_!)
Vanilla’s plugin modifies the sticky db field from 0/1 to 0-9, then uses the value in outputting sticky topics. I’m not up to coding it, but I’m sure many would find it very useful.
I’m interested in anti-spam measures that the moment, with just setting up two forums. I use Akismet and the Human Test plugin. I guess this berk was human (almost), but Akismet hasn’t flagged it as spam and removed it. I get the impression from their site that it should. If it doesn’t flag it, does an admin have to mark it as spam and delete it..?
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.