Forums
-
- Forum
- Posts
-
- Installation
- 28,034
- Troubleshooting
- 61,259
- Themes
- 10,269
- Plugins
- 15,092
- Requests & Feedback
- 14,728
- Showcase
- 3,246
-
I knew it was something simple.. some sleep helped me figure out I was missing a ‘global $forum’
I got it working with the following:
In my theme’s functions:
<?php
function show_bblogin() {
global $forum;
if ( $forum ) {
login_form();
if ( is_bb_profile() ) profile_menu();
} else {
echo '<a href="/forum/">Visit the Forum!</a></br>';
}
}
?>
and in my sidebar:
<?php show_bblogin(); ?>
Works like a champ.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS