Josh Journey
Forum Replies Created
-
Understood. I’m very thankful for the support and integration of PeepSo blocking. Is there a filter for appending a link to Better Message settings? I could link to site/members/blocked. get_conversations_layout is as close as I could find when looking through docs. I’m comfortable writing PHP filters that can append strings to things, writing it in a function, initiating it with WP.
When it’s disabled, there’s no unblocking from the messages view. Getting the list of blocked users is very easy to retrieve in SQL and unblocking users uses simple HTML:
SELECT blk_blocked_id FROM
wp_peepso_blocks
WHERE blk_user_id = 1;
#1 being the logged in userPeepSo makes it very easy to unblock a user even outside of PeepSo view with the following HTML:
<a href="#" onclick="ps_member.unblock_user(2, this); return false"><i class="lock"></i><span>Unblock User</span>
</a>2 being the user who is currently blocked but will be unblocked on link click. Tested this inside Better Messages when inserting into the DOM.
Retrieving user blocks can be found in:
wp-content/plugins/peepso/classes/blockusers.php on line 77:public function get_by_user($user_id)
{
if (PeepSo::get_option('user_blocking_enable', 0) === 1) {
global $wpdb;
$sql = "SELECTblk
.*,user_login
" .
" FROM{$wpdb->prefix}" . self::TABLE . "
blk
" .
" LEFT JOIN{$wpdb->users}
ONID
=blk_user_id
" .
" LEFT JOIN{$wpdb->prefix}peepso_users
ps
ONps
.usr_id
=blk
.blk_user_id
" .
" WHEREblk
.blk_user_id
=%d ";
$res = $wpdb->get_results($wpdb->prepare($sql, $user_id), OBJECT);
return ($res);
}
}Warm regards,
Josh@andrijtkachenko Thank you so much! Just tested the latest Better Messages. Blocking PeepSo members worked right away. ?? When viewing message settings ‘Blocked users – This is a list of users that you have blocked. You may unblock them from the blocklist below.’ it says below:
‘You haven’t blocked anyone yet’ even though the current user has blocked a user in PeepSo.From the PeepSo online users WP-page there is a blocked tab. When accessing it, for each user it shows the following HTML:
<div class="ps-dropdown__menu ps-js-dropdown-menu" style="display: block;">
<a href="#" onclick="ps_member.unblock_user(2, this); return false"><i class="lock"></i><span>Unblock User</span>
</a>
</div>When placing this HTML on a non PeepSo view (works in PeepSo too) in the DOM, when clicking the link, it unblocks user 2. I mention this to make the process as easy as possible to show list of blocked users followed by the HTML mentioned above working beautifully to unblock that user.
This would complete integration of blocked users.
Warm regards,
JoshForum: Plugins
In reply to: [Speculative Loading] FireFox?@tunetheweb Thank you so much for the detailed explanation, evaluation and creating a Github post! I’m very pleased to hear there is interest from Mozilla to support the newer Speculation Rules API. I’m a huge fan of FireFox so this will be a lovely treat. ??
Warm regards,
JoshForum: Plugins
In reply to: [Firelight Lightbox] Jetpack GalleriesI believe this is due to Jetpack gallery pointing to the image page rather than the image.jpg files themselves. Can you confirm?
I set errors to hidden. Thank you. ??
I will check this php deprecations notices, but they should not break the plugin flow.
Thank you. Indeed I discovered a plugin conflict when disabling all plugins and enabling one by one alongside Better Messages. But I’m happy to report the conflict with s2framework is resolved with the latest release of Better Messages and all errors are resolved! Much appreciated. ??
he issue is you have deprecations configured to be displayed even in api response and that is what you need to reconfigure as that is not good behaviour and even not secure.
I only displayed the error notices on my dev site. But I’ll look into showing for admin only and have error display hidden for actual site. Warm regards,
JoshAlso interested in inactive tabs as it doesn’t make sense to ping the site when not in use.
Forum: Plugins
In reply to: [ReGallery - Responsive Photo Gallery Plugin] Suggestions for ReGalleryA few more suggestions:
- The ability to show author and upload date in the same panel as comments on the right side.
- Support for Da Reactions which is the #1 Reaction plugin in WP:
https://www.ads-software.com/plugins/da-reactions/
It has a mode to display in posts, media attachments, and even works as a standalone on non WP objects such as reviews and text blocks. - Have the ‘Gallery Views’ menu on https://regallery.team to link to their demos instead of a page that just mentions them. On the frontpage have the section ‘Gallery views’ to have links to those features to inspire people that it displays great! And it really does display great!
Forum: Plugins
In reply to: [AAA Option Optimizer] Not 6.6 compatible?What happens on WP 6.7 with this plugin?
Forum: Plugins
In reply to: [TinyMCE Templates] Load_textdomain_just_in_time was called incorrectlyFound out how to fix this. Open file: wp-content/plugins/tinymce-templates/tinymce-templates.php
Change line 114 to the following:
add_action( ‘init’, array( $this, ‘plugins_loaded’ ) );Forum: Reviews
In reply to: [TinyMCE Templates] Works great on WordPress 6.7Found out how to fix this. Open file: wp-content/plugins/tinymce-templates/tinymce-templates.php
Change line 114 to the following:
add_action( ‘init’, array( $this, ‘plugins_loaded’ ) );Forum: Plugins
In reply to: [Firelight Lightbox] Call for Feature Requests+1 for Image commenting! This will be a huge improvement for social engagement. Would love to see support for wpDiscuz which is by far the #1 rated comment plugin for WordPress. It allows AJAX posting/editing/deleting, has an option for shortcode [wpdiscuz_comments], and loads where comment_form() function is used. It natively supports media pages. Hundreds of other unmentioned settings.
– Support for Da Reactions. The ability to react to photos and photo comments would be a dream come true! Da Reactions out of the box supports reactions to posts, attachments, comments, and attachment comments! They have an API along with shortcode support. Of all the WP reaction plugins it’s the best!
– Ability to display data from image attributes via jQuery or hook. I have information such as author, upload date, and custom fields in attributes.
– Option for single click/touch to zoom into image. It’s so much more enjoyable than double click.
The roadmap above looks great and the display of firelight lightbox is one of the best! Looking forward to it. ??
Warm regards,
JoshForum: Plugins
In reply to: [ReGallery - Responsive Photo Gallery Plugin] Suggestions for ReGalleryI’m happy to hear and thank you! ??
Two more additions that would take the gallery up a notch are lightbox comments and an option to zoom into an image with single click. Currently one must double click to zoom.
Forum: Plugins
In reply to: [LightPress Lightbox] Too much SQL updatesChecking in regarding this.