Search Results for 'test'
-
Search Results
-
I use the post publication schedule.
All new posts are displayed through the tracker “latest topics” at my main page.
Ок, the schedule publication, for example, at 14 00, appears at 14 00 in the tracker . But it does not appear at the top, the time-stamp will be lower. For example, at 8: 00, displaying the real creation time for the schedule.Is’s solvable?
May be there are special plugins or life hacks?Please advise – how to solve this problem.
Hi,
I have created a custom notification for my site when a post is published, if i have buddypress activated alone i see the notification text but as soon as i activate bbpress i can no longer see the notification description. In order to work out this was happening when bbpress was activated i created a whole new blank install of wpress and only installed the two plugins and when i deactivated bbpress it showed the text.
this is how the notification shows when bbpress is activated
https://www.dropbox.com/s/uepps9cjcd8xan5/With%20BbPress%20no%20text.PNG?dl=0this is how the notification shows when bbpress is NOT activated
https://www.dropbox.com/s/03wch6bc27nsked/Without%20BbPress%20showing%20text.PNG?dl=0I am using Twenty seventeen as the theme, bbpress version 2.5.14, buddypress version 4.1.0 and the latest version of wordpress
The code i have used to generate the notification is below, and this is located in \wp-content\plugins\bp-custom.php
<?php // this is to add a fake component to BuddyPress. A registered component is needed to add notifications function custom_filter_notifications_get_registered_components( $component_names = array() ) { // Force $component_names to be an array if ( ! is_array( $component_names ) ) { $component_names = array(); } // Add 'custom' component to registered components array array_push( $component_names, 'publishpost' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' ); // this hooks to post creation and saves the post id function bp_custom_add_notification( $post_id, $post ) { $post = get_post( $post_id ); $author_id = $post->post_author; bp_notifications_add_notification( array( 'user_id' => $author_id, 'item_id' => $post_id, 'component_name' => 'publishpost', 'component_action' => 'publishpost_action', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } add_action( 'publish_post', 'bp_custom_add_notification', 99, 2 ); function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'publishpost_action' === $action ) { $post = get_post( $item_id ); $custom_title = $post->post_author . ' published a new post ' . get_the_title( $item_id ); $custom_link = get_permalink( $post ); $custom_text = $post->post_author . ' published a new post ' . get_the_title( $item_id ); // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'publishpost_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'publishpost_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 10, 5 );
I need to get it so that when bbpress is activated i can see the custom notification description as we use bbpress for our forums
I find that in email notifications, the hyphen/dash is being escaped into the character string – (em-dash) when it occurs in topic titles, forum titles and user display names. I have not tested forum names.
For a topic with the title as on the following line:
Hyphen – endash – emdash — nonbr hyphen ‑ figure dash ‒
all these characters survive except for the first hyphen/minus sign. If this same sequence is included in the body of a topic, it is delivered OK, so this is NOT a WP server or email issue. This does not occur in notifications for a WP post, so I believe it is a bbPress issue.I have tested this under WP v5.0.3 and with bbPress v2.5.14 the only active plugin and with the theme Twenty Nineteen.
Hi, I want to display 3 latest topics with new replies for each forum category. In loop-single-forum.php file I created this:
$count = bbp_get_forum_topic_count(); $user = bbp_get_topic_author_id( bbp_get_forum_last_topic_id() ); if ( $count != 0 ) { echo '<a href="'. bbp_get_forum_last_topic_permalink().'"></a>'; // Link to the topic echo'<a href="'. bbp_get_user_profile_url( $user ) .'"><img class="avatar" src="'. bp_core_fetch_avatar ( array( 'item_id' => $user, 'type' => 'full', 'html' => false ) ).'" /></a>'; // Link to the topic author profile with author's avatar echo '<div class="title">'. bbp_get_forum_last_topic_title().'</div>'; // Title of the topic with last activity echo '<div class="activity">Last activity '. bbp_get_forum_last_active_time().'</div>'; // Time of the topic last activity } else { echo 'No topics'; // Information if there is no topics }
How to display two more topics (if they exist)?
I have read this topic : https://bbpress.org/forums/topic/smf-import-to-bbpress/page/7/
And currently trying to figure out the way to do it, I have massive forum. Seems forum system a bit neglected by their builder nowadays. (and I wish BBpress not the same).
Do the current version BBPress importer works with current / latest SMF?
Mine seems stucks at 5900 topic conversion something out of 13K topics. Im running conversion of 1.7gb database on xampp – localhost server with i7 and 16gb of ram with tweaked php.ini and-so-on.Yet possibly another 450k replies waiting in que… now Im worried.
Seriously, no idea to identify which database column made it stucks…