Hi, since updating everything is working fine except the reply box for the forum isn’t re-sizing. I think it’s the wp-bbp_reply_content-editor-container. Sorry, new to this.
I’m using wordpress 3.5 and bbpress 2.2.3 with the standard bbPress (twenty ten) theme. Anybody any ideas?
http://userdrivendesign.org/?topic=music-assistive-technology
Thanks
Karl
This is a function of BuddyPress, that turns profile data into searchable links. Google around how to remove this; there are a few tutorials, and a page in the BuddyPress codex.
I guess it would be something like this (still not working though – incorrect loop?)
Code example: http://pastebin.com/FnX6cfRK
Hey all,
Since there is no support for “Categories” so to speak.. what i would like to do is create a custom main forum page and insert the forums manually… Now i know this can be done with shortcodes in posts and pages like as follows:
[bbp-single-forum id=32]
But what i am wondering is how would one go about inserting single forums into the BBpress .php template files.. for example the template content-archive-forum.php has the following php code which displays all forums:
I would like to edit this file and insert forums manually.. is there a php version / code like the shortcodes to insert single forums ?
Regards, Darren
Hello,
I am using skematiktheme.com wordpress theme, which is also styled for buddypress. I also have the lastest version of buddypress, bbpress, and wordpress installed.
Not sure if I should be asking this in the buddypress forum or not, because most of the changes are related to bbpress forums which are integrated with buddypress.
I want to change the font size. In general I just need to change the font size for the text in the body of posts, but it would be good if I could bump everything up by 4px. How do I change that?
Can someone help me by explaining it in simple step-by-step language?
For example: go here, then type this code here, and then change this, etc….
Thanks,
Ben
i am using another plugin (codepress admin columns) that calls do_action(‘load-edit.php’) to load all the plugins to get some info – namely custom columns. since and update to both – which, ironically both updated today – i get this error:
Fatal error: Call to undefined method stdClass::add_help_tab() in /home/content/…/wp-content/plugins/bbpress/includes/admin/forums.php on line 118
And if I get past that error, it’s the same thing for admin/topics.php and admin/replies.php.
What I have traced it to is this:
private function bail() {
if ( !isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) )
return true;
return false;
}
For some reason bail() is not bailing. I – the user – am on options-general.php?page=codepress-admin-columns, and yet bail() thinks the current screen’s post type is ‘forum’ (or topic or reply).
I’m thinking this is a naming convention problem? Why else would get_current_screen return as a ‘forum’ post_type when I’m no where near the forum – I’m just loading it to read some data.
Thanks for any info.
Managed to make it work using this 2 functions:
function remove_bbpress_forum_freshness_date() {
return '';
}
add_filter('bbp_get_forum_freshness_link', 'remove_bbpress_forum_freshness_date');
function remove_bbpress_topic_freshness_date() {
return '';
}
add_filter('bbp_get_topic_freshness_link', 'remove_bbpress_topic_freshness_date');
But now i’m thinking to do something else. Instead of removing the date i want to rename it to something like “View Post”. The freshness date already links to the last post by default so i just want to rename it.
Do you know how can i do this?
I tried to use div.forums-topic-datetime with display: none; but i can’t get it to work. Can you please post the whole code? I’m fairly new to CSS.
Regarding the PHP filers…I’m not sure how to do this either. Any help would be greatly appreciated.
There is a plugin that addresses the first issue.
https://wordpress.org/extend/plugins/bbpress-private-replies/
Not sure of an easy way to restrict posting a thread without a few chunks of custom code.
Hi everyone,
I want to remove the last post date from my bbpress forum and topic pages:
I want only this to show up:
Freshness
[AVATAR IMAGE] Username
Basically i want to get rid of the date. I tried using CSS with this code:
li.bbp-forum-freshness a,
li.bbp-topic-freshness a{
display: none;
}
But it hides both the date and the username.
So, how can i hide only the date and leave the username?
Please help.
Hi,
I have a section of my site where I list recent forum posts on the page (among other things) What I’d like to do is add another section that’s more specific, i.e. listing recent posts to a specific forum.
Is it possible to modify the code below to look in specific forums?
$args = array('post_type' => 'topic', 'posts_per_page' => 5);
$forum_topics = new WP_Query($args);
Hi,
I saw somwhere a topic about Forums, Topics and Replies somwhere in the forum and want to confirm that it exists even in just releases 2.2.3. In admin and on frontend bbpess post types labels don’t get translated (tested on 2 different sites, translated in 2 different tools, my language uses extended latin chars).
Another issue is with the User profile rules (permalinks, line 873 in bbpress.php). It’s possible to filter rewrite rules for user favorites and subscriptions but topics and replies (and it’s pagination) are hardcoded, even if there are functions available to use instead (and filter if needed)
I want to change the output of the “Code” editor button of the bbpress plugin to use my custom shortcode for posting code in the forums. How can I do this? I’m unable to find any reference to the buttons in any of the templates.
Ah in that case, I think thats great. Since the author is the primary content creator of the thread, all things considering, I think it will work well.
You should considering polishing up that code and releasing it as a bbPress plugin on the WordPress.org plugin repository 🙂 You’d have to dynamically hook into the user edit page and maybe a few other changes, but the base of the work there is probably done.
So here is how I would do it (I think) if I wanted something easy yet half way elegant.
I’d create a /login page in WordPress that has a custom page template (page-login.php) that contains some custom stuff. It still breaks the process up into two parts, which is not ideal, but its the easiest way without putting in some time to get around that.
Essentially, it would be something like this. First ask for the customer ID. They enter that in and submit it. If it’s valid then reload the page and show the bbPress login.
if ( isset( $_GET['cid'] ) && !empty( $_GET['cid'] ) ) {
// cid (customer ID) is present, show the bbPress login form
echo 'Please enter your username and password to complete the login process';
echo do_shortcode('bbp-login');
} elseif ( $_GET['error'] == true ) {
// cid entered was not valid
echo 'The customer ID you entered is not valid.';
} else {
// cid is absent so show the form to validate it
// do your custom form here that asks for the customer ID. Then if the customer ID
// is correct/valid reload this page like /login?cid=123456 which will show
// the bbPress login form.
}
Another option would be on the first form to ask for the username. Then you could take that and have it auto fill in on the login form using the WordPress login form function (wouldn’t be able to use the bbPress shortcode for this).
Jared, thanks for the feedback. The more I thought about it, about a thousand different ways to do it popped into my head as well (spun my brain into a scrambled egg). At this point, I’ve basically started to write the custom login from the ground up. I’m going to create a shortcode out of it at the end.
I just started it but so far I just have the basic connection and query going:
function restrictForum(){
$db_name = 'dbname';
$con = mysql_connect("URL","username","password*");
mysql_select_db("$db_name")or die("cannot select DB");
$cust_no = $_POST['custno'];
$sql = "SELECT * FROM customer_data WHERE customer_number = $cust_no";
echo('Customer #');
}
I previously had this small bit into a shortcode that just checked if the user was logged in then provided the bbpress login form if they weren’t:
function restrictForum(){
if(!is_user_logged_in()){
echo('You must login to access the forum');
echo do_shortcode('[bbp-login]');
}
}
add_shortcode('forum-login-restrict','restrictForum');
The thing that makes inline images tough is non-admin users cannot use the tag and shortcodes are not an option.
Currently there is an issue on trac (#1916) that would make it where img tags do not get filtered out. Once that’s done it would open the gate for plugins to handle inline images pretty easily.
That’s interesting, but not quite the approach he was asking about (from my understanding).
I think he was referring to the google rich snippets that show up if the page supports the appropriate meta (http://yoast.com/push-rel-author-head/)
You could use a good chunk of the code that is posted above (the part where it sets up a field for google+), then on topic pages get the topic user’s ID, and use that to put in the line above.
I think the only way to do what you want wil be using a completely custom login form that you pass to your own server for validation. You won’t be able to use the WordPress login form (or the function that generates it) at all.
There are about a dozen different ways you can take this based on the 5 minutes I’ve thought about it. Really just depends if you’re going for elegant, easy, or some where in between. It’s going to take custom code regardless.
Thanks guys – what ended up working was putting BOTH of those codes in the css. One or the other alone didn’t do anything. CSS is weird haha. Anyway, problem solved, looking forward to the next update!
I got it to work in firefox by adding this when I had the same problem at appglobe.com:
#bbpress-forums .bbp-user-section ul.bbp-topics {
float: left !important;
width:100% !important; /*forgot this one on my last post @mamasaywhat */
}
Try that or the code above by Jared Atcihison and it should work in firefox.
the bad tweak :
function bbp_filter_blog_editable_roles( $all_roles = array() ) {
// Loop through bbPress roles
foreach ( array_keys( bbp_get_dynamic_roles() ) as $bbp_role ) {
// Loop through WordPress roles
foreach ( array_keys( $all_roles ) as $wp_role ) {
// If keys match, unset
if ( $wp_role == $bbp_role ) {
//unset( $all_roles[$wp_role] );
}
}
}
return $all_roles;
}
bbpress/core/capabilities/
And then Moderators are back……. I’m sure i missed something but plugins like “members” don’t do the trick. And i just want basic forum moderation works now.
I will never understand why endusers have to put their hands in the mess of bbpress and hack/tweak it just to use this plugin >:( I can’t trust in your plugin every updates are hell.
Then, don’t work as a dirty pig, and update the doc when you change such important things like roles! It just a little more repectfull for end users.
It’s a Firefox problem. All other browsers should show it correctly. Will be addressed in 2.3.
Until then, this should fix it.
.bbp-user-section {
overflow: auto;
}
Oh, I see I forgot a “{” in my first code….it should be:
#bbpress-forums .bbp-user-section ul.bbp-topics {float: left !important;}
Try this at the bottom of your CSS file:
#bbpress-forums .bbp-user-section ul.bbp-topics
float: left !important;
}