I’m stumped. lol
Do I have to call the script? :L I have no idea.. what to do.
I found this:
if ( bbp_is_single_topic() )
wp_enqueue_script( 'bbp_topic', $this->url . 'js/topic.js', array( 'wp-lists' ), $this->version, true );
Am I close ? :/
Okay now I do believe that my theme is causing the problem since I switched themes and it started to work. I have more work to do.
-
This reply was modified 13 years, 7 months ago by
DNBrawler.
-
This reply was modified 13 years, 7 months ago by
DNBrawler.
-
This reply was modified 13 years, 7 months ago by
DNBrawler.
It did the same again, I have had a couple of issues with the code button too!
It is kind of a tricky to pick out a specific forum, you would need to do a little bit of coding to try and change the way your loop-topics loop works.
You would need to be able to pass in an argument of something like $limit and then set the limit based on the forum id. Feels like a lot of work to me, but someone else might have a better idea.
Sorry!
Sorry must not have worked. Here it is again:
'_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => ' 'date', 'show_stickies' => false ) ) ) : ?>
<!-- #topics-front -->
“ EDIT: Now it’s deleting the content of the code sample. Here’s the link from pastebin. http://pastebin.com/3TLgVni2
-
This reply was modified 13 years, 7 months ago by
DNBrawler.
-
This reply was modified 13 years, 7 months ago by
DNBrawler.
Hey DNBrawler,
Your code got cut off 🙁 can you try posting it again and using the code button?
I’m using a template to customize the number of posts on one of my pages. My default number of forum posts on one single page is 6. I want 15 to appear on a page so after noticing in the statistics template that the popular topics can show more than than the default setting I ventured to apply it to a single forum called from the forum id. Here’s the code:
15, ‘post_parent’ => bbp_get_forum_id(568), ‘show_stickies’ => false ) ) ) : ?>
My problem: The forums are only showing 16 unfortunately. My question: How do I limit the number of posts on individual pages?
You have the following CSS on your site which is restricting the height of the replies.
div.reply {
height: 32px;
}
I didn’t search heavily, but it looks like it is coming directly from the page, I can’t find the stylesheet where that is coming from, good luck hunting!
By the way this code snippet works for me:
function custom_bbp_breadcrumb() {
$args['sep'] = ' | ';
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'custom_bbp_breadcrumb' );
-
This reply was modified 13 years, 7 months ago by
Lynq.
So, using the code example several posts above, from manuelmasia — let’s say that I wrap that in php tags and drop it into a functions.php file in my child theme directory. Is there anything else that I would need to do in order to get the breadcrumbs to display differently?
-
This reply was modified 13 years, 7 months ago by
Clay.
Yesterday I offered to help write some copy for bbPress.org, so this is the first of many such posts in a series of sorts as I work my way through the pages and contents in question.
Today I’ve been looking at the examples page. This page is not linked to yet, but we’ll sort that out once we’re happy with the page itself.
Also, down the line bbPress should simply have its own “flavor” on the WordPress Showcase site, coupled with a custom page on bbpress.org that pulls information from there, much like how the BuddyPress showcase probably already works. But since that might take a while (all I know is it’s beyond my capabilities) I figured a static page would serve as a good substitute in the meantime.
Styling
I realized that a common question that’s going to be popping up as I work on these pages is “Changes to bbpress.org vs Changes to my article formatting“. So when I give this feedback, know that I probably have a reasonable workaround for it in mind already if you don’t agree with the proposed changes.
- Page headers – Either make them take charge of the page (more prominent than h1) or don’t show them at all. One of my favorite examples of a beautifully dominant page title is WooThemes’ Optimize.
- On my test site (also where my images are currently loaded from because I don’t have that privilege here yet) I used captions to achieve some simple compartmentalization. It seems the bbpress.org theme doesn’t have any styling for captions yet. Furthermore, on hover they expand slightly instead of highlighting in some other way (e.g. a shadow overlay), making the content below shift downwards slightly, which looks weird.
- The showcase codex page should be retired.
Your input is most welcome, including my choice of “featured” items.
-
This reply was modified 13 years, 7 months ago by
Erlend.
-
This reply was modified 13 years, 7 months ago by
Erlend.
-
This reply was modified 13 years, 7 months ago by
Erlend.
thanks jjj.
here’s what i needed to do, in case anyone else is interested.
- install bbpress and wptouch pro plugins
- in bbpress settings, under theme packages, choose the bbpress
default – bbp-theme-compat
- create a wp page forums and use [bbp-forum-index] short code for a
forum index page
- in wptouch admin make sure that both “Enable ‘topic’ post type” and
“Enable ‘reply’ post type” are NOT selected (thanks to emilio at
bravenewcode)
- put a copy of bbpress/bbp-theme-compat/extras/archive-forum.php into
the active wptouch child theme iphone (etc) directory(ies).
- tweak style
i have no idea why a copy of archive-forum.php was needed in the wptouch theme as i didn’t need to copy any of the bbpress files into my desktop theme (twentyten child) and i didn’t copy any of the other bbpress files into the wptouch theme. but at least it seems to be working with a minimum of fuss.
You could try something like this (for an install that also has BuddyPress):
function disable_all_widgets( $sidebars_widgets ) {
if ( function_exists('is_bbpress') ) {
if (is_bbpress()) {
$sidebars_widgets = array(false);
remove_all_actions('bp_register_widgets');
unregister_sidebar( 'bp_core_widgets' );
}
}
return $sidebars_widgets;
}
add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);
Looks very promising – thanks for your input!
@JJJ this is mainly for you & anyone else who might be editing the site, so if there’s a better place to discuss this, e.g. the the bbPress devblog, let me know.
I looked at the current page structure and thought it could be structured a bit differently:
About & Features reshuffled
-
About
- GNU License
- Domains (possibly merged with License page)
- Get involved
- Privacy
- The Story
- Development
-
Features
- Fully Integrated
- Multisite Forums
- Simple Setup
- Examples/Showcase (might be better off as its own parent)
Move to codex
- Installation
- Requirements
This also depends on the plan for pages like ‘simple’, ‘integration’ and ‘multisite’, which might not need dedicated pages if they can be explained simply enough in a paragraph (I’ll give it a shot).
-
This topic was modified 13 years, 7 months ago by
Erlend.
-
This topic was modified 13 years, 7 months ago by
Erlend.
-
This topic was modified 13 years, 7 months ago by
Erlend.
Lynq, that’s what I assumed, too. This link suggests the approach you took:
https://codex.bbpress.org/theme-compatibility/
Re: Markdown
Feedback should be directed towards the WP-Markdown support forum.
Re: Search
wpmudev.org has got a very elegant forum search set up on their site, including an alternative Google search. Maybe they’ll share the code. I’ll refer them to this thread and try get a conversation going.
Re: Breadcrumbs & Tags
Agreed, I’ll do some mockups.
I have not used Semisecure Login, but a quick look around found this:-
https://wordpress.org/support/topic/simple-modal-login-and-semisecure-login-reimagined
> “I didn’t used with SimpleModal Login. But maybe “Theme My Login” is a good alternative for you?! That works with Semisecure Login Reimagined.”
> “This plugin themes the WordPress login, registration and forgot password pages according to your current theme. It creates a page to use in place of wp-login.php, using a page template from your theme. Also includes a widget for sidebar login.” https://wordpress.org/extend/plugins/theme-my-login/
You may be able to create a new login page/template and get around the issue that way.
Have a good read at a few other sites with other alternatives as the Semisecure Login Reimagined plugin is no longer being developed and there may be other solutions that are actively supported to meet your needs.
It looks like this is my solo topic.:-) So I continue contributing. Here is my progress in resolving the isue described above.
I have created bbpress-extras directory in MYTHEME directory. All files from /wp-content/plugins/bbpress/bbp-theme-compat/extras were copied into this directory. Than I edited bbpress-functions.php (copied to MYTHEME directory). Following code looks to be promising
function bbpress_custom_template() {
if ( is_bbpress() ) {
require_once ( 'bbpress-extras/page-front-forums.php');
exit;
}
}
add_action('template_redirect', 'bbpress_custom_template');
This is the result: http://poradci-sobe.cz/forums/
This looks like this is the way how my custom template files can be stopped to be ignored by bbpress. At least the first file I am testing – page-front-forums.php. I will try to make the condition more precize and to create special condition for each template file I want to use.
Does anybody know, why this approach creates as many forum lists as the number of forum is?? Each forum lists is the same except forum name is different. I would expect there will be only one forum lists without any name.
I am looking for JJJs answer saying “this is a very poor solution”. I am trying my best. Sorry for that.:-)
-
This reply was modified 13 years, 7 months ago by
viktora.
I found it easier just to do it by CSS.
All of the bbPress pages will put a class of .bbPress on the body tag.
My sidebar is #primary.
So what I did was this small bit of css:
.bbPress #primary {
display: none;
}
Then I added in some extra CSS to extend the width, easy!
Markdown Plugin
I like Markdown, though cutting & pasting the above text/reply crashed Safari on the iPad twice.
Reproduce Steps: start a reply, I’m using this post itself for an idea on size, it is now so slow and I can’t type or delete text faster than one character a second.
Forum Wide Search
See Trac Ticket #1575 https://bbpress.trac.wordpress.org/ticket/1575
The code in #1575 is a WP plugin ‘Search bbPress’ though it needs an update for bbPress 2.1 (remove old widget typo bug code and whatever else may need updating)
Ideally getting #1575 closed and built into bbPress would be the ideal scenario 🙂
Breadcrumbs & Tags
These are features available in the bbPress software, as such I think they should be used here at bbPress.org/forums to help showcase the features of bbPress. As for the actual user experience/implementation of said features, ideas on how you use them and how they could be best used here would be great.
(~typing at only one character per second here, there is some performance issue with Markdown going on here or at least on iPad Safari)
Hello,
I’d like to use bbPress so I’m looking at setting it up on my blog…
I use the plugin Semisecure Login Reimagined to encrypt login details before they’re sent off to the server…
When I use the bbPress shortcode for the login or use the login widget I get the message:
> Semisecure Login is not enabled! Please enable JavaScript and use a
> modern browser to ensure that your password is encrypted.
Does anyone know if it is possible to get around that?
Thanks!
Found it 🙂
On the https://codex.bbpress.org/shortcodes/ page the shortcodes for this are listed towards the bottom 🙂
Is this the proper approach? removing all of the php get_sidebar() function calls?
Ok – it seems to be working as expected now, with a clean refresh. The only difference is that I followed your instructions, Lynq, and not those peppered around this site. The following links say to copy the contents of the bbp-twentyten folder to the theme folder:
https://bbpress.org/forums/topic/bbpress-2-0-theme-compatibility/
https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
That doesn’t work for me, however. Copying the contents of the bbp-theme-compat folder did work.
Is this simply a documentation problem that needs to be fixed?
Thank you both for the help and attention!
Hello,
I tried to use the bbpress rate post plugin on WordPress 3.4.1, bbpress 2.0.3, BuddyPress 1.5.6 and the plugin v. 1.6.6. In the group forums it works very well, but in the site-wide forums there is nothing, so I thought I will modify and make it to work in bbpress…
I opened the files (bb-rate-forum-posts.php – the main file) looked at the hooks and tried to find the similar hooks for bbpress, but unsuccessfully for now. I tried few changes but always get blank screen errors.
Can anyone help me, with code, or just hints? Or some other plugin recommendation?
Thanks in advance.
hi,
i’ve just installed bbpress 2.1 on a test site and am loving it. great job and many thanks to all, especially (of course) jjj.
so far the new theme compatibility seems to be working just fine (and MUCH easier to set up) with my simple twentyten child theme.
however, there are very weird problems with the mobile theme from the wptouch pro plugin (for example, with wptouch pro switched on, the blog is displaying forum topic titles without any blog or forum content). what makes this especially weird is that i did have wptouch pro working with bbpress 2.0.
i’ve asked for help on the bravenewcode support forum, but they don’t offer official support for wptouch with bbpress (although, as per usual, emilio is willing to a look)…. so i thought i’d ask here too as wptouch mobile theme plugin might be something of interest to bbpress users and some of you may have a suggestion.
thanks for any ideas to try…;