Emil
Forum Replies Created
-
Forum: Plugins
In reply to: [Black Studio TinyMCE Widget] run_shortcode() is applied before text filterI definitely think using filter hooks with different priorities could be a very clean and good solution. I know a lot of other plugins/themes also does the same thing as Canvas. I’m trying to think about the repercussions changing this could have and I can’t really think of any. I’d say it’s a great idea 🙂 Canvas uses the default priority, 10.
Thanks for the great support!
Forum: Plugins
In reply to: [Black Studio TinyMCE Widget] run_shortcode() is applied before text filterYes indeed Canvas by WooThemes was the culprit. Such a bad theme framework in comparison to Genesis, honestly…
Forum: Plugins
In reply to: [Black Studio TinyMCE Widget] run_shortcode() is applied before text filterThanks for the quick response!
Sorry, you’re right. I misread your code. This is very strange. Maybe I have a plugin installed that filters widget_text to execute shortcodes. Will have a look.
Forum: Plugins
In reply to: [Scroll Triggered Boxes] Limited Number of Boxes DisplayingI can confirm that you are not the only one with the issue.
Thanks for the reply! I’d love to help but I ended up coding my own solution (WC Subscriptions didn’t really fit the purpose) so I don’t have a live site to test it on and I’ll probably be away on holiday when the next version’s ready as well 🙂
If it’s a litespeed server check this out. It solved it for me.
Hi again,
Here’s the login button function rewritten with a filter:
function the_champ_login_button($widget = false){ if(!is_user_logged_in() && the_champ_social_login_enabled()){ $replace = array("9", "?", "!", "%", "&", "#", "_", "2", "3", "4"); $varby = array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T"); global $theChampLoginOptions; $html = ''; $html .= the_champ_login_notifications($theChampLoginOptions); if(!$widget){ $html .= '<div>'; if(isset($theChampLoginOptions['title']) && $theChampLoginOptions['title'] != ''){ $html .= '<div>'. $theChampLoginOptions['title'] .'</div>'; } } $html .= '<div class="the_champ_login_container"><ul class="the_champ_login_ul">'; if(isset($theChampLoginOptions['providers']) && is_array($theChampLoginOptions['providers'])){ foreach($theChampLoginOptions['providers'] as $provider){ $html .= '<li>'; $id = ''; if( $provider == 'google' ){ $id = 'theChamp'. ucfirst($provider) .'Button'; } $classes = 'theChamp'. ucfirst($provider) .'Button theChampLoginButton'; $title = 'Login with '. ucfirst($provider); if(current_filter() == 'comment_form_top'){ $btnScript = 'theChampCommentFormLogin = true; theChampInitiateLogin(this)'; }else{ $btnScript = 'theChampInitiateLogin(this)'; } $loginBtn = sprintf( '<i id="%s" class="%s" alt="%s" title="%s" onclick="%s" style="display: block;"></i>', $id, $classes, $title, $title, $btnScript ); $loginBtn = apply_filters('the_champ_login_buttons_html', $loginBtn, $provider, $title, $btnScript); $html .= $loginBtn . '</li>'; } } $concate = '<div style="clear:both"></div><a target="_blank" style="display: none !important; text-decoration:none; color: #00A0DA; font-size: 12px" href="//wordpress.org/plugins/'. str_replace($replace, $varby, '9u?e!-s%ciali&e!') .'/">'. str_replace($replace, $varby, '#u?e! #%ciali&e!') .'</a> <span style="display:none; font-size: 12px">'. str_replace($replace, $varby, '_y') .'</span> <a target="_blank" style="display: none !important; text-decoration:none; color: #00A0DA; font-size: 12px" href="//'. str_replace($replace, $varby, 't3ec3am?l%rd.w%rd?!e99.c%m') .'">'. str_replace($replace, $varby, '43e 23am?') .'</a>'; $html .= $concate; $html .= '</ul></div>'; if(!$widget){ $html .= '</div><div style="clear:both; margin-bottom: 6px"></div>'; } if(!isset($concate) || strlen($concate) == 420){return;} if(!$widget){ echo $html; }else{ return $html; } } }I’ve passed both the title and script since these are necessary for the button to work.
Thanks for the reply!
Thanks for pointing this out. I will definitely update the WhiteLabel plugin to include the fix for this.
I am gonna add the hook at registration function and will check if there is any other scope to add hook.Great! I’m happy to hear that.
I cannot provide everything in the free plugin. You should understand this. I can customize the social icons for a nominal price, if you like.
Of course, that’s totally understandable. It was just a suggestion for a possible improvement in future versions but I completely understand having this as a premium service. A filter could easily be implemented to allow editing of this HTML I think. I’d be happy to add it when I have some time if you’d want to implement it?
Forum: Plugins
In reply to: [WP Photo Album Plus] Upload widget redirects to homeGreat! Thanks a lot!
Forum: Plugins
In reply to: [WP Photo Album Plus] Upload widget redirects to homeThanks Jacob, that works perfectly! Maybe it should rather be defined by the requested URL e.g. so that putting the widget on the blog page wouldn’t mess it up (get_permalink() returns the latest post URL in this case)?
esc_url( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );Forum: Plugins
In reply to: [WP Photo Album Plus] Upload widget redirects to homeThanks for the quick reply!
Okay I see; the Upload widget and the setting are unrelated. It is with the Upload widget I’m having the issue of being redirected to the homepage instead of the page with the widget. How does WPPA determine the URL?
Forum: Plugins
In reply to: [Quickpay for WooCommerce] Feature suggestionsGreat! Thank you for implementing my suggestions.
I have the exact same issue.
Forum: Plugins
In reply to: [Codestyling Localization] Keep Translations After Plugin or Theme UpdateThere’s a huge need for this. I can’t believe there’s no good way of doing this. The best solution I’ve been able to find is this.
Forum: Plugins
In reply to: [Quickpay for WooCommerce] No redirection of payment windowsDo you have any minification plugins installed? I had the same problem with W3 Total Cache but adding “/wp-content/plugins/woocommerce-quickpay/core.js” to my minify exception list solved it.