Skip to:
Content
Pages
Categories
Search
Top
Bottom

What is _bbp_activity_id and do I care about it?

Published on October 16th, 2015 by TKServer

I’m creating a custom threaded forum view. From there users can post or reply, so I’ve created my own reply dialogue in a modal window. I’ve got it posting the reply to the database fine and now I’m at the wp_postmeta end of things setting that up to input the proper metadata.

_bbp_activity_id is where I’m wondering. What is this? I see what looks to be a sequential set of numbers for the value.

The other meta items seem pretty self explanatory.

Query topics with WP REST API

Published on October 16th, 2015 by Loc Pham

Hi,
I’m using the beta WP-REST API (beta version 2) to enable REST calls. Some endpoints do work if I add show_in_rest=>true to register_post_types() and register_taxonomies() methods in bbpress.php. With the show_in_rest flag, it allowed me to run the following endpoints:
http://localhost:8888/wp-json/wp/v2/forum
http://localhost:8888/wp-json/wp/v2/taxonomies
http://localhost:8888/wp-json/wp/v2/terms/topic-tag
http://localhost:8888/wp-json/wp/v2/topic

My bbPress website has two forums called “Politics” and “Sports”. I’d like to query all topics in a specific forum, but I’m unable to query with the following endpoints:

http://localhost:8888/wp-json/wp/v2/topic?filterforum_type=sports

How should I filter topics from a certain forum?
Thanks.

HTML dont works at bbpress homepage

Published on October 16th, 2015 by Shevsky228

Hi, i have a problem, at bbpress homepage (site.com/forums) forums and topics displays without html (screen 1, screen 2), and this trouble only on homepage! in topic and forum page its ok – clip2net.com/clip/m393690/fd9dc-clip-75kb.png?

what’s wrong? i tried to reinstall bbpress many times, but it didnt help :/

and i’m sorry 4 my bad english, but pls help me anyone

get user-id of $topic_id

Published on October 16th, 2015 by ChrissiLisa

Hello,

how can i get the user-id with $topic_id (topic starter) ?

check if current, logged in user has just made a post in a specific forum

Published on October 16th, 2015 by ChrissiLisa

Hello,

how can I check if the current, logged in user has just made a post in a specific forum ?

Thanks,
Chrissi

Reply’s above the site (header)

Published on October 16th, 2015 by kubert

Hello guys..
Can someone tell me why the replys is showing above the topic on my site, its seems like its replacing the header or something

View post on imgur.com

Second avatar image for donator

Published on October 16th, 2015 by tomtower

Hi to everybody,
is possibile to add second avatar for who donate for site?
like this
null

Reply date format based on ISO 8601

Published on October 15th, 2015 by Loc Pham

Hello,

Is there a way to specify the date format use in bbPress? In various places of bbPress, the date format do complies to IOS 8601 standard and prints the ‘T’ element to specify the beginning of ‘time’ element like: 1994-11-05T08:15:30-05:00

Conversely, if I print bbp_get_reply($id) the format DOESN’T conform to ISO 8601 and prints the following: 1994-11-05 08:15:30-05:00. Notice that ‘T’ is missing. Its inconsistencies breaks my code in various places and wonder if there’s a way to specify the output?

Thanks
Loc

Wrong bbp_get_reply_url() when paging with reverse order

Published on October 15th, 2015 by gperez-tl

Hi.
I’m showing my replies as a timestream, meaning I display the newest replies above the oldest one. Like this:

function custom_bbp_reorder_replies($args) { 
    
  $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending) 
  return $args;
}
add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_reorder_replies' );

Well, in My Replies Created I’m showing a list of replies with a link to corresponding thread like this:

<a href=" <?php echo bbp_get_reply_url() ?>" class="bbp-topic-edit-link">...</a>

But that is not working because bbp_get_reply_url() is considering default order instead of reverse. So, when doing this it returns the wrong page:

$reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );

(that code is in includes/replies/template.php, line 487)

Maybe a hook around there would help.

By now I’m not sure how to solve it for myself.

Reply permalink directs to wrong page number (topic/topicname/page/2/#post-1010)

Published on October 15th, 2015 by project_subdomain

Hi!
In my topics the bbp-reply-permalink (that with the number like #1010) does not jump to the specific reply as soon as there are more pages.

Once a new page started, the url of all new replies permalinks on page 1 try to direct to a non-existing url on page 2, eg: /forums/topic/topicname/page/2/#post-1010. Every reply’s permalink on page 2 then tries a redirect to a non-existing url on page 1, eg /forums/topic/topicname/#post-1050.

Suspected changes in the reply order to be the fault, but deactivating the custom code to get edited replies to the top as well as setting default order of replies did not have any effect.

Would be very thankful for any help!

Skip to toolbar