I have added a custom field to user profiles in bbPress however I am unsure how to do form validation other than javascript. I would like to do some PHP validation however the few things I have tried didn’t work.
If you fail to enter an email it will say “ERROR: Please enter an e-mail address.” after you have submitted the form. I want something like that.
I have tried:
$myErrors = new WP_Error();
$myErrors->add(‘id_error’, __(‘Test error.’,””));
bbp_add_error( ‘bbp_steamid_invalid’, __( ‘ERROR: The ID you entered is invalid.’, ‘bbpress’ ) );
I am not at all familiar with error handling in both WordPress and bbPress however I feel it is a must.
Any help would be must appreciated.
I just activated the bbpress plugin for my wordpress blog (i’m using latest version of wp and the twenty-ten theme).
I created a “test” forum with two topics.
I then created a new Page and titled it Forum.
I tried to get my test forum with two topics to show up on the new Page, but can’t get it to work.
I can see the Forum with two topics that I created when I click on View Forum button.
So, I guess my question is: How do I get a navlink titled Forum in my navbar and/or sidebar on my WordPress site?
What am I missing? I’ve searched all over with Google on this problem and can’t find the solution to my problem.
Here’s a little more info:
When I click on View Forum, and it looks great with the site’s theme here, the url is:
http://www.mydomain.com/forums/forum/test-forum/
When I click on the Page that I created called Forum, the url is:
http://www.mydomain.com/forums/
Thanks in advance for any help!
SKParticipant
In WordPress, there is an opportunity to select the template for each page (dropdown on Edit Page and Edit Post pages).
bbPress forum root, forums, topics and replies are custom post types.
It would be good to see in bbPress the ability to set the default layout (wrapper) for each of these.
Dropdown (like the one on Edit Page page), wherein the admin can select the layouts from among the active theme’s layouts shall be ideal.
(I understand that if after this the admin decides to change the theme, (s)he will need to select the default layouts for bbPress custom posts again – just like (s)he needs to do so for normal pages and posts)
So, for instance, while the rest of my site may use 3-column (2-sidebar) layout, for forums, I may decide to go with a single-column layout.
http://bbpress.trac.wordpress.org/ticket/1784
Hmm, actually I think this works for my case
<?php echo do_shortcode(‘[bbp-topic-index]‘); ?>
Still if someone have another code let me know. Thanks
Thanks a lot, Jon. Very nice that you post the whole code.
My problem is – as I can’t use WP page, as I need to display this on custom homepage (index.php), not on the separate WP page.
so I try to use
<?php echo do_shortcode(‘[bbp-topic-index]‘); ?>
As it is outside loop, but it doesn’t work. Not sure what I am doing wrong.
Not sure what I doing wrong.
I didn’t change the whole forum to look like bbprress.org, but instead wanted the first page users see to look like .org. That is, with a forum list on the left, tag cloud below that and on the right a list of recent topic updates. I achieved that with the following page code:
<div style="display: inline; float: left; position: relative; width: 400px;">
<div style="margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;">
<h2>Forums</h2>
[bbp-forum-index]
</div>
<div style="margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;">
<h2>Hot Tags</h2>
[bbp-topic-tags]
</div>
</div>
<div style="display: inline; float: left; position: relative; width: 400px; margin-left: 25px;">
<h2>Topics<span><a title="New Forum Topic" href="http://your-url-here/?page_id=232" style="font-weight: normal;"> — Start New</a></span></h2>[bbp-topic-index]</div>
I also made some CSS changes to change formatting and remove some text.
Jon
hey Jon & Jim & JJJ & Jaredatch
did u manage to get something like https://bbpress.org/forums/ ?
what was shortcode or php code I can use to create it? My problem is that I can use it in the new page, but on custom homepage of my site – so I need php code (or wrapup php code with shortcode) that will display something like https://bbpress.org/forums/
your help is greatly appreciated!
– – – – – – – – – – – –
otherwise bbPress looks great and i’m looking forward to learn more about it and build some big website. previously i build websites with 750,000 visitors in drupal. but now trying to figure out myself how to use wordpress
For some reason it won’s show more than 5 forums on bbpress… any thoughts on how to fix this?
I forget to mentioned I am using bbPress 2 and WP 3, all updated and running fine.
I would appreciate help on this topic please 
How to get nice looking page with latest threads, topics and reply on the custom homepage. Not on the WP page.
Where can I find php code that could pull this from bbPrss 2?
Thank a LOT!
No, I’m not associating it with a page. If I disable bbPress, the url becomes invalid.
That and maybe raise a good thread in how best to combat Spam in a bbPress forum.
To see this happen so much at bbPress.org certainly suggests to people that the forum software is wide open to spam attack, if you ask me.
Try saving your permalinks settings, then saving bbPress settings and see if it works.
I’m working on what you said.
I’m a little stuck on the shortcodes. To display a single topic, the short code needs an ID code, but I’m not sure what the ID code or name is for each of my topics.
I’ve played with a few obvious choices, but nothing is working yet.
I’ve been trying to install bbPress on a clean installation of WP. The installation seems to go fine, but when I visit the forum page, only the title shows up. Is there something I’m missing?
im using it with a fresh install of the latest wp, but i have a styling issue ( http://screen.ticno.com/index.php?image=diLrSMnMxuCXs7Zs9BWr.jpg ). im using the London Live template. it’s a local testing and everything is “fresh” without custom code. suggestion?
Hi everybody,
I just installed bbPress yesterday and I am at the moment playing around to get to know things. I am a real dummy when it comes to this, so I could really use some help (no too big words and difficult explanations, please
). I wanted to add a forum specific sidebar and therefore installed the bbPress WP Tweaks plugin (would there be any better solutions?) As you can see on the following page http://demo.agxe.se/forums/ it works fine, but when I click to get in to the Forum it looks like this http://demo.agxe.se/forums/forum/forum/ The sidebar is still there, but since the content is centered the sidebar is being pushed down. I have the same problem at the single topics pages. I tried all the different forum wrappers and I am at the moment using index.php. How can I make this work?
Thank you!
Forums have been flooded with spam recently.
This could mislead someone to think that the project is abandoned too.
Hi there,
I’m just moving a site from standalone WordPress over to Multisite (not that I think that’s the issue)
Anyway the page generated by bbPress at my forum base is a bit messed up, see:
http://webay.hostingbydavid.co.uk/forums/
Also the page that you get to when you click on an author name is similarly messed up, see:
http://webay.hostingbydavid.co.uk/forums/users/david/
Any ideas why?
If I create a WordPress page with the shortcode to show the bbPress home, it that page will display nicely, but the bbPress breadcrumb will link to the Forum Base rather than my WordPress page.
Any clues how I can sort this out are greatly appreciated
This is all created and viewed whilst logged in as the Network Super Admin.
Cheers
David
Does the forum on bbpress.org use parent forums and/or parent categories, or does it use 6 child forums with no parents?
What I did is I created a child theme for K2. Added the settings of the bbpress.css file
the K2 style.css but any changes made there don’t show up.
I would like to point out that Im a novice. I don’t expect a full manual
.
But if you could explain how to activate the style in my K2 theme I will find my way.
Regards, Jacob
Hi all
I just add bbPress to my website running Deadline theme and with small tweaks all looks great! Except homepage – I want main area in the middle of the homepage to look like http://bbpress.org/plugins/ – showing new, latest and most viewed posts from my 4 forums. How can I do this?
Pleas note I can not use custom page, but have to add code to the existing homepage. I tried few versions, but didn’t get exactly the same results. All I was able to pull is 4 posts with code: <?php bbp_get_template_part( ‘bbpress/content’, ‘archive-topic’ ); ?>. But that is obviously not what I need. Is there a simple way to get results like on http://bbpress.org/plugins/
I am not coder (obviously), but can do all CSS work without any issue.
I hope this is not repeated questions, but I tried to find solution and no luck.
Cheers & Thanks
Dean
How to make this:
http://i.imgur.com/X5vqs.jpg
Look more like this:
http://i.imgur.com/v5s7C.jpg
??
Is there any way?
Jim,
What I mainly wanted was a web page where the layout was similar to the bbpress.org forum and I wasn’t looking for the colours, etc, to look the same. I have found that a new theme isn’t required and instead I did the following:
1. Create a new page in wordpress
2. Create a layout using <DIV> tags and use bbPress shortcodes to specify where the forum components should sit
3. I then added CSS to the style.css of my WordPress child theme to control how the forum looked. For example, I didn’t want the forum navigation text or the text saying how many posts there are, etc, so I turned them off via CSS.
I’m not sure if that’s the best way to do what I wanted but once I “discovered” shortcodes this was all very simple and didn’t require a new theme or PHP changes, etc, so was fairly easy.
Let me know if you want any more details about what I did and I post them here.
Jon
There are several different things you can do.
I would recommend inserting this information by using hooks that bbPress put in place. Unfortunately there is no “master list” of the available hooks, so you have to dig in bbPress and find the best one. It’s very do-able but will take some trial and error.
Your other option would be to approach things like you are doing now. I would use bbPress conditionals instead of is_page(). Here are a few of the conditionals available:
bbp_is_single_forum()
bbp_is_single_topic()
bbp_is_topic_edit()
bbp_is_topic_merge()
bbp_is_topic_split()
bbp_is_single_reply()
bbp_is_reply_edit()
bbp_is_reply_edit()
bbp_is_single_view()
bbp_is_single_user_edit()
bbp_is_single_user()
bbp_is_user_home()
bbp_is_subscriptions()
bbp_is_favorites()
bbp_is_topics_created()
is_bbpress() (this is all of the above wrapped in one)