Search Results for '+.+default+.+'
-
Search Results
-
Hello all, recently upgraded to PHP 7.2 on WPengine and our BBpress Forums has decided to throw a HTTP error 500.
The error message shown in log:
[Wed Nov 21 2018] [php7:error] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function blockchain_replace_the_title(), 1 passed and exactly 2 expected in /nas/content/live/ep18/wp-content/themes/blockchain/inc/default-hooks.php:60\nStack trace:\n#0 [internal function]: blockchain_replace_the_title(‘Forums’)\n#1 /nas/content/live/ep18/wp-includes/class-wp-hook.php(286): call_user_func_array(‘blockchain_repl…’, Array)\n#2 /nas/content/live/ep18/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘Forums’, Array)\n#3 /nas/content/live/ep18/wp-content/plugins/bbpress/includes/core/theme-compat.php(519): apply_filters(‘the_title’, ‘Forums’)\n#4 [internal function]: bbp_template_include_theme_compat(‘/nas/content/li…’)\n#5 /nas/content/live/ep18/wp-includes/class-wp-hook.php(286): call_user_func_array(‘bbp_template_in…’, Array)\n#6 /nas/content/live/ep18/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘/nas/content/li…’, Array)\n#7 /nas/content/live/ep18/wp-content/plugins/bbpress/includes/core/sub-actions.php(436): apply_filters(‘bbp_temp in /nas/content/live/ep18/wp-content/themes/blockchain/inc/default-hooks.php on line 60, referer: https://ep18.wpengine.com/
Can anyone help?
Is BBpress compatible with PHP 7.2?
Thanks
BenI’m trying to write a conditional statement to auto tag new topics based on forum.
This is what I have so far
add_action ( 'bbp_insert_topic', 'myprefix_assign_tag_to_post' , 10, 1 ); add_action ( 'bbp_new_topic', 'myprefix_assign_tag_to_post', 10, 1 ); add_action ( 'bbp_edit_topic', 'myprefix_assign_tag_to_post', 10, 1 ); function myprefix_assign_tag_to_post($topic_id) { if( bbp_is_forum ( '168' ) && bbp_current_user_can_publish_topics() ) { wp_set_post_terms( $topic_id, 'introductions', 'topic-tag', true ); } elseif( bbp_is_forum ( '1343' ) && bbp_current_user_can_publish_topics() ) { wp_set_post_terms( $topic_id, 'discovery', 'topic-tag', true ); } }
The problem is, this automatically tags the new topics with “Introductions” regardless of the forum. I tried replacing ‘bbp_is_forum’ with ‘bbp_is_single_forum’, and the same thing happens. I’ve tried replacing it with ‘bbp_is_forum_archive’ and nothing happens. I’ve even tried replacing the ID with slug, with and without the single quotes, trying it with just one IF statement, and I’m not getting the desired results.
I also tried using is_page, hoping it would be using the default WordPress call since it used in the functions.php for topics. No joy.
So, if someone could please tell me what I should be using instead of is_forum, is_single_forum, is_etc, that would be great.
I’ve been working on a converter to import our Invision v4 forum to bbPress. I’ve got the users, forums and topics all importing reasonably well.
https://github.com/EnhancedAthlete/bbPress-Invision-v4-Converter
I’m having trouble with the titles which are stored in a language table:
core_sys_lang_words
| word_id | ... | word_app | ... | word_key | word_default | word_custom | ... | 8379 | ... | forums | ... | forums_forum_2 | Generic Discussion | Generic Discussion | ...
To retrieve a single forum title, I can use:
SELECT word_default as forum_name FROM ipbforum.core_sys_lang_words WHERE word_key = CONCAT('forums_forum_', 2)
or to retrieve them all, something like:
SELECT word_default FROM ipbforum.core_sys_lang_words WHERE word_app = 'forums' AND word_key IN (SELECT CONCAT(prefix, id) FROM (SELECT 'forums_forum_' as prefix, ipbforum.forums_forums.id FROM ipbforum.forums_forums) AS t)
Or all with the forum ids:
SELECT ipbforum.core_sys_lang_words.word_default as forum_name, word_key_table.forum_id as forum_id FROM ipbforum.core_sys_lang_words, (SELECT CONCAT(prefix, id) AS word_key, id AS forum_id FROM (SELECT 'forums_forum_' AS prefix, ipbforum.forums_forums.id FROM ipbforum.forums_forums) AS temp) AS word_key_table WHERE ipbforum.core_sys_lang_words.word_key = word_key_table.word_key
but I’m struggling to figure out how to write that in the
BBP_Converter_Base
extended classfield_map[]
.I’ve looked at some other converters and don’t see anything similarly complicated so I’m assuming there’s a more straightforward way.
Any pointers appreciated! Once this is figured, the converter should be good enough for most people’s use.
Hi!
So….aaaallll I really want to do is change the default URL path for each new forum.
I do not want the word ‘forum’ to be in any URL, not ever. I want the word ‘forum’ to be ‘chat’ — not ‘forum’….
Example:
– current default URL path: https://sitename.com/interaction/talk-name/forum/
– desired default URL path: https://sitename.com/interaction/talk-name/chat/No matter what I do to set it up in the ‘settings’ area in WordPress, ‘forum’ is tacked on to the end of the URL….I don’t want the term, ‘forum’ to be ANYWHERE — I want ‘chat’ to be there instead.
Suggestions?