Scott Reilly
Forum Replies Created
-
Forum: Plugins
In reply to: [Stealth Update] Shows a dozen times in Quick Edit@gahapati: Hi,
Glad to hear my plugins have been of use to you over the years!
Turns out the Quick Edit functionality for the plugin was faulty. I removed it in the just-released v2.4.3. I’ll see about fixing it and reintroducing the feature into v2.5.
Thanks for reporting it!
Forum: Plugins
In reply to: [Get User Custom Field Values] Plugin not working after 4.2.3 updateCan you post an example of your usage of the shortcode that is not working for you?
As I stated, the problematic side effect of security changes introduced in 4.2.3 are with how a shortcode is used, not with how it is implemented in a plugin (though some plugins may output shortcodes in a problematic fashion).
In the case of Get User Custom Field Values, the plugin merely defines a shortcode, which was not something affected by the update.
Seeing an actual example of how you’re using the shortcode should provide better context for any further recommendations.
Forum: Plugins
In reply to: [Text Hover] Does it work with Awesome font?@efnaka : Hi,
In order for the plugin to “see” something like a Font Awesome icon, you’d likely be using the HTML format for inserting it into content, like so:
<i class="fa fa-book"></i>Unfortunately, the current version of the plugin (v3.6) does not support making tooltips for HTML. I can’t recall if the plugin supported it previously. I’ll see what I can do about supporting it for a future release and follow up here if I do.
Thanks for making the suggestion!
Forum: Plugins
In reply to: [Get Custom Field Values] Not Working in 3.8.9 or 4.2.3@htmadmin: Hi,
There was a security update made to all version of WordPress going back to 3.7, which includes the very latest, 4.2.3. This security update affected the Shortcode API within WordPress. You can read about it here: https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/
Basically, the change affected how WordPress parses shortcodes, and in some cases it no longer recognizes them. In your case, more than likely this has to do with how you are using quotes around the shortcode. You might something like so:
<a href="[custom_field field="product_url" this_post="1" /]">Product site</a>You have to make sure the quotes used for the shortcode attributes do not match the same quotes used for the HTML attribute (e.g. the “href” attribute). The above example should be changed to the following:
<a href="[custom_field field='product_url' this_post='1' /]">Product site</a>(Note the shortcode’s attribute quotes were changed to single quotes so they differ from the use of double quotes for the ‘href’ attribute.)
If you’re still wondering how to change what you’ve got, feel free to provide the code snippet of how you’re using the shortcode and I can make a more specific recommendation.
Forum: Plugins
In reply to: [Get User Custom Field Values] Plugin not working after 4.2.3 update@gmgsavings: Hi,
There was a security update made to all version of WordPress going back to 3.7, which includes the very latest, 4.2.3. This security update affected the Shortcode API within WordPress. You can read about it here: https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/
Basically, the change affected how WordPress parses shortcodes, and in some cases it no longer recognizes them. In your case, more than likely this has to do with how you are using quotes around the shortcode. You probably have something like so:
<a href="[user_custom_field field="user_url" this_post="1" /]">Author's site</a>You have to make sure the quotes used for the shortcode attributes do not match the same quotes used for the HTML attribute (e.g. the “href” attribute). The above example should be changed to the following:
<a href="[user_custom_field field='user_url' this_post='1' /]">Author's site</a>(Note the shortcode’s attribute quotes were changed to single quotes so they differ from the use of double quotes for the ‘href’ attribute.)
If you’re still wondering how to change what you’ve got, feel free to provide the code snippet of how you’re using the shortcode and I can make a more specific recommendation.
Forum: Plugins
In reply to: [Text Hover] Text in layout builderUnfortunately I don’t have any recommendations for you with regards to layout builder plugins as I’ve never used any of them. I know some others don’t run standard filters (or any at all) which would prevent their text boxes from being accessible to this plugin, as you’ve experienced with this one.
Was the support personnel for the layout builder plugin you’re using not able to help out in any way?
Forum: Plugins
In reply to: [Text Hover] Text in layout builderSorry, but that’s a commercial plugin so I have no access to its code to provide a recommendation on how to proceed. As they have dedicated support services that should be available to you as one of their customers, you can ask their advice.
Information to include for them:
The Text Hover plugin functions by filtering text. By default, it filters ‘the_content’, ‘get_the_excerpt’, and ‘widget_text’. If the builder’s text box widget (or whatever component you are using) has its own custom filter, Text Hover could be made to handle that as well, with code like so:
/** * Enable text hover for custom filter. * * @param array $filters Filters to handle for text hover. * @return array */ function more_text_hovers( $filters ) { $filters[] = 'custom_filter_name'; // Here you could put in the name of any filter you want return $filters; } add_filter( 'c2c_text_hover_filters', 'more_text_hovers' );Hi,
Allowing duplicate email addresses is less involved than allowing duplicate usernames. Email address is a piece of information associated with an account whereas the username is used to actually log into the system.
The login process would have to be adjusted to deal with duplicate usernames. For a login attempt, would WP keep comparing the password for every instance of the given username until it found which account is being logged into? Or would you be modifying the login form to require both username and email address to log in?
There’s also the issue of the password reset form, which can take the username. Without adjusting the handling and display of that form, you risk a user not being able to reset for their specific account.
And there’s also unique author slug generation.
Which is all to say, there’s a lot involved in allowing duplicate usernames, little of which overlaps with what the plugin currently does. It would warrant being its own plugin, but not one I’m looking to build at this point.
Cheers!
Forum: Plugins
In reply to: [Text Hover] Text in layout builder@hidalgm2 : Hi,
What layout builder are you referring to?
In my experience, some layout builder plugins don’t run WordPress filters against the text entered into text box widgets, which is the method this plugin (and many others) use able to process things. If the layout builder it well-developed, it would at least introduce a custom filter that could be used.
Forum: Plugins
In reply to: [Allow Multiple Accounts] Email addresses not populating lower field@jezzerisin : Hi,
A screenshot might help since I’m a little unclear on the nature of the issue you’re reporting. Feel free to send to coffee2code @ gmail. If you do send it to me, follow up here to let me know so I make sure to look out for it.
Thanks!
Forum: Plugins
In reply to: [Get User Custom Field Values] Display Fields For (Any) User@mvpacific : Hi,
Just so I’m clear, you would like to get fields by the name of the field itself and not necessarily according to a specific user?
Could you provide an example of what you’d like to get back from the proposed function/widget you’d use?
Say for instance all 100 users of the site have a ‘favorite_color’ custom field. What return or display would you expect when requesting values related to ‘favorite_color’?
I guess you might be suggesting a method with the following signature:
function c2c_get_all_user_meta( $field, $count='', $before='', $after='', $none='', $between='', $before_last='', $order="ASC")Here
$countindicates how many user meta values to return and$orderis how to order the results (ASCending or DESCending). Results would be ordered according to the custom field value.@jonas-lundman, @kiwi3685 : Check out v3.0.4 of the plugin which should fix the issue you encountered going forward.
It seems both of those plugins hooked the same action as Allow Multiple Accounts in such a way that they were getting the user email addresses before AMA had a chance to change them back to something proper.
Depending on how those newsletter plugins work, their copy of the user emails may or may not get fixed. (If they periodically resync, as kiwi3685 suggested MailPoet does, it may automatically clear up.)
Let me know the issue persists for either of you. Thanks for reporting it!
Forum: Plugins
In reply to: [Allow Multiple Accounts] Contacting the author@elindydotcom : Hi,
I am currently not available for any freelance work.
If you have suggestions that might have general appeal to users of the plugin, feel free to suggest them and I may consider implementing them in a future release.
Cheers!
Forum: Plugins
In reply to: [Admin Commenters Comments Count] Add to user metadata@imscenterprise : Hi,
It’s doable with some custom code since it’s not a built-in feature of the plugin.
The following code can be put into a .php file in
wp-content/mu-plugins/, or less ideally in your theme’s functions.php file./** * Just before an export takes place, store all user comments counts in the * 'accc_comments_count' usermeta field. */ function store_user_comment_counts_in_meta() { // Don't do anything if Admin Commenters Comments Count isn't active. if ( ! class_exists( 'c2c_AdminCommentersCommentsCount' ) ) { return; } // Loop through all users. foreach ( get_users() as $user ) { // Get the count of the user's number of comments. $comments_count = c2c_AdminCommentersCommentsCount::get_comments_count( 'comment_author_email', $user->user_email, 'comment', $user->ID ); // c2c_AdminCommentersCommentsCount::get_comments_count() returns an array that includes the number of // approved comments and the number of pending comments. This next line presumes you only want the count // of approved comments. $comments_count = $comments_count[0]; // Store that count in user meta. update_user_meta( $user->ID, 'accc_comments_count', $comments_count ); } } add_action( 'export_wp', 'store_user_comment_counts_in_meta' );I tested it out and it worked for me.
@mctenold : Hi,
The plugin did not support your requested functionality until just now, in v2.6.
I’ve added
c2c_get_next_or_loop_post()andc2c_get_previous_or_loop_post(), which are likeget_next_post()andget_previously_post(), respectively, except they loop around at the ends.Hope that helps you. Thanks for the suggestion!