WordPress 3.6
bbPress 2.3.2
I have bbPress and BuddyPress setup on a multisite network with sitewide and group forums. Is it possible to integrate the group forum with a multisite site?
ie.-
XYZ BuddyPress Group = http://mainsite.com/groups/xyz/forum
XYZ Blog = http://xyz.mainsite.com
Can the group forums integrate to the site? So if a post is made on the site it will show back on the group page or if on the group page it will go back to the site?
If that is not possible, is it possible to at least display the group forum data on the subsite with a shortcode or something?
Thanks for any help!
I am having the same problem. I get this error while creating a group from website admin area. When I create group from there it takes me to the front end of website. I gives the error on “Step 3 Forum”.
Here is my setup:
Wordpress 3.6
BuddyPress 1.8
bbPress 2.3.2
BuddyPress Docs 1.4.5
BuddyPress Links 0.8.2
BuddyPress Social 2.0
BuddyPress Wall 0.8.2
Error Source Details:
Type Plugin
Name bbPress
Version 2.3.2
Author The bbPress Community
Path /wp-content/plugins/bbpress
File includes/extend/buddypress/group.php
Full Error Details
Type Fatal Error (E_ERROR)
Message Using $this when not in object context
File /wp-content/plugins/bbpress/includes/extend/buddypress/group.php
Line 461
Type Description This type of error indicates that PHP cannot continue to run the code. Typical causes of this type of error are code bugs that have typos, missing or incomplete files (such as a file that was only partially uploaded), and the code using more memory than it is allowed.
The code you will need to change will be in style.css of your theme. To track down the specific line code, click your cursor on that element, then if you are in firefox, go into to your web developer section, and use inspector or page source.
@Jared Atchison
My formatting.php now looks like this
function bbp_kses_allowed_tags() {
return apply_filters( 'bbp_kses_allowed_tags', array(
// Links
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()
),
// Quotes
'blockquote' => array(
'cite' => array()
),
// Code
'code' => array(),
'pre' => array(),
// Formatting
'em' => array(),
'strong' => array(),
'del' => array(
'datetime' => true,
),
// Lists
'ul' => array(),
'ol' => array(
'start' => true,
),
'li' => array(),
// Images
'img' => array(
'src' => true,
'border' => true,
'alt' => true,
'height' => true,
'width' => true,
),
'br' => array(),
'p' => array(),
'b' => array(),
'input' => array(
'name' => true,
'type' => true,
'value' => true,
'style' => array()
)
) );
}
br tags, p tags and b tags are now working however input is not working. I am not awesome at php so I am just pretty much trial and erroring my way around haha, can you tell me why I cannot get input tags to work with this edit?
Hi, I’m trying to edit the avatar size and get rid of by author in the recent topics widget without messing with core files. I’m new to messing with widgets. I’ve tried a few different methods and nothing has worked.
// Maybe get the topic author
if ( 'on' == $settings['show_user'] ) :
$author_link = bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'type' => 'both', 'size' => 14 ) );
endif; ?>
In wp-content>plugins>bbpress>includes>common>widgets.php
If my question is too much just please point me in the direction for what I need to learn about myself.
Thank you 🙂
That’s a good way of doing things. I simply did it this way, however:
#bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:before {
content: "[Locked]";
text-shadow: 1px 1px 0 #ffffff;
color: #ff0000;
margin-right: 5px;
}
Adds the [Locked] tag before the topic name, in red.
Found it in the old bbpress twenty ten theme. Here it is for anyone who wants it.
Insert this into your template where you want it.
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="topics-front" class="bbp-topics-front">
<div class="entry-content">
<?php the_content(); ?>
<?php bbp_get_template_part( 'content', 'archive-topic' ); ?>
</div>
</div><!-- #topics-front -->
<?php endwhile; ?>
Hi,
Fresh install of bbPress on a fresh install of WP3.5.2 is giving me the same as kiagua:
Warning: in_array() expects parameter 2 to be array, null given in /abcde/htdocs/wp-content/plugins/bbpress/includes/common/functions.php on line 1199
Warning: in_array() expects parameter 2 to be array, null given in /abcde/htdocs/wp-content/plugins/bbpress/includes/common/functions.php on line 1199
Cheers
Andy
Sorry I meant to say recent topics.
Hi guys, I’m having trouble showing the shortcode for recent posts on my home page after I entered in code to get my recent blog posts to show up on my home page.
Here is the code I used for recent posts:
$args = array( 'numberposts' => 3 );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<?php endforeach; ?>
I saw in another topic how to get 10 recent topics on your home page with shortcode, but it didn’t work after the above code. Could someone please help me with the code to get 10 recent topics to appear on my home page?
Using the current versions of wordpress, bbpress and buddypress. Working with a buddypress default child theme. I’m also newer to php, so go easy please 🙂
I’m an absolute novice at any form of programming at all. I don’t know any php and very slightly some css.
The issue i’m having is that the forum isn’t showing up spread across the whole page. It’s showing only in 1 half of the page, it should be showing full like when you go into topics and such.
It can be seen here : http://unitedhumanity.co.uk/?post_type=forum
I’ve spent a few hours now on trying to fix this but no matter what php code I throw in, or whatever css file I copy over in the plugin to theme directories. It’s not working.
Could someone please help me, this is 1 of the very few things left to get sorted on this blog. Would like to thank anyone who contributes in advance.
OK, seems the problem was that at the start of the site upgrade process, the developers upgraded bbPress. As development took 6 weeks, posts kept accruing in the old bb_ tables.
We fixed this by going to
Tools -> Forums -> Import Forums -> Selecting bbPress1 -> Purge previously imported data
-> Selecting bbPress1 -> Importing
-> Repair Forums -> All scripts
Firstly this thread is about an old plugin that is no longer being updated, the core of this code is actually now in bbPress core.
@jooda Yes phpBB import is fixed 100% in bbPress’ built in import tool
@LevyImage You can take a stab at modifying the included ‘Example.php’ included with bbPress to try importing your MyBB forums just as @vogelsang did here for importing from Drupal. There are some basic instructions here on creating your own custom imports for bbPress.
Further information on importing existing forums into be bbPress can be found here:
https://codex.bbpress.org/import-forums
(I’m going to close this topic now, if you have any questions regarding importing please create a new topic)
I have just tweaked your Drupal Importer @vogelsang and updated it with a few tweaks for formatting and a couple of extra fields that you wern’t importing.
Details are in trac here https://bbpress.trac.wordpress.org/ticket/2375
(You can download my updated version directly from here)
There will be an FAQ over here https://codex.bbpress.org/import-forums/drupal
- Forum parents/hierarchy is now imported
- Topic/Reply counts are also imported to help out bbPress counts
- Open or Closed topic status is imported
- Drupal users are also imported BUT passwords need to be manually reset **
** See the FAQ and or Trac Ticket #2375 for details on the imported user passwords issue.
Lastly thanks a heap for doing 99% of the heavy lifting in matching the Drupal database fields, most excellent work on your behalf 🙂
As to the problems you are having with the importer stopping on you could you try to reduce the load on your server by changing the import values for ‘Rows Limit’ and/or ‘Delay Time’ to see if it is a server resource issue or if it stops at the same point there might be some funky data being imported that the importer is getting caught on during import.
Cheers,
Stephen
@fontadoni – Thanks for the info. I have tried several times and not having any luck.
Here are somethings I have tried and still have not been successful:
1. install bbPress 1.2 as a standalone without WP integration on a local test domain (bbpress.dev)
2. Install WP with bbPress 2.3.2 on a local test domain (wordpress.dev) and then tried to do an import from bbPress1, using separate DB tables.
3. installed WP and bbPress 1.2 in another local test domain (wordpressbbpress.dev), using the same DB, and selected the WP integration when I installed bbPress. Then I installed bbPress 2.3.2 and tried to do the import and no joy.
In all the scenarios above, I get the yellow “Starting Conversion” box but then it shows:
Conversion Complete
No replies to convert
Converting topic tags (0 - 99)
Converting topics (0 - 99)
No forum parents to convert
Anyone have any other suggestions? I do have test data entered and forums created for testing but I don’t understand why it doesn’t find them. And yes, I did verify the prefix as bb_
Thanks,
Jeff
bbPress includes a Vanilla Forums importer
The basic instructions are here https://codex.bbpress.org/import-forums/
And specific info for Vanilla here https://codex.bbpress.org/import-forums/vanilla/
Do you try to exclude the code in WordPress Minify 1.2.2?
Well, when you have a forum that is image based, it is a pain to have to use image urls only. We are an art group and showing images is necessary for everything we do. It seems to me like the administrators of each forum should have the ability to decide whether to trust their users or not. I really wish that we could have the TinyMCE for all participants. I tried a couple of different plugins and some could see the editor and others couldn’t. Then, I tried RT-Media’s plugin and test each update of theirs, but it doesn’t work.
A big problem with using image urls (if you can’t load them into wordpress as the admin) is that that image could disappear if the hosting post is deleted or if the site goes down. We are using the GD BBPress Attachments plugin for attachments, which is a nice thing to have, but it does not do well if you are explaining something and showing several images which would be best embedded inside of the text.
I looked everywhere for an explanation of what the symbols mean in this bbpress editor and couldn’t find anything, so I did a demo for our members: http://www.tafaforum.com/user-groups/tafa-forum-help/forum/topic/text-editor-or-wysiwyg/
It’s not intuitive and a couple of the buttons seem to be useless. Most of our members will have no clue as to what they mean and using symbols that are commonly around on text editors would have been helpful.
Things are finally working pretty well, but it’s been quite the long road in getting this set up. I think there should be a warning in documentation on bbpress: “Non-coders beware! You will need coding experience to make this work!”
It makes sense to show the topic title but not the forum title when in BuddyPress group forums. Plain old CSS won’t do the job of hiding just the Forum title as the same HTML is produced for both forum and topic title.
<div id="bbpress-forums">
<h3>forum or topic title here</h3>
...
</div>
I guess this might require creating child theme files of the relevant section…
Hi,
I am having a problem with bbpress forums and buddypress groups. I have activated bbpress and buddypress on a sub-site on my sub-domain (http://community.example.com). In bbpress settings, I selected the checkbox “Allow BuddyPress Groups to have their own forums”. Now in buddypress when I am creating a group, in step 3, I should be able to select a checkbox (Yes, I want this group to have a forum.) to enable forum feature for my group, but for some reason the checkbox is not showing up and I cannot proceed by clicking “Next Step” button. I am using the latest version of BP (1.8), bbpress 2.3.2 and WP 3.5.2. The same setting works just fine on my local XAMPP but it doesn’t work on production server.
Here are some screenshots, this is how step 3 looks now: http://i.imgur.com/sT8jRv9.jpg
And this is how it should be (local is fine): http://i.imgur.com/6mKn4uE.jpg
After this error, when I click on my groups, I can see the group is created with no avatar (because I never got to step 4) and when I click on the group and go to Admin > Forum > Now I see the check box but when I enable it and then select one of my forums from the dropdown and click save, I get this error “Are you sure you want to do this? Please try again.”
When I check my error_log file, I get this error:
[28-Jul-2013 22:51:11] PHP Fatal error: Using $this when not in object context in /public_html/wp-content/plugins/bbpress/includes/extend/buddypress/group.php on line 461
I followed these instructions step by step to create a sitewide forum and forum for my buddypress groups: http://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/
Does anyone have the same issue with buddypress?
Thanks
I looked at template-tags.php and that looks like it is getting the user’s favorites, like it’s getting a list of their favorite stuff.
I’m trying to replace the word “favorites” with a glyphicon – to confirm you’re saying that the get_user_fav_link code is actually the code that puts the word “Favorite” and “Favorited??”
I’m confused by a few things here. How can comment spam also be forum spam? To my knowledge, there’s no way a non-registered user can create topics and replies unless you have the setting enabled in Settings > Forums allowing them to do so.
For right now, you can use the bbp_get_user_topic_count_raw and bbp_get_user_reply_count_raw functions, respectively. These will eventually be replaced with cached functions, probably using usermeta to keep the counts.
Not dead; just resting. A quick search should have lead you to the bbp_get_user_favorites_link function in users/template-tags.php. You can pass your own arguments into it, or you can filter bbp_after_get_user_favorites_link_parse_args to override them.