Search Results for 'code'
-
Search Results
-
I think i’m starting to understand how to build your own forum themes,
But i have a question,
What does
<?php do_action( 'bbp_template_notices' ); ?>do for my theme?I’m not very good at PHP and i have search but there is none template_notice.php file also i can’t find any filter of function called like this inside a template file, so i was just asking myself what it would do for my theme?
I installed 2.0.5Rc5 for my WP installation (latest stable) and encountered that when I see the list of the forums the_title I have in my template is set to the name of one of the forums instead of being “Forums”.
I am new here and sorry in advance if I’m logging this problem in a wrong place.
Also I would like to learn where can I get(buy) themes for the forums that look like the one here. Styling it myself is fun, buit I’d rather reuse.
Topic: bbpress 2.0 templating
Hello there,
I think my question will be very easy for most people here but I am really having a hard time to make it work. I read your post about theme compatibility many times but I am still missing something.
I installed the bbpress 2.0 rc plugin in my wordpress 3.2.1 and I also looked over the internet for a bbpress theme (not sure if it is compatible with bbpress 2.0 though). What I did was:
First Time:
A) I uploaded the custom theme I found over the internet.
I copyied all the files from bbp-twentyten into the custom theme folderThe result is that I cannot find my theme in the theme directory in order to activate it.
Second Time:
A) I uploaded the custom theme I found over the internet.
I copyied the folder bbp-twentyten from “/bbpress/bbp-themes/” into the wp-content/themes. My custom theme was also the wp-content/themesThe result is that I cannot find my theme in the theme directory in order to activate it.
In both case I added the add_theme_support( ‘bbpress’ );
Can you please give some me some help cause I feel very stupid.
N.
bbpress: 2.0-rc-5
wordpress: 3.2.1
theme: woothemes canvas 4.4.0
I think I have not understood how to add bbpress to my site correctly.
Thusfar:
1. Installed bbpress plugin and in forum settings, set Archives Slug > Forums base to “community”.
2. Created a page with slug “community” and added [bbp-forum-index] shortcode.
3. Using widget logic plugin, added some sidebar widgets to display on this page.
4. Visited /community page. My sidebars are not showing and looking at source code reveals page is using a forum archive template and not a page template.
5. Changed page slug to something other than “community”. The page then displays the sidebars I have set. However, the breadcrumb navigation still links back to the /community forum archive page without my sidebars.
How can I set things up so that the forum index appear on the page where I placed the shortcode and not on a different forum archive template page, and also have the breadcrumb navigation work correctly?
Thanks to anyone for any suggestions.
Topic: Function call not working
So I am creating links as such:
<a href="<?php echo bp_displayed_user_domain() ?>messages/inbox">Inbox</a>It doesn’t work.
For example if I am on the page of website/forums/activity that following link will take me to website/forums/activity/inbox.
It should take me to website/members/user/messages/inbox/
Whats going on with this link?
Topic: Plugin Install
Hello,
I’ve installed the plugin on my site, which has a custom theme, but after following the installation instructions found here: http://bbpress.org/forums/topic/bbpress-20-theme-compatibility, all I get is a blank page if I view the forum. So, I deactivated the plugin, deleted, and reinstalled. This time I DID NOT copy any files into my theme directory, just left it as is.
Now, If I place some shortcode such as [bbp-forum-index] on one of my current wordpress pages, it will show, but once I click on one of the topics, it brings me to the blank page again! I’m tearing my hair out here trying to figure this out..I thought it would be a lot easier as I work on WP sites all the time.
Here is the link to the forum that is blank:
http://foreverathletes.com/forums/forum/community-2/
Can somebody help me out? Again, I tried this route:
If this is not a custom theme under your control (meaning you are not the author) you’ll want to copy the entire “/bbpress/bbp-themes/bbp-twentyten” folder into your “wp-content/themes/%YOURTHEMENAME%” folder, and modify your style.css to make it a custom Child Theme of whatever your current theme is. This is so theme updates don’t wipe out all your hard work later.
…But couldn’t figure out how to make the style.css work…I modified the style.css inside of the bbp-twentyten so that the Template name matched my theme name, but this did not work. Am I missing something here?
Thanks for the help.
I’m running bbpress 2.0 rc-5 with the default styling included with bbPress. I have customized my theme functions to include forums, topics and replies in search results.
i.e.,
// Add Forums, Topics and Replies to search results
function my_add_bbp_to_search( $post_type ) {
$post_type['exclude_from_search'] = false;
return $post_type;
}
add_filter( 'bbp_register_forum_post_type', 'my_add_bbp_to_search' );
add_filter( 'bbp_register_topic_post_type', 'my_add_bbp_to_search' );
add_filter( 'bbp_register_reply_post_type', 'my_add_bbp_to_search' );When the first search result is a page or post, the results are formatted according to search.php (as expected):
http://www.climberswa.asn.au/?s=frankland
When the first search result is a forum, topic or reply, the results don’t use search.php and seem to render using bbpress template parts:
http://www.climberswa.asn.au/?s=albany
This looks particularly bad when the first result is a topic as it will display the threads:
http://www.climberswa.asn.au/?s=cawa
Is this a defect in bbpress intercepting the search or a limitation of using the default styling?
