Daniel Lemes
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce MercadoLivre] Só HTTPS?Resolvi o problema do SSL usando o do CloudFlare, mas ao tentar fazer login, após autorizar o plugin a janela reabre a mesma janela da configuração do plugin…
I have something. In my sidebar, a simple test:
require_once GIVE_PLUGIN_DIR . 'includes/user-functions.php'; $user_id = get_current_user_id(); $data = get_userdata( $user_id ); echo 'Donations: '; if ( give_has_purchases( $user_id ) ) echo 'YES!'; else echo 'NO!'; $stats = give_get_purchase_stats_by_user( $user_id ); echo '<br />Donations: '. isset( $stats['purchases'] ) ? $stats['purchases'] : 0; echo '<br />Total spent: '. isset( $stats['total_spent'] ) ? $stats['total_spent'] : 0;******
Not sure to use ‘give_get_users_completed_donations’ or ‘give_has_purchases’. And more important: how to get last donation date / time?Forum: Plugins
In reply to: [WooCommerce MercadoLivre] Só HTTPS?Obrigado.
Better example: I want a badge for “publishing content”, and I published 158 posts with my account. The badge levels are:
1) 10 (total)
2) 25
3) 100
4) 250
5) 500I suppose that when click “Assign Badge”, my account should earn the third level, isn’t it right? But it keeps giving me the fifth. Do the numbers are the total posts published, or the total points earned publishing points?
Thank you, I’ll try it.
Perfect, thank you!
Sorry, I wasn’t clear. I was trying to get a notification on each load, so I could change my CSS, reload the page and check if everything was ok. I mean: an option like “keep showing notify on each page load”.
I found another way: set a hook to happe and them repeat when I need. Problem solved.
Forum: Plugins
In reply to: [TwentyTwenty] A shortcode to change label textI found a problem: if there are two or more groups of images in the same page, all of them use labels from the first, so:
yadayadayadayadayadayadayadayadayadayada [twentytwenty before="Japan" after="USA"] yadayadayadayadayadayadayadayada [twentytwenty before="Brazil" after="Argentina"]Both will show “Japan” and “USA”.
=(
Forum: Fixing WordPress
In reply to: Image Upload Error since upgrading to WP 3.9I had the same issue and was resolved after disabling the “WP Smush It” plugin. I suppose that others like it (image processors) should cause similar problems.
data = NULL worked fine, thank you!
Now i’m seeing error messages on MyCred Log, like this:
Warning: Missing argument 3 for my_custom_user_template_tags() in functions.php on line 1723
Line 1723 is:
function my_custom_user_template_tags( $content, $user, $data ){It’s strange, but now the function to create my template tag is working and i could finally have proper links this way:
At first, on functions.php:
function my_custom_user_template_tags( $content, $user, $data ){ $user_info = get_userdata($user->ID); $content = str_replace( '%seu_nicename%', $user_info->user_nicename, $content ); return $content; } add_filter( 'mycred_parse_tags_user', 'my_custom_user_template_tags', 10, 3 );And on leaderboard template:
<a href="/author/%seu_nicename%">%display_name%</a>Thank you again!
Forum: Plugins
In reply to: [Achievements for WordPress] Repeat events for karmaOk, thank you.
page-template-leaderboard: http://pastebin.com/VndMN4X1
functions.php: http://pastebin.com/TBJh7GFR
Appreciated, but none of this worked for me (i’ve tried to create a custom template tag %user_url%). The real odd is that only two first members on leaderboard had uncoded urls; others were fine.
I gave up and delete links from there. Thanks.
http://www.memoriabit.com.br/leaderboard/