And I’ve gathered the script would go something like this?
$("body").removeClass("reply");
Any clues as to what template or how I might add that to remove the reply class from the body would be great. This is my first foray with bbPress and it’s been a learning curve…
add_filter( 'bbp_before_get_reply_author_link_parse_args', 'ja_reply_avatar_title' );
function ja_reply_avatar_title( $args ) {
$args['link_title'] = 'Avatar';
return $args;
}
This only takes care of the replies, you will likely need to apply this same concept to other places in the theme.
I suspect It’s your theme and there’s no simple way to fix it short of diving into the code 🙁
/forums (the auto generated page) is an CPT archive page and your theme is likely modifying the query or auto formatting its archives (this is common in frameworks). Normally this isn’t a problem, until you use a plugin like bbPress which excepts archive pages to not be “highjacked”.
The /forum works because I assume this is the page you created with the shortcode which isnt using the same template as mentioned previously.
Forwarding forums to `forum’ might work, but make sure that the root of the problem isn’t affecting other archive areas of your site (topic listings etc).
Copy
plugins/bbpress/bbp-themes/bbp-default/bbpress/loops-single-reply.php
to
[your_theme_directory]/bbpress/loops-single-reply.php
Edit line 27 to your liking.
You will need to create a counter. Something like http://pastie.org/5021188 would be a start. Though it will not take pagination into play, which will be something you must write.
The shortcodes work fine.
Just so people know – I have forms set up I am trying to post in a form that I have set up. I have the “new topic” box but when I submit the new topic it takes me to a blank page. Everything else is in the OP
More help needed please 🙂
Sorry, someone have a solution plz ? thx
Hi, Is there any plugin for flag inappropriate content???? I cant find any. PLSSSS HELP! I\m using bbpress Version 2.1.2
-
This topic was modified 13 years, 4 months ago by
cgomez21.
This is the problem: http://i.imgur.com/TWMBl.png
(I’m going to put in a separate feature request with Crayon Syntax Highlighter, which we are using to highlight code on bbPress, asking if it’d be possible to ignore HTML tags inside code tags (both square brackets and the more future proof pre tags), but that wouldn’t be the cleanest solution.)
The better solution would be if the importer could prevent this from happening in the first place. If not for square code brackets (although this is a standard set by an Automattic plugin) then at least for pre tags.
In my tests, I embedded code in pre tags in a BuddyPress forum, imported it to bbPress and the embedded code was now populated with HTML tags, mainly br tags for the newlines. Funny thing is if I have the rich editor turned on, I can go into edit mode with a post that has code embedded, then I’ll go to the “Visual” mode and back to “HTML” mode, and everything has been cleaned up. I basically want the importer to do that step for me.
Jeffvand: There are a few plugins that allow you to pull in and show custom Sidebars. Two Examples:
These work with Custom Types Ie it recognises the Forums and You can select for them to have their own sidebar:
https://wordpress.org/extend/plugins/custom-sidebars/
But I prefer
https://wordpress.org/extend/plugins/content-aware-sidebars/
Hope this helps.
I too want to remove the sidebar completly. What part of the CSS would I need to remove. Could you send some more detailed instructions of what code and in what CSS files I need to remove. It is only on Forum pages I want to remvoe sidebars.
Thanks
I have some more information–I hope that someone can help me.
The problem is to swap the default behavior and make return give a br tag and
shift return give a p tag. The TinyMCE wiki http://www.tinymce.com/wiki.php/Configuration
seems to say that is the way to do it is by setting forced_root_block to false.*
However, when I tried that using the Advanced TinyMCE Configuration plugin by Andrew Ozz , I found:
If I use it to set
forced_root_block to false,
nothing changes.
If I set forced_root_block to true, which I expected
to do nothing, it breaks the editor:
The buttons don't work, and anything that I type into
the Visual editor gets wiped out when I switch to html.
If I set forced_root_block to just a space,
when I typed in
test
test
test
test
test
test
it produces the following html:
< >< >test
<!-- -->
test
test
test
test
test
which displays as
test
test
test
test
test
test
after submitting.
Finally, if I set forced_root_block to div,
when I typed in
test
test
test
test
test
test
it produces
test
test
test
test
test
test
which displays as
test
test
test
test
test
test
and there seems to be no way to produce a break.
I hope that this data is useful. ANY help would be GREATLY appreciated.
Having better control over the sidebar in bbPress is a very common request and there is even a trac ticket for it.
Unfortunately, there’s no easy way to handle this automatically. Each theme/framework handles the placement of the sidebar differently, so we can’t bbPress (or a plugin) can’t simply say “don’t show the sidebar” – it’s going to require modifications to your theme.
For those of you who want control over your sidebar, are flexible with theme you are using, and are not comfortable editing your current theme, there is another solution out there.
I created a plugin for sites running on the Genesis Framework called bbPress Genesis Extend. This plugin primarily builds in bbPress compatibility for the Genesis Framework, however it also ads in a few handy extra features – namely full sidebar control.
https://wordpress.org/extend/plugins/bbpress-genesis-extend/screenshots/
If you use the Genesis Framework and this plugin, it allows you to choose what layout you want to use on bbPress pages (full width page, content-sidebar, sidebar-content, etc). Additionally it also has the option to create a dedicated sidebar for bbPress pages, which would allow you to use bbPress widgets on the bbPress portion of your site.
Hopefully as bbPress becomes more popular, other themes and frameworks will build in similar features which will give site administrators control over the layout/sidebar without having to touch any of the code in your theme.
To solve this problem in files:
/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php
/wp-content/plugins/bbpress/bbp-includes/bbp-topic-template.php
comment following lines:
// Remove first page from pagination
if ( $wp_rewrite->using_permalinks() )
$bbp->reply_query->pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $bbp->reply_query->pagination_links );
//else
//$bbp->reply_query->pagination_links = str_replace( '&paged=1', '', $bbp->reply_query->pagination_links );
no one use this codes for buddypress? it is big issue for most people to have seperate blockss. help help 😀
aaclayton, speaking about “I wonder how some of the dedicated forum platforms handle this sort of feature.”
Im running bbpress 1.0.2 forum with 400+ topics and 16000+ posts for 2+ years. Im using “Unread Posts” plugin written by ck and should say that its perfect. Have not faced any errors or performance problems with it. Maybe you should look at source of that? Not sure if that plugin can be still found on net, but in case its not I can share the code (actualy there is just one php file).
I added below < ?php do_action( 'bbp_theme_after_reply_author_details' );
$user_id = bbp_get_reply_author_id( $reply_id );
$usermeta = get_userdata( $user_id, 'residence' );
echo $usermeta->residence;
i don’t know whats happening, the code is not showing
Run the ‘Import Forums’ tool as outlined here:
https://codex.bbpress.org/import-forums/
Hello
I have some troubles with shortcode.
Wordpress: last version + buddypress last version. My website: http://rplayers.com
So I have two pages with this code :
Bienvenue sur les forums officiels de Rplayers
[button color="red" link="http://rplayers.com/forums/sujet/page-contact-operationnelle/"] Annonces importantes : Page de contact mise à jour[/button]
Communauté
[bbp-single-forum id=44]
Jeux
[bbp-single-forum id=540]
Recrutement
[bbp-single-forum id=530]
Aides et conseils
[bbp-single-forum id=551]
Derniers Articles
[bbp-topic-index]
In my first forum page look : http://rplayers.com/forums/
And the same code in a second page : http://rplayers.com/forums2/
I don’t understand why shortcode [bbp-single-forum id=44] doesn’t work with my first page. Someone can help plz ?
Thx
I would be interested in trying this out, after many hours of trying to make Tango extended Smilies and bbpress play nice. I cannot get Tango to convert the smilie codes to the smilies and my users are accustomed to using the codes from the blog side.
Hi Pippin, great work on this plugin so far. Thank you. I read through the code and tested it out. The plugin works great, and I commend you for your hard work on this. I wanted to provide a bit of feedback in case you are planning any further revisions, just to weigh in with my 2c: 1) I realize you needed somewhere to hook the “mark as read/unread” link, and by default in bbp_theme_compat no action hook is provided in a topic header. Hooking it onto the subscribe link wedges it between subscribe/favorite and is overall a bit awkward for templating. I’m not sure what a better default solution would be, but personally I felt the need to unhook this and manually place the toggle button somewhere more appealing. 2) A standalone function to display a loop of unread topics would be great. show_unread_topics() is purpose built for the bbpress user profile, but under many circumstances users might want to call this list elsewhere (if we are using BuddyPress profiles for example). Personally I created a “View Unread Topics” page that functions similarly to the “Recent Topics” archive. Anyways, including a function for just the unread topics loop (with pagination) would be a nice addition for template flexibility purposes. 3) For a site with thousands of topics, is having that bulky a “_bbp_mar_read_ids” entry in meta a concern? 4) The plugin serves a nice function of allowing a user to track whether or not he/she has looked at topics which are posted. However, it seems to me that full “view unread posts” functionality would entail clearing resetting the “read” flag when the topic is updated with a new reply. What about saving each “read” ID to meta as: post_id?num_replies where num_replies is the number of replies to the topic when the user marked it as read. When a topic is called you can explode out how many replies it had when the user first marked it. If the topic now has more replies than when it was marked, you can override the “read” flag and reset it to unread. Probably not a very elegant solution, but I think what most users would be interested in is being able to generate a list of threads with unread content, not necessarily just unread topics. Anyways, thanks very much for your work on this. I’ll be keeping an eye on how this project develops. Andrew
OK, so to do that I would have to close the post myself, which looks like I just have to add two x divs
Div <!-- .bbp-reply-content -->
Div
But it looks like HTML filters are being applied still – ah, is this a case of ordering things so that my filter comes right at the end, ie after the HTML filter?
..ah a quick test and, yes, this seems to work.
$content=$content.'TEST1(/div)(/div)IS THIS BETWEEN POSTS? YES!(div)(div)';
Ah apologies, the forum filter has filtered out the DIVs above.. putting them back in with curly brackets.
Excellent. Looks like I need to put some thought into how to make it look good but I think I can work on that! One last question then (sorry, and thanks for your help!), how do I pick out the first post?
-
This reply was modified 13 years, 4 months ago by
jezza101.
I just setup BBPress today and am excited to get it fully deployed, however I’m having an issue with the Forum root page: http://bricksofthedead.com/forums/
As you can see, it’s posting truncated information. Also, the page is not editable.
To try to fix this, I created a page with that slug and used the shortcode, but once I published it behaved the same way.
I changed the URL on my created page to http://bricksofthedead.com/forum/, and it is displaying correctly, the trouble is, I can’t get the breadcrumb navigation to link there instead. I tried changing the default slug to /forum, but that ended up displaying the broken page instead of the correctly working one.
This seems like a super simple thing to fix, but I’ve been struggling with it for a couple hours now. Any help?
Thanks ajay – I will give the shortcode thing a go 🙂
firstly you must select one base forum to create topic, and if still not then there must be problem in integration bbpress check the short codes here https://codex.bbpress.org/shortcodes/ create new post or page then per page separtely put required short code . and preview them they must work.
best of luck.