Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get count of the all topics with no replies

Published on January 25th, 2019 by Radzio125

Hi, how to get count of the all topics with no replies? I want to create something like this:

$count = ????
if ( $count != 0 ) {
echo '<a href=".../no-replies/">Topics with no replies<span class="count">'. $count .'</span></a>';
}

Is there a easy way to do this? I will be grateful for help.

Sorting topics by Replies, Date, Name, Activity…

Published on January 25th, 2019 by Radzio125

Hi, I want to add sorting options on the single forum topics list. Something similar to sorting options in the BuddyPress members list / groups list page. I want to add several options:

<select id=”topics-order-by”>
<option value=”active”>Last Activity</option>
<option value=”replies”>Most Replies</option>
<option value=”users”>Most Users</option>
<option value=”newest”>Newly Created</option>
<option value=”alphabetical”>Alphabetically</option>
</select>

Is this possible? BuddyPress use ajax to filter results but this can be without ajax. I will be grateful for help.

Can’t register a user

Published on January 25th, 2019 by Luisgasser

Hi,

iv i try to register a new forum user i got an error message – “at the moment you can’t register”

Any idea what do do?

Thank you for helping!

more than 50 topics on the front page

Published on January 23rd, 2019 by Clivesmith

I want to show more than 50 topics on a forum on the front page, if I click on the forum it will list more than 50 but only 50 show up on the front page,
Hope this makes sense, if you look at my site (wateratairports.com) Vietnam is not on the front page but if you click on “Countries” it is at the end.

I found the following but that does not work.

// filter to show more than 50 forums on the index page
function bbp_increase_forum_per_page( $args = array() ) {
$args[‘posts_per_page’] = get_option( ‘_bbp_forums_per_page’, 100 );
return $args;
}
add_filter( ‘bbp_before_has_forums_parse_args’, ‘bbp_increase_forum_per_page’ );

I have bbp style pack and under forum display there is a line 11. No. Forums Per Page
Default : 50 I have changed that to 100 but that does not seem to work either.

How to output “fav_nonce”

Published on January 23rd, 2019 by kanonkanonka

How can I output “fav_nonce” to front page etc.?

Since I want to output the “favorite button” to the front page, I need to output “fav_nonce” for that.

Could you tell me how to do this?

Feature to Move Topic to different, related Forum

Published on January 22nd, 2019 by Phillip Burger

My request / idea for this topic comes from being involved in WordPress.com and WordPress.org forums. As people in these forum may know, there is a lot of confusion about where to input topics when people need help with WordPress. Because of this confusion, it leads to many Topics (basically support tickets) in the wrong forums.

An example of this is when people post to the WordPress.com forums for a question about a self-hosted WordPress site. This takes the staff and volunteers working on WordPress.com away from supporting that system and instead causes a need to support this other question and most of the support is educating the difference in .com and .org. Once those replies go the tickets, some people opening the topics are still not sure what to do – and telling them “go to the other forum” might be confusing, and at the least will cause duplicate work.

So, the idea: a feature in bbPress that allows a forum (in this example, the WordPress.org forum) staff to “pull” a topic from another forum (WordPress.com forum) and get the data setup as a topic in the forum where it makes sense.

Ideally, this would pull over the threaded history, somehow note the users in the discussion as users of the old forum or the new forum (maybe call user: username[wordpress.org] vs username), and tags as needed…and then allow the discussion to continue on the new forum while noting the move and closing the ticket on the old forum.

There is a problem that the user opening the topic needs to exist – and the user in WordPress.com may only exist in that system, so one option would be that part of pulling the topic over would do an automated user creation behind the scenes on the “new forum” if a simple search did not find the user to assign the topic to in the new forum.

I also think that in order to do some kind of migration of topic from the UI side (just past in a URL and basically “scrape” the data) would be nice but for the better administration the data would be pulled with API calls and this could be done by URL and some kind of nonce/code that only a staff members who has high access on both forums would know/generate. They log in to the old forum, go to the Topic they want to copy and click something to enable the copy – this would give them the nonce/code. They go to the new forum and note where they are pulling from URL, the nonce/code and the user they want to assign the topic to in the new forum.

This is a long winded explanation, but I think similar to other situations where a company or organization could have a legitimate need for multiple forums platforms (instead of just splitting by forum in one site) and a method to essentially “move a topic to the right forum” could have a nice benefit – not to mention the simplification of support for the WordPress community.

I would love feedback and if this is something useful, it would be great to know what the next steps are to follow through.

(this is a similar idea to what is in https://bbpress.org/forums/topic/copyduplicate-topic-into-another-forum/ but it seems different so I did not just put a reply there)

I want to use “add to favorite topic button” in loop of topic list

Published on January 22nd, 2019 by kanonkanonka

I use bbp_topic_favorite_link to display “add to favorite topic button”.

But this button does not work within the loop below to display the topic list.

<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  <article>
    <h2><?php the_title();?></h2>
    <?php bbp_topic_favorite_link( array( 'topic_id' => ''.$post->ID.'', ) ); ?>
  </article>
<?php endif; endwhile; ?>	

When I click on the button, “Add to favorites” can be done, but the page will be reloaded.

Why will it be reloaded in the loop, although it will not be reloaded on the topic page?

How do I stop reloading?

where is edit-form.php used?

Published on January 22nd, 2019 by okhitblog

I’m trying to add the imageshack toolbar to my edit form, and I added it under the “post_content” field in edit-form.php but it’s not showing up anywhere.

It worked when I just stuck it at the bottom of post-form.php, under the part about “Enter a few words (called tags)”

I see a second “post_content” field in post-form.php … is this redundant code?

It seems like this edit form should just be in edit-form.php and therefore changes only need to be made there and called when necessary (add presented as such depending on if it’s a reply/new post/edit/etc…

Also, when trying to add it to the Reply form (in topic.php) I see a call to post_form();.

Logic (in my mind) would have it that this function is in the file called post-form.php – which I’ve already added the toolbar too, as well as added it to edit-form.php.

So where is this post_form(); located? 🙂

(I”m really not trying to be a pain in the butt!)

BTW, this is the imageshack toolbar:

<iframe src=”http://www.imageshack.us/iframe.php?txtcolor=C0C0C0&type=blank&size=30″ scrolling=”no” frameborder=”0″ width=”300″ height=”90″ allowtransparency=”true”> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>

You can see it in action on https://okhithq.com/ when you create a new post, but no where else.

We need some advice

Published on January 22nd, 2019 by Jing

We would like to add a section for helpdesk and user suggestions.

We would like to list this section as a separate component of our Forum section.

What shall we do to display the helpdesk section separate from the rest of the discussions using bbPress?

How to insert ads?

Published on January 22nd, 2019 by misha96

Hi,

how can i insert ads to bbpress forum? Is it possible only via advanced ads paid version?

Thanks

Skip to toolbar