Skip to:
Content
Pages
Categories
Search
Top
Bottom

I am looking for a key to enter the value of “Reply Attributes”.

Published on January 5th, 2019 by mariririn

I am implementing comment function by AJAX. At the moment wp insert post is used. However, this function does not have a key for entering three values of “reply attribute”.

In other words, I want to input three values “forum ID”, “topic ID” and “Reply To ID” with wp insert post.

It key is like the next “???” .

wp_insert_post(array(
    'post_title'   => (string)$_POST['replyTitle'],
    'post_content' => (string)$_POST['replyContent'],
    'post_status'  => 'publish',
    'post_author'  => get_current_user_id(),
    'post_type'    => 'reply'
    '???'          => (string)$_POST['forumID'],
    '???'          => (string)$_POST['topicID'],
    '???'          => (string)$_POST['replyToID'],
), true);

How can I register these three values with wp insert post?

I look forward to your response.

User’s replies / topics outside the profile page

Published on January 5th, 2019 by chaaampy

WP : 5.0.2
bbPress : 2.5.14
Theme : Custom (built with _S)

Hi everyone,

Im trying to simply display the number of “points” earned by the current user (points = replies + topics), but outside the profile page (in my header actually, so basically on my whole website).

Here is what I tried :

<?php

$topics = bbp_get_user_topic_count_raw();
$replies = bbp_get_user_reply_count_raw();

$totalTopics = $topics * 5;
$totalsReplies = $replies * 2;

$points = $totalTopics + $totalsReplies;

echo ” points = $points.”;

?>

When Im on the user’s profile page, this code worked lovely, but when Im outside of this page, anywhere on my website, it displays nothing.
Any idea of what is exactly my issue ?

Cheers,

Chaaampy.

About replying custom field security

Published on January 5th, 2019 by mariririn

I want to check if the custom field at reply is “AllowedURL”.

If applicable to “AllowURL”, I would like to have the custom field value go into the database, but can you tell me the correct way to write the following code?

add_action( 'bbp_new_reply', 'bbp_save_reply_extra_fields', 10, 1 );
add_action( 'bbp_edit_reply', 'bbp_save_reply_extra_fields', 10, 1 );

function bbp_save_reply_extra_fields( $reply_id ) { 
	
	$input_url = $_POST['input_url'];
	
	$AllowURL = [
		'^http?://example.com/[^/]{10}$',
		'^http?://example.net/[^/]{20}$' 
	];
	
	foreach ( $AllowURL as $AU ){
		if( @preg_match( '|'.$AU.'|', $input_url ) ) {
			if ( isset($_POST) && $_POST['input_url']!='' ) {
				update_post_meta( $reply_id, 'input_url', $_POST['input_url'] );
			}
		}
	}
	
}

I look forward to your response.

Bbpress should support schema

Published on January 4th, 2019 by odevbul

Hello there
I love bbpress. But schema doesn’t support it. Is there a study on this topic?

Kunena 5 to bbpress

Published on January 4th, 2019 by chris72a

Hi All just wondering if there are any tools out there to migrate from Kunena 5 to bbpress, want to get away from joomla and move to wp. I see the tool supports Kunena3 but don’t seem to have any success with v5

Many Thanks
Chris

Missing Reply Toolbar

Published on January 2nd, 2019 by trayzio

WP: 4.9.8
bbp: 2.5.14
https://graysentinels.com/forums

Problem, the Toolbar for replies is missing. We’ve confirmed that this issue appears with our theme, edge Elritch 1.2. Tested with the Twenty Fifteen theme and the toolbar appears.

Thanks for your time!
-trayzio

Why is the post ID so high?

Published on January 1st, 2019 by Foliferous

Take a look at this thread here and look at the post numbers in the top right corner of each post.

This is a freshly installed forum, not many users yet, just a few posts and topics, and yet the ID of the posts is far above 1000.

Is that normal? Like, does it start with a random number, or should the first post of the forum start with #1?

Thanks.

BBPress Forum Has Problem With Theme

Published on December 31st, 2018 by roguedarthskywalker

Hello,

I am using the Ronneby theme by dfd on my site. It has a footer section that lets me put a page (like my contact form page) in the footer of my site but on my forum pages, it shows up as strings rather than what it should actually look like… is anyone else having this problem? How can I fix it?

Handling of links

Published on December 31st, 2018 by tapiohuuhaa

Hi

Handling of links behaves a little bit annoying

  1. When transforming link as blockquote, bbPress strip off anchor.
  2. Linking to external bbPress page, bbPress does not add target=”_blank” to the link, which is annoying.
  3. bbPress doesn’t always convert link to another bbPress-page as iframe (see. https://www.sanaristikkofoorumi.net/wordpress/forums/topic/ongelmia-visuaalisen-editorin-kanssa/#post-9373 – there first the link to this site was first inside a blockquote, but next time inside iframe.

username place holder in emails

Published on December 31st, 2018 by andrew55

I am using the “bbPress Custom Reply Notifications” plugin to send bbPress emails. I’m able to use “author” placeholder/token successfully, so the author’s name appears in the sent email when a new topic or reply is posted.

Is there a placeholder for “username” to indicate the username of the person the email is being to?

I thought this would be great, as some people forget they signed up the forum and get an email weeks months later. Having “hi username…” would help them remember it’s something they signed for and not a spam, and it more personable.

Thanks for any suggestions.

Skip to toolbar