Search Results for 'code'
-
Search Results
-
hi,
I am trying to parse pasted text into something else, where the simplest thing is to change :spade: :club: :diamond: and :heart: to be visualized as ♠♣♦ and ♥ but my solution is not working.In the Theme files I edited functions.php by adding the following code (in the staging environment)
// Function to replace suit representations with symbols function replace_suit_symbols($hand_history) { // Replace suit representations with symbols $hand_history = str_replace(':spade:', '♠', $hand_history); $hand_history = str_replace(':heart:', '♥', $hand_history); $hand_history = str_replace(':diamond:', '♦', $hand_history); $hand_history = str_replace(':club:', '♣', $hand_history); // Return the modified hand history return $hand_history; }
But when I write “:spade”, for instance, nothing changes. What am I missing?
Hello Theme, WP 6.4.3, bbPress 2.6.9.I am trying to replace the titles for Voice and Replies with dashicons like the WordPress forums are styled. I am using the code below, and it works in that it adds the dashicon, but it doesn’t remove the words.
/*topic titles*/ .bbpress .forum-titles { overflow: hidden; } .bbpress .forum-titles .bbp-topic-voice-count::before, .bbpress .forum-titles .bbp-topic-reply-count::before { font: 400 16px/1 dashicons; margin-right: 100px; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } .bbpress .forum-titles .bbp-topic-voice-count::before, .bbpress .forum-titles .bbp-topic-reply-count::before { font: 400 21px/1 dashicons; margin-left: 20px; } .bbpress .forum-titles .bbp-topic-voice-count::before { content: "\f307"; } .bbpress .forum-titles .bbp-topic-reply-count::before { content: "\f125"; } .bbpress li.bbp-header li.bbp-forum-info, .bbpress li.bbp-header li.bbp-topic-title { text-align: left !important; } /*forum titles*/ .bbpress .forum-titles { overflow: hidden; } .bbpress .forum-titles .bbp-forum-topic-count::before, .bbpress .forum-titles .bbp-forum-reply-count::before { font: 400 16px/1 dashicons; margin-right: 100px; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } .bbpress .forum-titles .bbp-forum-topic-count::before, .bbpress .forum-titles .bbp-forum-reply-count::before { font: 400 21px/1 dashicons; margin-left: 20px; } .bbpress .forum-titles .bbp-forum-topic-count::before { content: "\f307"; } .bbpress .forum-titles .bbp-forum-reply-count::before { content: "\f125"; } .bbpress li.bbp-header li.bbp-forum-info, .bbpress li.bbp-header li.bbp-topic-title { text-align: left !important; }
Topic: HTML code appears on forums
Hi,
I’m been seeing some post with HTML code when the teacher answers the questions. We are integrated with Learndash and they told me to comment this with you too.
Thanks,
MariaOn this page – https://thebakersjunction.com/forums/
the footer code comes up as text.I disabled all plugins one by one. When i disabled G5 Core plugin the problem on this page disappeared but my entire site template got broken.
I guess it is a conflict between bbpress and g5 core.
Pls help
Pulling my hair out on this one – Forums and Topics work just fine in the admin and in the front-end. However, Replies totally crash the site – on the front-end, they just fail quietly, but Add New on the Replies page in admin causes WordPress to fail. Trying to track down what could possibly cause this, because it feels really strange!
Copying over the first 100 lines or so of the stack trace to see if ANYONE has any idea what could be causing this.
Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '1024' frames at /www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-object-cache.php:141 at WP_Object_Cache->is_valid_key() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-object-cache.php:364) at WP_Object_Cache->get() (/www/kinsta/public/internationalmidwivesorg/wp-includes/cache.php:154) at wp_cache_get() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-post.php:240) at WP_Post::get_instance() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post.php:1036) at get_post() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post.php:1495) at get_post_type() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/common/template.php:454) at bbp_is_reply() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:544) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405) at bbp_get_reply_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:549) at bbp_get_reply_title_fallback() (/www/kinsta/public/internationalmidwivesorg/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/plugin.php:205) at apply_filters() (/www/kinsta/public/internationalmidwivesorg/wp-includes/post-template.php:174) at get_the_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/topics/template.php:603) at bbp_get_topic_title() (/www/kinsta/public/internationalmidwivesorg/wp-content/plugins/bbpress/includes/replies/template.php:1405)
Hello,
While trying to access users from admin menu, I am getting a fatal error and when enabling the debug mode, I am getting this error message:
Fatal error: Uncaught Error: Call to undefined function bp_core_get_user_domain() in /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/members.php:229 Stack trace: #0 /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/members.php(100): BBP_BuddyPress_Members->get_profile_url(2) #1 /home/islandbnb/public_html/wp-includes/class-wp-hook.php(324): BBP_BuddyPress_Members->get_user_profile_url(2) #2 /home/islandbnb/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(2, Array) #3 /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/core/abstraction.php(471): apply_filters('bbp_pre_get_use...', 2) #4 /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/users/template.php(560): bbp_maybe_intercept('bbp_pre_get_use...', Array) #5 /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/admin/users.php(260): bbp_get_user_profile_url(2) #6 /home/islandbnb/public_html/wp-includes/class-wp-hook.php(324): BBP_Users_Admin->user_row_actions(Array, Object(WP_User)) #7 /home/islandbnb/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #8 /home/islandbnb/public_html/wp-admin/includes/class-wp-users-list-table.php(520): apply_filters('user_row_action...', Array, Object(WP_User)) #9 /home/islandbnb/public_html/wp-admin/includes/class-wp-users-list-table.php(415): WP_Users_List_Table->single_row(Object(WP_User), '', '', 0) #10 /home/islandbnb/public_html/wp-admin/includes/class-wp-list-table.php(1709): WP_Users_List_Table->display_rows() #11 /home/islandbnb/public_html/wp-admin/includes/class-wp-list-table.php(1636): WP_List_Table->display_rows_or_placeholder() #12 /home/islandbnb/public_html/wp-admin/users.php(814): WP_List_Table->display() #13 {main} thrown in /home/islandbnb/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/members.php on line 229