Search Results for '"wordpress"'
-
Search Results
-
Hello 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.
I 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?
I 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 992Hi, 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 thebbp_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.
Hi i installed wordpress multisite, How to use video tags in bbpress replies?
Topic: re-size topic or reply form
Please someone help me to resize topic or reply form.. It’s not editable by css as the file is iframe generated by the js file.. The chrome inspection doesn’t show the location of the file.. I tried everything to find the source file but unsuccessful.. I can go with core edit without hooking with wordpress..
Please help me.. Thank you
I forgot to wait updating wordpress until bbpress was also 4.6 ready.
But I have upgraded to wp 4.6 now already and noticed an error.
When bbpress plugin is activated i cannot upload or find images. The media library keeps on looking for something.
And when uploading i get an error “An error occurred in the upload. Please try again later”.
Does this has to do with the wp 4.6 update?
and is the new bbpress update coming soon?
Topic: Menu Reply Widgets
Love the functionality of bbPress and WordPress. Added the reply widget to my main sidebar, but it only displays what topic is being replied to and who replied. I’d like to be able to show at least a portion of the content from, say, the five most recent posts on the forum. Is there an easy way to do that? Perhaps a plugin/widget I should look at?
My site is FAUOwlAccess.com
Thanks.
Topic: TOPIC FORM RE-SIZE
Hi,
I’ve been trying to reduce the height of topic form (Tinymce) which stands at default 236px height.. I want to reduced them upto 100px.. I have searched all over, seems there is no shortcut solutions.. Can you please point me the file where I can edit that value.. For temporary period, I can touch or change the core files, if needed.
I’m unable to locate the file.. Even not sure if those values comes from wordpress tinymce files under/includes/tinymce or it’s set in within bbpress..
Thank you so much…
Topic: Edit New Topic page
Hello
I’ve searched online but cannot find the answer. Does anyone know how I can edit the New Topic page of my forum: http://psychiatryadvice.com/new-topic/For example, how do I remove the section which requests ‘website’?
Or do you know which file I need to edit?
Thanks!
Wordpress v 4.5.3
bbpress v 2.5.9-6017