Search Results for 'code'
-
Search Results
-
Right now the loop replies is calling the loop as follows:
<?php while ( bbp_replies() ) : bbp_the_reply(); ?>
<?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
<?php endwhile; ?>This is combining the topic and the replies into the same query to be output by the loop-single-reply.php template file.
Request:
Separate out the calls to get the topic and then the replies after that function. (use 2 sep functions to call topics/replies)
Reason:
It is VERY difficult for me to style the original topic separately from the replies.
*Yes, I know that everything is currently in a table format so styling topics and replies is not really feasible, however I am working on building some custom forum templates without tables. This would make building custom templates a bit easier.
agree?
Starting a new topic as I don’t wish to clutter the VERY USEFUL threaded discussion here:
http://bbpress.org/forums/topic/bbpress-20-theme-compatibility
I’ve been over this topic a few times and can’t for the life of me get what I desire to work, or maybe it’s working and I’m missing something.
My current setup:
WordPress 3.2.1 (single site setup
**Child Theme**
BuddyPress 1.2.9 (disabled forums)
bbPress 2.0-RC-4
My goal is simple: I wish to use a different sidebar within my forum pages to display information that is forum specific, rather than my default sidebar’s contents and widgets.
I’m pretty fluent in WordPress, customizing things and the like. I understand how to display different sidebars and such within WordPress, depending on pages, etc..
My issue:
When I activated bbPress and navigated to my forum, everything displayed a treat. It was PERFECT (minus some CSS for colors and width, etc). I figured I would be cracking into the code just to get it to display correctly within my theme, but it put it right where it belonged within my theme.
When I decided I would like to take advantage of a different sidebar, things started to go out of place.
Following along with the discussion at http://bbpress.org/forums/topic/bbpress-20-theme-compatibility, I:
1. Copied the files within wp-content/plugins/bbpress/bbp-themes/bbp-twentyten/
into my child theme folder:
wp-content/themes/%child-theme-dir%/ – minus fuctions.php and style.css.
2. I added add_theme_support( ‘bbpress’ ); into my child theme’s fuctions.php file.
Upon uploading and refreshing, my theme was broken. The forums were being displayed above everything. At the time, this wasn’t much of an issue, as I figured I could modify the files I copied within wp-content/themes/%child-theme-dir%/ much the same way I modified BuddyPress templates to work within my child theme, but alas, these modifications did not work. In other words – any modifications I made to files from plugins/bbpress/bbp-themes/bbp-twentyten/ into themes/%child-theme-dir%/ did not work.
3. Instead of “merging” bbPress functions.php and css/bbpress.css with my child theme files, I copied bbPress’s functions.php, created a new file within my child theme, copied the contents of bbPress’s functions.php into this file and included it from my functions.php file. I used an @import clause within my child theme CSS file to import bbpress.css. This all seemed to work, as using Firebug confirmed bbpress.css was imported.
Again I uploaded and refreshed, but the theme is still broken, much the same way it already was.
So for now I’ve reverted everything back to the “vanilla” install of bbPress, and everything is back to normal, minus a unique sidebar.
Any and all help is greatly appreciated!
Thanks!
I like a lot of you on here obviously want bbpress to be implemented into my site.
And I like a lot of you have been having issues getting everything installed and working correctly.
I’m writing this post because I got things going finally on my site and it really isn’t as hard as I was making it and some of you are from what I’m seeing.
I just wanted to share a few simple things that I learned along my journey and hopefully this post can steer some of you in the right direction.
My forum is located at http://www.theurbantwist.com/community by the way. Ignore banner at top of page as that’s just a placeholder for when I get my official forum logo designed.
First things first…
I followed the instructions to a “t” from this post:
http://bbpress.org/forums/topic/bbpress-20-theme-compatibility
I have a custom theme, so I copied all files over, created child theme and all of that jazz, and added theme support.
At this point I just knew that I was going to be finished because when I went to dashboard, it stated that my theme now had bbpress support. Everything was coming together just as how the instructions above would lead me to believe.
The feeling was brief as when I actually went to the forum page, it was completely blank other than the breadcrumb trail at the top…my header and footer was present but everything else in the middle (the content area) was gone.
So me being familiar with wordpress themes and because I’m so used to “pimping” out themes for wordpress…I tried to do the same with bbpress, so I dissected and went over the code in those files I copied over into my main theme as if it were a wordpress theme and changed some things around thinking I needed to add some template tags here and there to get forum to work.
I did all of that and guess what? Nothing changed…same blank space as before.
So I then went into the plugin file itself and tried modifying the theme from there.
Still…nothing changed.
So I went backwards through the steps and started deleting steps to get back to where I was at originally and along the way, after I removed the theme support for bbpress, the forum showed up on my page. The CSS wasn’t matching my theme, but at least I had a start.
I then modified my css file to match certain elements of the twenty-ten default bbpress theme and mow I’m making progress. The theme is pretty much right where I want it be.
The only thing that was missing was that I wanted a topic listing of all topics on forum front page.
And here is where things really got easy and I wish I would have done this from the start.
I simply created a page.
I named page “community” to match my forum settings and I added 2 lines of code.
[bbp-forum-index]
[bbp-topic-index]
And voila! Now I have forum just the way I want it barring a couple of graphical changes which I’m working on.
The reason I went in detail about how I came to a solution for myself is that sometimes we do a LOT of unecessary stuff to get to where we need to be. I’ve wasted a LOT of time trying to manipulate the plugins files and my theme’s files, when all I needed to do was to create a page.
Bottom line and this is definitely something you should try if you are having problems.
1. Install and activate plugin.
2. Add a Page
3. Add those 2 lines of code above.
4. Publish.
You then have your forum. And that’s a start.

Cheers!
I created a page with the permalink http://montecristoowners.com/register/ with the following content…
[bbp-register]
… but it just sends the user to my homepage.
My other shortcodes work fine…
Login page: (http://montecristoowners.com/login/
Lost Password page (http://montecristoowners.com/lost-password/)
Question: I installed BuddyPress so that I could get some more control over my forums. Is that why the shortcode doesn’t work for Register anymore? If that is not the reason, then why isn’t it working?
It seems bbp_get_forum_subforum_count() does not return private forums. So when all the subforums are private, this funcion returns 0 which causes the list forums function to bail.
I got it around it by creating the following filter to count the forums:
add_filter( 'bbp_get_forum_subforum_count', 'my_subforum_count', 3 );
function my_subforum_count( $forum_count, $forum_id ) {
$subforums = bbp_forum_get_subforums( array( 'post_parent' => $forum_id ) );
return count( $subforums );
}Please advise if you’d like me to create a trac ticket for this. I didn’t want to create a ticket in case it already exists or I’m just doing something wrong.
Thanks,
John
In version 1.0, there is a way to create custom registration fields (creating a regfields module, with a short bit of code).
Is there a way to do this for 2.0? I upgraded to the newer forum, because I thought things like this would be easier.
Also, is there a way to make certain fields private (so they are submitted for admins to view, but not publically posted to the profile)?
I just installed 2.0. Where are the register and login links for the forum? I saw the page for shortcode (http://bbpress.org/forums/topic/bbpress-20-shortcodes) and created a page for registration and login.
Does the regular template not add these links to the pages? Do we need to add them on our own? Do we add them to our bbpress theme, or our wordpress theme?
lol