Search Results for 'code'
-
AuthorSearch Results
-
May 26, 2020 at 7:57 am #211447
Hammy Havoc
ParticipantWhen running debug, this is one of the warnings/errors I get:
<b>Warning</b>: register_shutdown_function(): Invalid shutdown callback 'BBP_Converter_DB::__destruct' passed in <b>/home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php</b> on line <b>33</b><br /> <br />
May 26, 2020 at 7:45 am #211446Hammy Havoc
ParticipantHi all,
After about six months of a website working perfectly, one of the admins is now unable to login. They’re presented with this error in Firefox’s JSON viewer, which automatically appears after submitting their login details and landing on wp-login.php:
success false data 0 code "bbp_converter_db_connection_failed" message "Database connection failed."
Yet they are able to login just fine as other admins.
May 26, 2020 at 5:57 am #211440In reply to: How to paste text to discussion forum
Robin W
Moderatoryou could enable the visual editor
either
or
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form
May 26, 2020 at 3:56 am #211431Robin W
ModeratorMay 25, 2020 at 2:28 pm #211418In reply to: 2.6 doesn’t recognise existing WP forum roles
scabbrox
ParticipantNot sure how to easily get a list, but this is what’s in my plugins folder:
advanced-backgrounds
4 KB
Apr 2, 2020, 2:12 PM
httpd/unix-directory
0755advanced-css-editor
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755advanced-custom-fields-pro
4 KB
Today, 5:51 PM
httpd/unix-directory
0755akismet
4 KB
Apr 30, 2020, 11:45 AM
httpd/unix-directory
0755all-in-one-wp-migration
4 KB
May 18, 2020, 4:13 PM
httpd/unix-directory
0755all-in-one-wp-migration.6.77.zip
331.74 KB
Dec 15, 2019, 11:54 AM
package/x-generic
0644bbp-private-groups
4 KB
May 22, 2020, 11:17 AM
httpd/unix-directory
0755bbp-style-pack
4 KB
May 8, 2020, 4:37 PM
httpd/unix-directory
0755bbp-toolkit
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755bbp-user-online-status
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755bbpress
4 KB
Jan 30, 2020, 4:43 PM
httpd/unix-directory
0755bbpress-enable-tinymce-visual-tab
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755bbpress-mark-as-read
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755bbpress-wp-tweaks
4 KB
Jan 15, 2020, 10:12 AM
httpd/unix-directory
0755bbpress2-shortcode-whitelist
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755bp-custom.php
302 bytes
Nov 14, 2019, 2:05 PM
application/x-httpd-php
0644bsp_test.css
134 bytes
Nov 14, 2019, 2:05 PM
text/css
0644bspstyle.css
12.2 KB
Nov 14, 2019, 2:05 PM
text/css
0644buddypress
4 KB
May 15, 2020, 2:15 PM
httpd/unix-directory
0755category-featured-images-extended
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755contact-form-7
4 KB
May 22, 2020, 11:17 AM
httpd/unix-directory
0755custom-sidebars
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755extended-widget-options
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755facebook-pagelike-widget
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755gd-bbpress-attachments
4 KB
May 13, 2020, 4:18 PM
httpd/unix-directory
0755gd-bbpress-tools
4 KB
May 13, 2020, 4:18 PM
httpd/unix-directory
0755godlike-core
4 KB
Today, 1:00 PM
httpd/unix-directory
0755google-analytics-dashboard-for-wp
4 KB
Feb 26, 2020, 3:41 PM
httpd/unix-directory
0755index.php
28 bytes
Nov 14, 2019, 2:05 PM
application/x-httpd-php
0644jetpack
4 KB
May 6, 2020, 7:51 AM
httpd/unix-directory
0755js_composer
4 KB
Apr 25, 2020, 3:27 PM
httpd/unix-directory
0755kirki
4 KB
May 22, 2020, 11:17 AM
httpd/unix-directory
0755list-category-posts
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755lock-user-account
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755login-with-ajax
4 KB
Jan 24, 2020, 9:34 AM
httpd/unix-directory
0755mailchimp-for-wp
4 KB
Apr 28, 2020, 4:44 PM
httpd/unix-directory
0755members
4 KB
Apr 29, 2020, 1:07 AM
httpd/unix-directory
0755menu-icons
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755mycred
4 KB
May 8, 2020, 4:37 PM
httpd/unix-directory
0755nav-menu-roles
4 KB
Mar 28, 2020, 3:21 PM
httpd/unix-directory
0755nk-themes-helper
4 KB
May 6, 2020, 7:51 AM
httpd/unix-directory
0755nk-woocommerce-swatches
4 KB
Jan 26, 2020, 11:20 AM
httpd/unix-directory
0755notification
4 KB
Apr 22, 2020, 10:14 AM
httpd/unix-directory
0755notification-bbpress
4 KB
May 18, 2020, 4:11 PM
httpd/unix-directory
0755notification-buddypress
4 KB
May 18, 2020, 4:14 PM
httpd/unix-directory
0755paypal-donations
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755post-views-counter
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755quick-pagepost-redirect-plugin
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755recent-posts-widget-with-thumbnails
4 KB
Jan 15, 2020, 10:13 AM
httpd/unix-directory
0755revslider
4 KB
May 17, 2020, 11:57 AM
httpd/unix-directory
0755sociality
4 KB
Apr 23, 2020, 9:53 AM
httpd/unix-directory
0755tinymce-advanced
4 KB
Apr 2, 2020, 2:12 PM
httpd/unix-directory
0755tomparisde-twitchtv-widget
4 KB
Apr 30, 2020, 6:56 PM
httpd/unix-directory
0755ttv-easy-embed
4 KB
Mar 11, 2020, 1:58 PM
httpd/unix-directory
0755updraftplus
4 KB
Today, 11:53 AM
httpd/unix-directory
0755user-role-editor
4 KB
May 5, 2020, 10:13 AM
httpd/unix-directory
0755usp-helper
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755usp-pro
4 KB
Apr 9, 2020, 3:30 PM
httpd/unix-directory
0755w3-total-cache
40 KB
Apr 29, 2020, 1:07 AM
httpd/unix-directory
0755woocommerce
4 KB
May 22, 2020, 11:17 AM
httpd/unix-directory
0755woocommerce-admin
4 KB
May 19, 2020, 12:53 PM
httpd/unix-directory
0755wow-recruitment-legion
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755wp-discord
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755wp-google-maps
4 KB
May 8, 2020, 4:37 PM
httpd/unix-directory
0755wp-optimize
4 KB
Apr 2, 2020, 2:11 PM
httpd/unix-directory
0755wp-slimstat
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755wp-smushit
4 KB
May 19, 2020, 12:53 PM
httpd/unix-directory
0755wpcat2tag-importer
4 KB
Dec 15, 2019, 12:04 PM
httpd/unix-directory
0755youtube-embed-plus
4 KB
Apr 17, 2020, 3:40 PM
httpd/unix-directory
0755May 25, 2020 at 2:01 pm #211416In reply to: 2.6 doesn’t recognise existing WP forum roles
Robin W
Moderatorok, thanks for the update.
I loaded your code in my test site and it works fine – eg I can allocate someone to warlord.
what plugins do you have on your site?
May 25, 2020 at 10:17 am #211408In reply to: 2.6 doesn’t recognise existing WP forum roles
Robin W
Moderatorcustom roles work on my test site under2.6
I’ll load your code onto my test site later and see if it works there.
May 25, 2020 at 9:09 am #211405g28f99
ParticipantHi, Robin. I think the above goal to apply the customization only in some specified forums should be practical. For example, I do NOT want the above customization to take effects in two forums with forum id 124 and 126. Or, alternatively, I do NOT want the customization to take effects in forums with menu_order < 10.But I could not find any previous posts with codes to set the effective range among forums.
How do you think about it? I have no idea how to integrate the following selection information into the above customization code. Could you please make a demonstration?$current_forum_id = get_forum_id(); if $current_forum_id !==124 AND $current_forum_id !==126
May 25, 2020 at 4:22 am #211395In reply to: Random Replies being marked Pending
jamnet.kr
ParticipantIs this code can I using in functions.php? Not in the child theme…
May 24, 2020 at 9:58 am #211378In reply to: Last reply author’s name in loop-single-topic?
Robin W
Moderatorok, understand
if you just want that then
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 ); function rew_bbpress_translate( $translated, $text, $domain ) { if ($domain == 'bbpress') { $words = array( 'Reply To:' => 'Svar till:', ); $translated = str_replace( array_keys($words), $words, $translated ); } return $translated; }
Put this in your child theme’s function file – or use
May 24, 2020 at 5:15 am #211375g28f99
ParticipantSo I shall finalize the code for others for reference use. One last optimization for this topic so that it is really powerful:
I may set forums with “menu_order” <10 (class=”screen-reader-text”) as admin purpose forums and do not want to apply above customization setting. Can I really achieve that goal with some condition setting?May 24, 2020 at 2:37 am #211363In reply to: Make Forum Full Width
Robin W
Moderatorlooks pretty full width to me – have you refreshed your browser?
the theme is setting a width of 90% well before bbpress gets involved.
you could try
.both-sidebars .container { width: 100% !important ; }
but that will affect the whole site
May 24, 2020 at 2:28 am #211361Robin W
Moderatoradd_action( 'bbp_theme_after_reply_content', 'new_reply_additional_fields', 10 ); function new_reply_additional_fields() { $new_reply_additional_fields = 'Above is my personal opinion'; echo "<p id='new_reply_additional_fields'><font color=red font size='4pt'>".$new_reply_additional_fields."</p>"; }
May 24, 2020 at 12:53 am #211360In reply to: User input field change
jayapramod
ParticipantNothing changed… I applied this as:
1. created child theme folder in my — wp-content >> themes >> astra-child
2. created functions.php file inside that folder with provided code.
3. Showed in themes list.
On viewing my discussion page nothing changed.
May 23, 2020 at 7:29 pm #211359g28f99
ParticipantThank you again!
I also hope to add specified sentence after user personalized replies.add_action( 'bbp_theme_after_reply_content', 'new_reply_additional_fields', 10 ); function new_reply_additional_fields() { $new_reply_additional_fields = 'Above is my personal opinion'; echo "<p id='new_reply_additional_fields'><font color=red font size='4pt'>$new_reply_additional_fields</p>";
Using above code directly also induce wordpress website error. To permanently show above sentence after every reply, I suppose it should be saved into metabox. Could you please help manage how to integrated into above code to solve this problem?
May 23, 2020 at 5:09 pm #211358Topic: Make Forum Full Width
in forum InstallationBGNMGUY
ParticipantI would like to make my forum full width on all devices but I am unsure how to do so, even after viewing other forum posts and using their tips. Can someone please help me with code that will solve this problem? Thanks in advance!
Link to my forum: https://vetteenthusiast.com/forums/forum/the-fiberglass-forum/
May 23, 2020 at 4:51 pm #211357In reply to: Last reply author’s name in loop-single-topic?
kasperdalkarl
ParticipantThanks again for your amazing help!
I did as you asked, and I realized a few things.
Adding your code in form-reply.php only changed how it looks in the reply form, i.e. when you open a thread and scroll down to the actual box where you write replies.
What I realised is that “Reply To:” that shows in the forums is actually not from code, it’s automatically added to the topic name when someone answers a thread.
So the follow up question is, can you somehow in bbpress change so replies doesn’t add “Reply To”, I would like to change it to the Swedish equivalent: “Svar till:”. And is it possible then to add what we tried earlier with the avatar+name in front of the name of the topic reply?
Thanks a lot!
May 23, 2020 at 3:51 pm #211355In reply to: Last reply author’s name in loop-single-topic?
Robin W
Moderatorok so change
<div class="nk-gap-2"></div>
to
<div class="nk-gap-2"></div> <?php $reply_id = bbp_get_topic_last_reply_id () ; echo '<span class="bbp-reply-author">'.bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) ) ; ?>
May 23, 2020 at 2:09 pm #211353In reply to: Last reply author’s name in loop-single-topic?
kasperdalkarl
ParticipantHi again!
I managed to find it now. It’s here:
wp-content/themes/godlike/bbpress/form-reply.php<?php if (bbp_is_reply_edit()) : ?> <div id="bbpress-forums"> <?php endif; ?> <?php if (bbp_current_user_can_access_create_reply_form()) : ?> <div class="nk-gap-2"></div> <h3 class="h4"><?php printf(esc_html__('Reply To: %s', 'godlike'), bbp_get_topic_title()); ?></h3> <div class="nk-gap-1"></div> <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form nk-box-3 bg-dark-1"> <form id="new-post" name="new-post" method="post" class="nk-form" action="<?php the_permalink(); ?>"> <?php do_action('bbp_theme_before_reply_form'); ?> <fieldset class="bbp-form"> <?php do_action('bbp_theme_before_reply_form_notices'); ?> <?php if (!bbp_is_topic_open() && !bbp_is_reply_edit()) : ?> <?php echo do_shortcode('[nk_info_box icon="fa fa-exclamation-circle" show_close_button="true" class="bg-main-1"]' . esc_html__('This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'godlike') . '[/nk_info_box]'); ?> <?php endif; ?>
May 23, 2020 at 12:58 pm #211349In reply to: Last reply author’s name in loop-single-topic?
Robin W
Moderatorok, hopefully that’s just a refinement of order
try changing
add_action ('bbp_theme_before_topic_started_by' , 'rew_reply_author' , 10 ) ;
to
add_action ('bbp_theme_before_topic_started_by' , 'rew_reply_author' , 5 ) ;
or
add_action ('bbp_theme_before_topic_started_by' , 'rew_reply_author' , 15 ) ;
May 23, 2020 at 12:15 pm #211348In reply to: Last reply author’s name in loop-single-topic?
kasperdalkarl
ParticipantHi there!
Thanks for the help! I added it using Code Snippets, and now the last reply author’s name appears in front of “Started by”, as you can see on this link here: https://www.talanrien.com/rollspel/Maybe with some minor adjustment it could appear in front of “Reply To”. Thanks for your amazing help!
May 23, 2020 at 11:37 am #211345In reply to: Last reply author’s name in loop-single-topic?
Robin W
Moderatorok, they’ve done it by a function by the look of it.
so try this
add_action ('bbp_theme_before_topic_started_by' , 'rew_reply_author' , 10 ) ; function rew_reply_author () { $reply_id = bbp_get_topic_last_reply_id () ; echo '<span class="bbp-reply-author">'.bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) ) ; }
Put this in your child theme’s function file – or use
then come back and let me know where this appears, we might need to adjust
May 23, 2020 at 11:18 am #211344Robin W
Moderatorjust overwrite your code with the above – that code works
May 23, 2020 at 9:45 am #211339Robin W
Moderatoradd_action( 'bbp_theme_before_reply_form_content', 'rew_additional_field' ); function rew_additional_field($post){ ?> <select name="rew_additional_field" id="rew_additional_field"> <option value="enqury">Enquiry</option> <option value="complaint">Complaint</option> <option value="feedback">Feedback</option> </select> <select name="rew_additional_field_2" id="rew_additional_field_2"> <option value="enqury2">Enquiry2</option> <option value="complaint2">Complaint2</option> <option value="feedback2">Feedback2</option> </select> <?php } add_action('bbp_new_reply_post_extras', 'rew_save_additional_field'); function rew_save_additional_field($reply_id){ global $post; if(isset($_POST["rew_additional_field"])) { update_post_meta ($reply_id, 'rew_additional_field', $_POST["rew_additional_field"]) ; } if(isset($_POST["rew_additional_field_2"])) { update_post_meta ($reply_id, 'rew_additional_field_2', $_POST["rew_additional_field_2"]) ; } } add_action('bbp_theme_before_reply_content', 'rew_show_additional_field'); function rew_show_additional_field () { $reply_id = bbp_get_reply_id(); $field = get_post_meta($reply_id, 'rew_additional_field', true); if (!empty ($field)) { echo "Type: ". ucfirst($field)."<br>"; } $field_2 = get_post_meta($reply_id, 'rew_additional_field_2', true); if (!empty ($field_2)) { echo "Type: ". ucfirst($field_2)."<br>"; } }
May 23, 2020 at 9:17 am #211336g28f99
ParticipantBut I found a new problem. I hope more than one selection box will be shown there.
And there will be errors. Could you please kindly suggest solutions?add_action( 'bbp_theme_before_reply_form_content', 'rew_additional_field' ); function rew_additional_field($post){ ?> <select name="rew_additional_field" id="rew_additional_field"> <option value="enqury">Enquiry</option> <option value="complaint">Complaint</option> <option value="feedback">Feedback</option> </select> <select name="rew_additional_field_2" id="rew_additional_field_2"> <option value="enqury2">Enquiry2</option> <option value="complaint2">Complaint2</option> <option value="feedback2">Feedback2</option> </select> <?php } add_action('bbp_new_reply_post_extras', 'rew_save_additional_field'); function rew_save_additional_field($reply_id){ global $post; if(isset($_POST["rew_additional_field"])) { update_post_meta ($reply_id, 'rew_additional_field', $_POST["rew_additional_field"]) ; if(isset($_POST["rew_additional_field_2"])) { update_post_meta ($reply_id, 'rew_additional_field_2', $_POST["rew_additional_field_2"]) ; } } add_action('bbp_theme_before_reply_content', 'rew_show_additional_field'); function rew_show_additional_field () { $reply_id = bbp_get_reply_id(); $field = get_post_meta($reply_id, 'rew_additional_field', true); if (!empty ($field)) { echo "Type: ". ucfirst($field)."<br>"; $field_2 = get_post_meta($reply_id, 'rew_additional_field_2', true); if (!empty ($field_2)) { echo "Type: ". ucfirst($field_2)."<br>"; } }
-
AuthorSearch Results