Forum Replies Created
-
AuthorPosts
-
Fabio
KeymasterAllora, nonostante gli sforzi, non ho trovato i riferimenti al campo postmeta. E’ possibile avere un esempio?
Nel database esiste una tabella chiamata wp_postmeta. Devo estrapolare il valore da li? e se si, il valore da inserire è il titolo del campo? O quello che trovo sulla colonna metakey?
Grazie per la risposta
Stefano
KeymasterEsatto, c’è una prima sincronizzazione (opzionale) per allineare il plugin con i dati precedenti all’installazione, e poi ogni giorno vengono automaticamente recuperati i dati del giorno precedente.
Più o meno si: postmeta è una tabella di wordpress in cui vengono salvati i metadati dei post (per esempio il numero di visite associate a ciascuno)
Fabio
KeymasterGrazie per la risposta, Confermo l’interesse per l’acquisto. Devo riconoscere che è comodo vedere il contatore direttamente sul backend di wordpress. Non ho capito questo: una volta interfacciato con analytics il contatore sul backend si allinea e inizia a segnare gli stessi valori?
Inoltre scusa la domada da principiante: il “postmeta” è un campo del database del plugin di statistica installato?
Stefano
KeymasterHi Greg,
there’s not an option for that, but as soon as you will make a payment, you will be prompted to enter your paypal credentials, so everything will be sorted out at that point 🙂Have a nice day,
StefanoStefano
KeymasterCiao Fabio,
la versione gratuita permette di usare i dati di un altro plugin che si occupi del conteggio delle visite per il pagamento basato sulle visite. Il plugin che però si occupa di questo (ossia di contare le visite) deve salvare i dati in un postmeta (per scoprire se il plugin che usi si avvale di questo metodo, è meglio chiedere direttamente a chi l’ha realizzato). Il nome del postmeta va posto nel campo delle opzioni di cui parlavi, e automaticamente il plugin prende i dati delle visite e si occupa di associarvi un pagamento.La versione PRO permette di interfacciarsi con Analytics e gestire, senza altri plugin, i pagamenti basati sulle visite di Analytics. Se vuoi, puoi acquistare la PRO e provare questa funzione – se poi vedi che non funziona come desideri, non c’è alcun problema: disattiviamo la licenza e ti rimborsiamo il pagamento 🙂
Buona giornata,
StefanoStefano
KeymasterHi BJ,
that is actually a feature: changing the settings impacts all stats, regardless of the date. You may work around that using the single post payment bonus, either awarding more money to future posts or changing settings with higher payments and using the bonus to take money away from past posts.Hope this helps!
Have a nice day,
StefanoKJ
KeymasterSure, send me an email and I’ll send over the temp login details later when I wake up
Stefano
KeymasterI haven’t written any developer documentation yet, unfortunately, but pleease feel free to ask anything!
You got it right: all payment data is stored in the payment history records. Beware, though, that next release will come with a redesigned payment history system. It will still work with old records, but there will be 3 different kinds of payment historyes and, most importantly, there will be functions that will make far easier to deal with payment histories. For example, if what you’re trying to achieve is basically a list of all paid posts for each author, you’d only have to call get_author_payment_history( $author) to have it, and then just cycle through it and display it the way you need it.
The difference between ppc_count and ppc_payment is as follows. Say you have a post that in month A scored 500 visits, and was paid $5.00: ppc_count would hold the number of visits you paid (500) and ppc_payment the amount ($5.00, though without the currency). Now, why? Cause now the post gets 500 visits more in month B, but you raised the payment and you’re now paying $6.00. This allows two things:
a) when the payment history is displayed, numbers are correct. If we hadn’t stored that the first transaction was $5.00, current settings would value that same number of visits as $6.00, and the display would not be correct;
b) if we didn’t know the first trnsaction paid for 500 visits, but only that we paid $5.00, we could assume we owed $1.00 more, since the plugin now evaluates those visits as $6.00. For the due payment computation, it is not important how much he was paid, but for what and for what amounts he was paid for.If verified is 1, it means the transaction was made through PayPal and that PayPal IPN reported back it was successfully executed.
Hope this helps!
Have a nice day,
StefanoStefano
KeymasterCould I have a look with a temp admin account?
Mauro
KeymasterI don’t know where to find documentation about the plugin (if there is some)
The client ask me to do a post list for each user that contains:
Post Title – Writing amount – Paid/Not PaidI was seeing the code and I assumed that maybe all that data is in _ppcp_payment_history postmeta. But I have some doubts:
1- What is the difference between ppc_payment and ppc_count?
2- If verified is 1 it means that it has been paid?Thanks in advance, and if you have dome documentation that I could read, please tell where!
Regards
KJ
KeymasterBoth those boxes have been checked, and still no option to check the box to “mark users posts as paid” on the stats screen
Stefano
KeymasterHi KJ,
you’re talking about the payment buttons in the stats page, right?If so, please check the permissions for your user or, if you don’t have custom settings for you, the general permissions settings. Users can mark posts as paidand Users can see PayPal functions are the ones you should care for.
Does this helps?
Have a nice day,
StefanoStefano
KeymasterThere are actions and filters in place that allow you to hook to the plugin countings and amounts and add your own, but it’s not that easy as you show in your example, at least not for now. If you need developer details, since there is no documentation of the kind right now, I’m available 🙂
The good news is that you won’t have to do it for the publisher bonus, as it will be shipped as a core feature soon, anyway
Mauro
KeymasterStefano,
Thanks for your response.
These new functionality you are working on, will have a function like I gave you in the example?I mean for example, if I create a plugin and add this:
function new_function( $post ) { pay_to_user(get_current_user_id(),$post->ID, 0.25); } add_action( 'pending_to_draft', 'new_function', 10, 1 );Where pay_to_user is a function of your plugin:
function pay_to_user( $user_id, $post,$amount ) { //it pays the amount to the user }My question is to know if I will be able to assign an amount of cash to an user from every part of the site.
Stefano
KeymasterHi Mauro,
you are looking for some king of publisher bonus, right? If that’s the case, I’m currently working on the feature, and I should be ready for release in around a week, so it’s just a matter of a bit of patience.Hope this helps!
Have a nice day,
StefanoStefano
KeymasterHi Cedric,
That was indeed a bug, but it was fixed yesterday with version 2.35 🙂Alma
KeymasterThanks Stefano, it certainly did 🙂
Stefano
KeymasterThanks. Version 2.35 fixes the problem 🙂
Have a nice day,
StefanoAlma
KeymasterI have send that text file to you now.
Stefano
KeymasterHi Alma,
could you copy the HTML from the post editor, paste it in a text file and email it to me? That way I can try it myself 🙂Have a nice day,
Stefano -
AuthorPosts