Search Results for 'code'
-
Search Results
-
Topic: Add Forum Topics to Home
Hello,
I am trying to add the logged in user’s forum topics to my BuddyPress site in a custom sidebar. I keep getting this error message:
Fatal error: Call to undefined function bp_has_forum_topics()..when inserting the following:
<?php locate_template( array( 'forums/forums-loop.php' ), true ); ?>How can I easily list the logged in user’s forum posts without relying on the recent topics widget that ships with bbPress?
Thanks
I hope this has a very simple solution.
I need to either stop a BBpress template-tags function from happening, or over-ride it with a new one, but want to do this from a plugin, rather than amending BBpress code.
Is there a line of code that simply stops a function within BBpress, or a quick way to overwrite one using a plugin.
More detail below
I want to revise the
bbp_single_topic_descriptionwhich is currently used incontent-single-topic.phpto show the phrase “This topic contains 2 replies, has 2 voices etc.” below a postThe
bbp_single_topic_descriptionis defined in/includes/topics/template-tags.phpI have written a pluggin that creates a new function, and uses the
bbp_template_before_single_topicaction hook incontent-single-topic.phpto display the new wording .ie
add_action( 'bbp_template_before_single_topic', 'btv_single_topic_description'); function btv_single_topic_description( $args = '' ) { CODING STUFF; }But I need to stop the old wording displaying as well as this.
I have three approaches
1. Just comment out the appropriate line in
content-single-topic.php– simple to do, but of course gets overwritten by new releases
2. Do something in the plugin that stopsbbp_single_topic_descriptionfrom working using code within my plugin – if this is easy, that is what I’d like to do, but as the function doesn’t have an action hook as far as I know, I don’t know how to remove it.
3. Do something to make my function replace/overwrite the bbpress function, so that I don’t have to hook it anywhere?Can anyone help me with either 2 or 3 – I hope it’s an easy answer, but am stumped !
Topic: targeting forum / level
Topic: New Topic Layout Issue
Hi there,
I have recently installed bbPress on our site.
It is a great feature.However,
if you take a look at:
http://cym.org/webmaster/support/forum/front-end-support/You will notice that the area where we can insert a new heading is covered up by the text editor.
I cant find the code to amend the layout for this.
Help!
WordPress version: 3.5.2
bbPress version: 2.3.2
Number of plugins: 1 (bbpress)
Active theme: Twenty-twelve
Environment: Virtual machine built with Vagrant.
Folder rights ?: All good.
Have I fiddled with bbpress source code ?: not yet.I’m having the same issue as multiple topics I’ve seen here.
The Nonce hidden field is in the form (inspected with Chrome dev tools) but I always get the “ERROR: Are you sure you wanted to do that?”

Topic: bbPress and theme don't fit?
Hi:
I have a bad feeling that this is something that gets asked all the time and I just haven’t found the right search terms, but here it goes. Please just direct me to prior threads.
If you visit my forum at: http://www.tnbizguide.com/forums/forum/tnbizguide-talk/
You see that bbPress is being forced to wrap the menu and other items in awkward places instead of displaying everything on one line together that should be on one line?
Is there any way to fix this a non-coder can handle? 🙂
Two Questions:
1. The Edit post button on the bar of the post is throwing a 404 error. It is trying to take me to the following url: http://intranet/index.php/forums/topic/the-cooking-thread/edit/?view=all and there does not seem to be a corresponding page. Is there something during initial setup that I missed to allow for this url to be populated upon post creation? I am still able to edit via the “Topics” area of the dashboard but I would like for this functionality to work for my users.
2. I am trying to override the front-end post editor to be a rich editor. I have tried installing the tinyMCE plugin and replace the built in editor with the html tags via http://codex.bbpress.org/enable-visual-editor/ with the following code:
function tmceeditor( $args = array() ) {
$args[‘teeny’] = false;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘tmceeditor’ );but am having no luck. Again, the editor in the dashboard editor seems to be inheriting the tinyMCE functionality but I would like the user front-end to use this editor as well.
Any help would be greatly appreciated.
I am on WP 3.5.2 and bbPress 2.3.2 with a custom theme.
Hi,
I’m trying to add the forum’s description to be under the forum title on the page-front-forums (index) page. Just like it displays on the single-forum page. Could someone please show me the proper code?I’ve already changed the css .bbp-forums-list li to “display: block;”
Thank you!
Chuck S.I want to be able to have a form template that shows up when someone goes to post in a forum. i.e. I have a form for businesses to post if they have plants available. Instead of typing out the information in the forum, I would like a form to show up so they can just do drop downs or fill in the blanks.
I’ve read lots of information, but some is a bit over my head so I’m not sure if I have found anything that will do this EASILY. I am not a coder, and do not feel comfortable editing code.
Can a form be built in something like contact form 7 and then shortcoded in? I tried what I thought was that, and it didn’t work and not sure how to figure out what else to do.
Thank you for all suggestions.
Using WP 3.5.2, BBPress, 2.3.2 I don’t have a site that has anything to look at yet – just practicing for now.
Thanks.
eileen
Topic: Featured slider
I believe I have a good grasp of how bbpress and buddypress work together. My current setup is using bbpress as the forum and buddypress as the networking for members.
My issue and questions are related to the links created by each of these plugins.
Instead of linking to a forum archive page, I’ve created a separate page and am using short codes to add in the forum. I did it this way because I don’t like how WordPress (or the theme) adds “Archive” to the page header (in my case it’s “Forum Archive”). I also don’t like that Archive pages have limited sidebar options, and poor SEO (thanks to Yoast for making it better). But anyway, you can see I’m trying to stay away from the archive pages.
The problem with my setup is the breadcurmbs above the forums. When navigation backwards, the breadcrumbs take you to the “forum archive”. Additionally, a link that is directly to a reply or topic, it is based off the forum archive. Foe Example:
FORUM LINK: website.com/mvp-members/mvp-forums/ (shortcode method.)
TOPIC/REPLY LINK: website.com/mvp-forums/topic/search-first/#post-18143Are there any tricks to getting these links to work seamlessly with each other? Or a different method of setting up the forums? Or any other advice?
I appreciate it with thankfulness.