Pi Zi
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Mailto Links - Protect Email Addresses] Newest update broke wordpressOK, so you do have FTP access. In that case you can download the plugin page of this site, click on the red button. And try to install it again.
Forum: Plugins
In reply to: [WP Mailto Links - Protect Email Addresses] Newest update broke wordpressThe error says it was occured within the plugin file:
html/home2/wp-content/plugins/wp-mailto-links//wp-mailto-links/wp-mailto-links.php.
Which means the file does exist.How do you know the plugin is no longer in the plugin folder?
Forum: Plugins
In reply to: [WP Mailto Links - Protect Email Addresses] Newest update broke wordpressThe plugin folder is gone and it still produces these errors?
The plugins javascript was loaded on every admin page, conflicting with the checkboxes on other admin pages.
Fixed in 2.0.1
Forum: Plugins
In reply to: [External Links - nofollow, noopener & new window] Bug found!Yes. Thanks for reporting!
Compliments on finding the shortcode. I tried so hard to hide it 😉
No seriously, I thought it would be clear. On the description page is a link “documentation” and on the admin page on the right bar there’s a “documentation” link as well, which opens the help tab.
But you’re right, it could be on the FAQ as well.This is not a common feature.
The plugin contains filters which makes it possible for everybody to make specific, personal adjustments. But you need to do a little programming.
In this case you could use the
wpel_external_link_attrsfilter. Add this code to the functions.php file of your theme:add_filter('wpel_external_link_attrs', 'wpel_only_nofollow_certain_domains', 10, 3); function wpel_only_nofollow_certain_domains($attrs, $original_attrs, $label) { $url = isset($attrs['href']) ? $attrs['href']: ''; if ('www.somedomain.com' === parse_url($url, PHP_URL_HOST)) { // nofollow for certain domain $attrs['rel'] = 'external nofollow'; } else { // follow by default $attrs['rel'] = 'external follow'; } return $attrs; }Is this issue related to the WP External Links plugin?
OK, thanks for trying.
And does it work when you check “All contents”?That makes sense.
The default value of title option is%title%, which is better and should also work.You could also set it within the code:
function wpel_custom_title($attrs, $original_attrs, $label) { if (empty($attrs['title']) && isset($attrs['href'])) { $href = htmlspecialchars($attrs['href'], ENT_QUOTES); $attrs['title'] = $href . ' (opens in a new window)'; } else { // or else use this title... $attrs['title'] = 'Some title'; } return $attrs; }It should work 🙂
Maybe adding htmlspecialchars?
add_filter('wpel_external_link_attrs', 'wpel_custom_title', 10, 3); function wpel_custom_title($attrs, $original_attrs, $label) { if (empty($attrs['title']) && isset($attrs['href'])) { $href = htmlspecialchars($attrs['href'], ENT_QUOTES); $attrs['title'] = $href . ' (opens in a new window)'; } return $attrs; }Forum: Plugins
In reply to: [Email Encoder - Protect Email Addresses and Phone Numbers] Not a code guy!It depends on the structure of your site and theme.
Normally when you have content that’s repeated on most of the pages, it should be implemented in like a widget (or in one of the template files). When the content changes you only have to edit on one place and it will be changed on all pages.Do you have the url of your site?
New version 1.80 will contain a filter to manipulate attributes of external links. You can accomplish by adding the following code to your themes function.php file.
add_filter('wpel_external_link_attrs', 'wpel_custom_title', 10, 3); function wpel_custom_title($attrs, $original_attrs, $label) { if (empty($attrs['title']) && isset($attrs['href'])) { $attrs['title'] = $attrs['href'] . ' (opens in a new window)'; } return $attrs; }Yes I see. It’s very odd.
The only explanation I can think of is that somehow the WordPress filterget_comment_textis not used by your theme.Could you check if it does work with one of the default themes? (like Twenty Fiftheen) Just to make sure if that’s the cause.