Search Results for 'code'
-
Search Results
-
Topic: Placeholder in visual editor
Hello!
First of all I want to clarify that the notifications by email if they arrive if a response is made in the subject from the frontend, in that there is no problem.I feed the forum with external information, the updates of new and old topics are published daily. This I do by means of an import code. When users subscribe to a topic and receive new answers, email does not arrive.
I suspect that is the replic’s import code.
At the beginning of the code, I identified the id of the theme to link the replic, then updated the data.
$old_topic_id = get_post_meta( $post_id, '_bbp_topic_id', true ); $post = get_posts( array( 'post_type' => 'topic', 'meta_key' => '_old_topic_id', 'meta_value' => $old_topic_id ) ); if ( $post ) { $new_topic_id = $post[0]->ID; $args = array( 'ID' => $post_id, 'post_parent' => $new_topic_id ); wp_update_post( $args ); update_post_meta( $post_id, '_bbp_topic_id', $new_topic_id ); update_post_meta( $post_id, '_edit_last', 1 ); }The import of topic and replic is a success, except for the detail that does not motivate users subscribed to forum and topic.
Regards!
Topic: Topic template settings
I am having trouble getting the topic page template to default to the same page format as my forum page. I created a custom template “bbp-sidebars” that presents my forum page with a sidebar for forum page views and topic views. The forum picks up the custom template, but the topics page ignores it and defaults to the blog view template. So far I downloaded bbp Style Pack, bbp shortcodes, bbP Tookkit, Weaver for bbPress, and What the File to see if there was a setting to accomplish my goal. I also read multiple articles on custom templates, but none address the topic layout. Also, after a new topic or topic response is posted, I can manually go in and set the page settings to have it display the way I want. While my site is growing I can probably do this, but after a certain point it will be too hard to keep up.
I am using WP 4.9.4, ForeFront theme Version 1.04 as a subtheme under GeneratePress V 2.02
My Website is https://defensecareersHQ.com PW is “VetsHelpingVets”
An example of my issue can be viewed here
https://www.defensecareershq.com/forums/topic/how-about-l-3-technologies/Also, please note I manually set the all other topic pages to display correctly. Any advice is greatly appreciated.
Topic: list of all functions
Hi,
i want to configure bbPress on my own theme. I am looking for a list of functions like https://codex.wordpress.org/Function_Reference just for bbPress. Where can I find this?
Thank you!
For our restricted members bbPress forum, I would like to display a user’s BadgeOS points below their username next to their posts/replies. I already found some code to display these points but I am not sure if it’s correct and how to make it show below the username.
function badgeos_get_users_points( $user_id = 0 ) {
// Use current user’s ID if none specified
if ( ! $user_id )
$user_id = wp_get_current_user()->ID;
// Return our user’s points as an integer (sanely falls back to 0 if empty)
return absint( get_user_meta( $user_id, ‘_badgeos_points’, true ) );
}Any help would be much appreciated!
FYI: we also use the latest versions of BuddyPress and the Boss theme.