Optimiza
Forum Replies Created
-
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Fatal Error when submitting formThank God it was resolved. In our case, this error generated dozen of duplicate orders (Woocommerce), and also the orders didn’t get through our Payment Gateway. After the update, the orders started to come in normally.
“MC4WP_MailChimp::list_add_tags_to_subscriber() must be of the type array, null given”
Forum: Plugins
In reply to: [WordPress Social Login] Error when logging with FbGreat idea, we will do it right now.
Forum: Plugins
In reply to: [WordPress Social Login] Error when logging with FbHi @caniggiaroby, I’m not the developer of this plugin but I will try to answer your questions since I don’t think the developer of this plugin will do.
1- when i update this plugin, i must rewrite the original file?
Yes2. why the development not insert this in wp social login.php?
The last update was 1 year ago, you better search for a more up to date plugin that will do the same.3- we are italian and when our user connect with facebook, read only english popup, i can show the italian language for facebook connect?
I don’t know this one, I think it will have to do on the language of your Facebook App?Forum: Plugins
In reply to: [WordPress Social Login] Error when logging with Fb@miled solution worked for me too, just like @arnoutvandervorst wrote, you just need to go to your plugin folder at:
/wp-content/plugins/wordpress-social-login/
In there you will find a file called:
wp-social-login.php
Edit the file and the end of the file include this code:
function wsl_change_default_permissons( $provider_scope, $provider ) { if( 'facebook' == strtolower( $provider ) ) { $provider_scope = 'email, public_profile'; } return $provider_scope; } add_filter( 'wsl_hook_alter_provider_scope', 'wsl_change_default_permissons', 10, 2 );
One more thing, in my case, I had to change also inside the Facebook App the “Valid OAuth redirect URIs”:
FROM:
https://mywebsite.com/wp-content/plugins/wordpress-social-login/hybridauth/?hauth.done=WordPress
TO:
https://mywebsite.com/wp-content/plugins/wordpress-social-login/hybridauth/?hauth_done=Facebook
- This reply was modified 6 years, 8 months ago by Optimiza. Reason: semantics
Forum: Plugins
In reply to: [Media Library Assistant] How To Replace Alt Text With TitlesThank you David, this gives me all the tools I need to finish what I need. No further questions, I really appreciate your help.
Forum: Plugins
In reply to: [Media Library Assistant] How To Replace Alt Text With TitlesI was thinking if there’s a way with your plugin to replace the dashes that comes in
[+post_title+]
?That way I could use the
template:([+parent_title+]|[+post_title+])
plus the instruction to remove the dashes. ??I feel like I’m asking too much, sorry.
Forum: Plugins
In reply to: [Media Library Assistant] How To Replace Alt Text With TitlesDavid, that’s exactly what I needed and it worked flawlessly:
template:[+parent_title+](, [+terms:attachment_tag+])
Unfortunately for me, all images are unattached and using this solution:
template:([+parent_title+]|[+post_title+])
Will put the image name on the Alt text, like for example:
plugins-for-wordpress
Thankfully, your plugin does a great job by identifying each unattached image and providing the tools to attach each image to the post they belong. I will have to go post by post attaching each image to a post, so I can use the first template which works perfectly.
Thank you!
- This reply was modified 7 years, 10 months ago by Optimiza.
Forum: Plugins
In reply to: [Media Library Assistant] How To Replace Alt Text With TitlesHi @dglingren, the solution worked for me like a charm, I was able to include the Alt text tag to all my images, thanks a lot! but, I thought it would print the “Post Title”, instead it printed the “title tag” of the image.
I want to replace the WordPress standard “Alternate Text” field (ALT Text) with the value in the “Post Title” field.
What would be the template to use to print the article title into the the Alt text tag?
Forum: Plugins
In reply to: [Theme My Login] Language translation not picked upThe solution was the one that @prekmurec posted, apparently the developer of the plugin forgets to include the domain on some lines, you just need to include the domain ‘theme-my-login’ and it should be fixed for those lines that can’t be translated.
Example without the domain:
<p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).' ); ?></p>
Example with the domain:
<p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).', 'theme-my-login' ); ?></p>
Forum: Plugins
In reply to: [Theme My Login] Language translation not picked upOk, I’ve tried:
private static function load_textdomain() { load_plugin_textdomain('theme-my-login', false, 'theme-my-login/language' ); }
Didn’t worked for me.
Forum: Plugins
In reply to: [Theme My Login] Language translation not picked upSame problem here as for today, I’m not able to translate that specific part of code. I haven’t tried @hadi khosrojerdi solution though.
Forum: Plugins
In reply to: [Plugin: ProPlayer] How to go back to Youtube′s original embed code.I receive help from a friend and he told me that I can implement this function in my rss.php file, so I can still use the proplayer plugin and I can show the videos in the feeds. The only thing is the solution is not complete because there′s something else I need to include in the code:
function reducir($url) preg_match('#youtube.com/watch#i', $url): $url = preg_replace('#youtube.com/watch\?v=#i', 'youtube.com/v/', $url); $content = '<object width="360" height="291"><param name="movie" value="'.$url.'&fs=1&rel=0&border=1&color1=0xeeeeee&color2=0xeeeeee"></param><param name="allowFullScreen" value="true"><embed src="'.$url.'&fs=1&rel=0&border=1&color1=0xeeeeee&color2=0xeeeeee" type="application/x-shockwave-flash" allowfullscreen="true" width="360" height="291"></embed></object>'; return $content }
Forum: Installing WordPress
In reply to: 2.6 problem with ‘get_posts’Samuelf:
Look, in my index page I have the normal posts, plus I have a side column inside the normal posts that is called QUICKNOTES, I only show there small posts. I use the Category Excluder Plugin, plus this code to exclude that category from the normal posts:
<?php $myAsides = get_posts('numberposts=9&category=43'); foreach($myAsides as $post) : setup_postdata($post); ?>
Since I upgrade to WP 2.6 that code doesn′t work anymore and is showing the category that I want to hide inside the normal posts.
Can you help me to figure it out how can I make it work again?
Regards!
Forum: Themes and Templates
In reply to: wp_get_attachment_image argumentsSolved! thanks anyway.
Forum: Themes and Templates
In reply to: wp_get_attachment_image argumentsGuys I have sort of the same problem but in my case I can′t display the medium size image, I just can controll and display the small thumbnail and large, I can′t find the right code to display the medium size thumb in single.php
I use this code to display the thumb:
<?php $files = get_children("post_parent=$id&post_type=attachment&post_mime_type=image"); if($files){ $keys = array_keys($files); $num=$keys[0]; $thumb=wp_get_attachment_thumb_url($num); print "<div class='tmb'><a href='".get_permalink()."' title=''><img src='$thumb' class='thumbnail' width='130' height='130' alt='' /></a></div>"; } ?>
And I use this to display the smaller thumb;
<?php $files = get_children("post_parent=$id&post_type=attachment&post_mime_type=image"); if($files){ $keys = array_keys($files); $num=$keys[0]; $thumb=wp_get_attachment_thumb_url($num); print "<a href='".get_permalink()."' title=''><img src='$thumb' class='thumbnail' width='50' height='50' alt='' /></a>"; } ?>
But when I try to use the medium size thumb WP resizes the thumb and doesn′t grab the medium size thumb he created it.