Search Results for 'code'
-
Search Results
-
Hi there — I’m running WP 3.4.2, bbPress 2.2.2 & buddypress 1.6.1. Overall, I’m quite happy with the installation, and I’ve done a fair amount of customization on my site to give it a nice L&F. I’ve been using a child theme to do all customization, and it’s been reasonably straightforward, but not trivial. That said, many thanks to all the bbPress folks who are putting lots of time in on this plugin — it’s a great platform.
Onto my question: How is the main forum archive page generated? I want to create my own template to generate this page, and I’ve been stumped trying to trace the sequence of files/calls used to create it.
For context, I have the Forums Base set to “member-area/forums” in Settings -> Forums. I can go to http://mysite/member-area/forums and see the standard listing of all the forums in a table. Perfect, just what I want.
That said, how exactly is this page created? Which files & calls in the plugin create it? I’ve found loop-forums.php in …/plugins/bbpress/templates/default/bbpress/which is used to create the table within the page (apparently called as the_content() somewhere), but I can’t find the code blocks that create the header, footer, etc. Is there a single template page used to create the Archive Base page?
Apparently this page is generated regardless of whether there is an existing page (permalink) to the same permalink used as Archive Base. Nifty, but I want to use my own template (the whole thing) for creating the Archive Base page.
Even when I create a page with a permalink address the same as Archive Base and insert a [bbp-forum-index] in the post content, I can’t seem to select a Template from the Page Attribute pull down that has any effect on the creation of the Archive Base page. It’s like it’s hard wired to use a very specific template — that I can’t find in the directory tree.
Long winded, but I hope that conveys what I’m trying to do. In short, I just want to create my own template for creating the Archive Base page. Any pointers are appreciated.
Cheers,
Michael
To add standard wp post_tag support for BBPress – Post Type – Topic… I added the following code starting about line 557 to bbpress/bbpress.php
// Topic Taxonomies
$post_type['taxonomies'] = array(
'post_tag'
);// Register Topic content type
register_post_type(
bbp_get_topic_post_type(),
apply_filters( 'bbp_register_topic_post_type', array(
'taxonomies' => $post_type['taxonomies'],
To get the topics to show on regular wordpress tag pages I used the snippet from Justin Tadlock edited for tag pages and post type topic.
After limited testing, everything seems to work as I wanted – bbpress topics show up on regular post_tag archive pages – as long as the tag is added to the topic from the Admin side.
Because I know enough abut wordpress to occasionally be dangerous, my questions:
1. Is this a bad idea for some reason I don’t know about?
2. Provided it’s not a terrible idea, Is there a way to future proof this hack? I tried creating a bbpress directory in my themes main directory and adding the edited bbpress.php there, but it didn’t work.Any thoughts would be greatly appreciated,
JW
Topic: 2.2 and Theme Compatibility
Dear community.
I have spent the last few (5) hours reading the various posts, trying to get bbpress to integrate with my custom WP theme. Unfortunately, I don’t have the knowledge (or enough) to figure out how to make the two work together.
Info
Wordpress: 3.4.2
Site link: http://www.restorationcoach.com/restoration_coach/forums/
Using this theme: http://www.templatemonster.com/wordpress-themes/39849.html
bbpress: 2.2My main issue seams to be css related. I think bbpress is and the theme are sharing css files, causing a funky appearance. Overall forum function seems to be working fine.
So far I’ve done the following.
Completely removed bbpress and installed new 2.2 version.
Read: http://codex.bbpress.org/theme-compatibility/ (this is for customizing the bbpress theme, if you want? And if you don’t, then leave the install as is?)
Watched: http://www.youtube.com/watch?v=lB2Oodx2GJw (not sure if this applies with 2.2)
Switched to Twentyeleven: Looks better, side bar is missing, and footer contact form, map and links are over top one another.I can see in firebug where both style.css and bbpress.css are being used to style the forum. Most specifically #page-content ul li. This, I believe, is causing the issues but not quite sure how to fix it.
Thank you in advance for the assistance.
Topic: Filter name
There is filter called
twentyten_author_bio_avatar_sizein user-details.php. Is this intentional, or should it be likebbpress_author_bio_avatar_size?