baptx
Forum Replies Created
-
Hi Andrea, it is working now, thanks!
Do you know why we have to use a lower priority only since BP Profile Search version 4.9.2?
Is it better to usebps_add_fieldsorbps_edit_field? For the moment I will keep the first hook, otherwise I need to change more code.
By the way, I am using the hookbps_requestto get fields values and use remove_filter function when I am done since the filter is called several times. Is it a good practice or do you recommend another hook? (maybe using a native BuddyPress hook or function like bp_get_the_profile_field_value is better)
Thanks.Forum: Plugins
In reply to: [BuddyPress Members Only] error: wpdb::escape is deprecatedThanks, I reopened the topic for the other problem. I don’t know if we can edit the title to add the informations.
Good point for the security, I did not think to check your plugin for CSRF 🙂
Now I tested XSS and found a security vulnerability: “</textarea><script>alert(1);</script><textarea>” :/ You should prevent this with a PHP function like htmlspecialchars.Forum: Plugins
In reply to: [BuddyPress Members Only] error: wpdb::escape is deprecatedHi, I also noticed that the field “Opened Page URLs” cannot be reset because empty values are not saved. Have a good day.
Forum: Plugins
In reply to: [Disable User Gravatar] Disable Gravatar for BuddyPressBy the way, with all plugins disabled except yours, there are still gravatar.com requests on posts and the users admin page.
I just noticed that it was reported here: https://ww.wp.xz.cn/support/topic/disable-gravatar-links-at-all/I thought this plugin blocks all third-party requests for better privacy, I will not need it otherwise. Gravatar should not get the IP addresses of active users on the Internet, which is also sent with the HTTP referer header of the website visited.
The code I shared to disable Gravatar for BuddyPress completely blocks gravatar.com requests.
I also noticed errors when displaying conservation with a deleted user:
[Fri Oct 13 18:49:56.638393 2017] [:error] [pid 4477] [client 127.0.0.1:56716] PHP Notice: Trying to get property of non-object in /var/www/html/wordpress/wp-content/plugins/bp-better-messages/inc/functions.php on line 402
[Fri Oct 13 18:49:56.638411 2017] [:error] [pid 4477] [client 127.0.0.1:56716] PHP Notice: Trying to get property of non-object in /var/www/html/wordpress/wp-content/plugins/bp-better-messages/inc/functions.php on line 420
[Fri Oct 13 18:49:56.638416 2017] [:error] [pid 4477] [client 127.0.0.1:56716] PHP Notice: Trying to get property of non-object in /var/www/html/wordpress/wp-content/plugins/bp-better-messages/inc/functions.php on line 427
[Fri Oct 13 18:49:56.638482 2017] [:error] [pid 4477] [client 127.0.0.1:56716] PHP Notice: Trying to get property of non-object in /var/www/html/wordpress/wp-content/plugins/bp-better-messages/inc/functions.php on line 432Another problem I had was that the email template uses the variable {{{messages.html}}} which displays a hardcoded English word “wrote” when emails are sent so it is not possible send emails correctly in another language like French.
Can we change this easily somewhere?For information, the default email templates of BuddyPress does not have this problem because they are using more specific variables like {{sender.name}} and {{usermessage}}. These variables are not available in your plugin template for the event “A member has unread private messages” but we could bypass the translation problem if you make them available.
Forum: Plugins
In reply to: [WPML Multilingual for BuddyPress and BuddyBoss] Compatible with polylang?Hello,
I would be interested also to have an alternative since WPML is not free anymore.
A standalone multilingual plugin for BuddyPress would be nice also.
I don’t think there is an open source and updated fork of WPML, otherwise let us know.
A big community project like BuddyPress should not rely on a commercial / paid plugin to offer multilingual functionality.Thanks.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Won't SubmitEdit: saying “user agent agent is needed” as an error message, would at least help users to know the problem.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Won't SubmitI had the same problem when using Contact Form 7, an error message appeared in an orange box: “Failed to send your message. Please try later or contact the administrator by another method.”.
The problem is Contact Form 7 plugin that does not allow the form to be sent without browser user agent HTTP header. I just blocked my user agent with Firefox addon ModifyHeaders. If I don’t want to send user agent it’s my choice and it’s not necessary spam, so I call this a sort of censorship from Contact Form 7 because there is no option to allow sending forms without user agent. By the way, this is the only topic still open about the orange box error that I’ve found on ww.wp.xz.cn. If you close all topics (like https://ww.wp.xz.cn/support/topic/plugin-contact-form-7-when-i-try-to-send-the-form-i-get-the-orange-box-akismet-spam), there is no way for users to add more informations about the same problem, like I did here and I do not think creating a new topic for giving an answer is good idea.