Does anybody know how to get the dynamic profile link (username -> profile screen) in the top grey menu just below the green BBS header, top of the page to the right?
Dynamic Profile Link
Published on August 25th, 2016 by s1r0nbreadcrumbs div called before doctype when not logged in signed in
Published on August 25th, 2016 by Joe GreenwoodI have already posted this question, but has not been approved by moderators. Please approve, has been entire day already, thank you.
I have issue where bbPress HTML code is being written above the <doctype> declaration in my page, but this only happens when not logged in / signed in to WordPress. This is for Forums and Topics pages, and none others. When logged in, then HTML code is written in its proper place. I will attach a screenshot showing both instances, the top being when not signed in (HTML is out of place, before <doctype>), the bottom when signed in (HTML is correctly placed in body, and <doctype> comes first as it should).
![]()
Any ideas on where this HTML might be called differently, depending on whether or not user is logged in? I have tried disabling plugins. Perhaps it is something with my theme. My site can be viewed at http://www.lexiconleep.com/forums/forum/leep-questions-answers/ … I wonder if it has something to do with assigning a forum role to anonymous users..? Perhaps anonymous (not logged in) users need to have a forum role … I will look into this. Thanks!
Create new topic with blog comments
Published on August 25th, 2016 by MidouCloudLike i said in the title, i want to create new threads from blog comments. How can i do that?
Forum not accessible in public view
Published on August 25th, 2016 by nallasamyvHello all,
I’ve not been able to find a way to display my forum content to general viewers to my website (without login access). The site link is loveofroad.com/wordpress.
Because of this issue Google is not able to crawl the site and I’m not able to see any of my content in google results.
Need some help in fixing this.
Thanks.
How to target just the forum thread pages for css
Published on August 25th, 2016 by ordresserI want to do CSS for just the forum thread pages themselves (ie if I change the title color, I don’t want that change to apply to the list of forums or to other parts of my WordPress theme).
I’m working in the style.css file. How can I target bbpress’s templates and pages.phps?
Create Groups and Forums for groups from PHP
Published on August 24th, 2016 by thegarnetI found the excellent article by Tanner Moushey on how to create groups programmaticaly: https://tannermoushey.com/2014/08/create-groups-buddypress/
However I also need to create a forum for each group, and I can’t get his suggestion of using groups_new_group_forum to work. I read other posts of getting function doesnt exist error for bp_forums_new_forum (which groups_new_group_forum calls), but I believe I found the right requires to get that function, and everything it depends on, but now I am getting an error about null several layers down within bb code.
Here is my code so far:
<?php
/* Show the errors in browser */
error_reporting(E_ALL);
ini_set('display_errors', 1);
/** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/../admin.php' );
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
wp_dashboard_setup();
do_action('bbpress_init');
?>
<H1>Add Groups</H1>
<?php
$args = array(
'group_id' => 0,
'creator_id' => 0,
'name' => 'California',
'description' => 'For people located in California',
'slug' => 'california',
'status' => 'public',
'enable_forum' => 1,
'date_created' => bp_core_current_time()
);
?>
<p>Creating group '<?php echo $args[name] ?>'</p>
<?php
$newgroupid = groups_create_group($args);
?>
<?php
////////////////////////////
// Now creating a new forum
// Not needed for get groups_create_group - this already got included
// require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-groups/bp-groups-forums.php');
// For bp_forums_new_forum
require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bp-forums-functions.php');
// For bb_new_forum
require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/class.bb-walker.php');
require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php');
// For bb_current_user_can
require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-capabilities.php');
// Example from: http://buddypress.wp-a2z.org/oik_api/groups_new_group_forum/
$newforumid = groups_new_group_forum($newgroupid,'California','For people located in California');
?>
<table>
<tr><td>Newly created group id:</td><td><?php echo $newgroupid ?></td><td>Groups</td>
</tr>
<tr><td>Newly created forum id:</td><td><?php echo $newforumid ?></td><td>Forums</td>
</tr>
</table>
It throws this error:
Fatal error: Uncaught Error: Call to a member function get_var() on null in /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php:992 Stack trace:
#0 /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bp-forums-functions.php(123): bb_new_forum(Array)
#1 /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-groups/bp-groups-forums.php(47): bp_forums_new_forum(Array)
#2 /Users/eyespider/projects/justiceserved/local/wp-admin/custom/add-groups2.php(67): groups_new_group_forum(38, 'California', 'For people loca...')
#3 {main} thrown in /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php on line 992
Site Role
Published on August 24th, 2016 by starry_sky_89How do you change a user’s default site role? I have a site that needs the site role changed.
button for create topic
Published on August 24th, 2016 by andrewkusumahow to make button to show topic form and hide it before user click button. If user not login. User will get notice to register and login first.
Someone can help me about it?
example is http://www.alodokter.com/komunitas/diskusi/penyakit/
buat pertanyaan is button for showing topic form.
bbp_get_user_role_map filter not working
Published on August 24th, 2016 by ptrck_rHi, I added a new wordpress role and would like it to map new users not to the participant role but rather to spectator.
So I added this filter in my functions.php.
add_filter('bbp_get_user_role_map', 'assign_spectator_role');
function assign_spectator_role($roles) {
$roles['mynewrole'] = bbp_get_spectator_role();
return (array) $roles;
}
Problem is that this filter does not get executed.
If I add my role directly in the bbp_get_user_role_map function it works but not with the filter.
The tools function ‘remap_roles’ also works fine.
Any ideas how I can get it to work?
Cheers.
How to use video tag in bbpress?
Published on August 24th, 2016 by Willson RHi i installed wordpress multisite, How to use video tags in bbpress replies?