=== Post Pay Counter === Contributors: Ste_95 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7UH3J3CLVHP8L Tags: counter, authors, payment, stats, multi author Tested up to: 3.3.1 Stable tag: 1.2.2 Requires at least: 3.0 Easily calculate and handle author's pay on a multi-author blog by computing every written post remuneration basing on admin defined rules. == Description == The Post Pay Counter plugin allows you to easily calculate and handle author’s pay on a multi-author blog by computing every written post remuneration basing on admin defined rules. Multisite compatible. The administrator can set up the payment values, stats are then viewable from the related page where you can choose between general (all authors) and detailed (one author) countings. Below are all the available functions: * **Counting Type**: define the counting type you prefer between post words and unique daily visits. For the latter, you have also some checkboxes to decide what visits you want to count. * **Counting System**: choose if you want to pay with the unique payment system (eg. each word/visit is € 0.01) or with the zones one (eg. from 200 to 300 words/visits it’s € 2.00). * **Old stats avaiability**: once stats are computed, they’re not forgotten. In fact, you can view post countings since the first written post of the blog, disregarding the plugin install date. A fancy date picker lets you shift between days and select the desired range. If something goes wrong, you can also regenerate the stats. * **User personalizable settings**: beside general settings, you can also define special counting and permission settings that only apply to a particular user. Different settings can be made viewable in the stats or hidden depending on your needs. * **Trial period**: another bounch of settings can be defined for the trial period users may be subjected to. The admin can then opt-in and out the trial option for single users or decide for the automatic feature which, relying on the number of written posts subscribtion date, will do the job. * **Highly customizable permissions**: you don’t want your users to see stats and use functions they are not supposed to, and that’s the reason you can set detailed permission rules. * **CSV export**: every stats you see can be exported in csv files for offline consulting or storing. * **Reward posts and authors**: with a simple custom field, you can award payment bonuses to your authors. You may also define a minimum fee which will always be credited to writers so that they will earn something from every written posts. * **Overall stats**: at the bottom of every stats page, a box with overall stats is available with interesting details about your blog. There's much more to enjoy. Try it yourself! More details at the [plugin page](http://www.thecrowned.org/post-pay-counter "Post Pay Counter page"), while reviews can be found at [IdeaGeek](http://www.ideageek.it/il-plugin-wordpress-per-semplificare-i-conti-post-pay-counter/ "IdeaGeek") and [Mondofico](http://www.mondofico.com/2011/09/post-pay-counter-gestire-i-pagamenti-dei-redattori-su-wordpress/ "Mondofico"). == Installation == 1. Upload the directory of the Post Pay Counter in your wp-content/plugins directory; note that you need the whole folder, not only the single files. 2. Activate the plugin through the "Activate" button in the "Plugins" page of your WordPress. 3. Head to the configuration page first. The plugin already comes with a predefined set of settings, but I am sure you will want to configure it to better suit your needs. 4. You may want to generate stats for your old posts too: should you, use the Update Stats button in the Options Page. 5. That's it, done! You can now check the stats page to browse all the countings. == Frequently Asked Questions == = Can I include in the stats the posts published before the plugin was installed? = Sure you can. Just head to the Options Page and use the *Update countings* button in the *Update stats* box. This can take the plugin a little time depending on the number of published posts. = The plugin hangs up when using the Update stats function = This happens due to large databases. Try to increase the *max_execution_time* in your server's php.ini file, and see if the problem get solved. = Can I reward more particular posts/authors? = Sure you can! In the edit page related to the post you want to reward, create a new Custom Field named *payment_bonus* giving it the value of the rewarding (add as many decimal digits you want). Those bonuses are then shown in the stats page already summed to the post payment and also in brackets. The admin can still disable this function or simply hide the bonuses. Remember that having this function enabled potentially allows everyone who has the permission of posts editing to award bonuses! = Can I change the currency? = The main point here is, at the present moment, the currency symbol is not really important - not at all indeed. The euro symbol, in fact, is just a way to better distinguish payments from other numbers. Just set the plugin as if you were using your desired currency and then, even if in the countings payments will be shown preceded by a euro sign, you will know you are actually using *your* currency. = Can I pay all posts the same, without caring about words/visits? = It is not really an explicit feature, but again, the answer is yes. All you have to do is set the plugin to use the counting system zones putting 1 in every *Words/Visits n°* column field and the amount you want to give each post (always the same, of course) in each *Payment* field. = I try to update settings, but my changes do not get registered = This often happens because you are pressing *Enter* on your keyboard to update settings. Because of the page structure (for you HTML guys, there are other submit buttons before the *Save Options* one), this action does not trigger the Save Options buttons. Instead, you should scroll down the configuration page and click on *Save Options* with your mouse. If you are still experiencing problems, [contact me](http://www.thecrowned.org/contact-me "Contact me")! == Changelog == = 1.2.2 = * Word counting is now more precise. = 1.2.1 = * Fixed a problem with the installation which prevented the new functions to work properly because of missing database columns. = 1.2.0 = * The plugin now has its own toplevel menu item: it is called Post Pay Counter and is located at the bottom of the admin menu, with the stats and options pages being accesible through it. * Introduced the minimum fee capability. Admins can now set a minimum amout of money that will be credited to posts when their ordinary payment would be too low (there are options to define how much low is). * It is now possible to show the posts word count directly in the WordPress post list as a column. * In the stats page, if the user can, when the payment has bonuses associated with it they are now shown on mouse overlay. * The exported CSV files now have a little introduction with the site name and address and also report the total counting at the bottom (total payment and total posts). = 1.1.9 = * Changes to counting routine grant wider compatibility: Greek charachters are now supported. = 1.1.8 = * Bug from previous release made impossible to update settings because of two MySQL columns missing. Should be fixed now. = 1.1.7 = * When uninstalling it now checks for table/columns existance while already into the uninstallation process, not before it. = 1.1.6 = * Fixed a bug that prevented the installation process to work correctly due to MySQL errors. * Fixed a JS error in the jQuery datepicker when no posts were available. = 1.1.5 = * Fixed a bug that prevented comments and images bonuses to be awarded when using the unique payment system. = 1.1.4 = * Manually creating a post meta named *payment_bonus* allows to award a bonus to posts. Bonuses are then shown in the stats page in brackets and with a smaller font, though the admin can decide to disable the function or hide the bonuses. * Fixed a bug that triggered a fatal error when updating settings without having them in the database (default case of switch). = 1.1.3 = * Changed view counting method, it could trigger problems is headers where already sent before the plugin got in. It's now using an AJAX request to set the cookie. * Minimal improvements in in the view counting method. = 1.1.2 = * Stats are not generated during installation anymore. This is to prevent the plugin hanging on activation due to large databases. If you still want to have old stats, use the *Update Stats* box in the Options Page. = 1.1.1 = * Made the install process lighter. = 1.1 = * Multisite compatibility added. = 1.0 = The plugin is highly derived from Monthly Post Counter, which has almost been re-written from scratch to optimize performance, include new tasty functions and carry many many bug and security fixes. Look has been restyled too, using wordpress metaboxes for the settings page. * These the changes from the old Monthly Post Counter: * Added possibility to set different settings for each user. Stats which do involve different settings are shown only to the writer itself or the admins by default. * The admin can define permissions for old, overall and other's stats (general and detailed), csv exporting and special settings in countings. * The counting type can be chosen between visits and words (the latter used by default), and during the installation all the posts in database are selected and updated. * Two counting systems are now avaiable: the zones one and the unique payment one. * Stats time range is now customely seelctable with a jQuery datepicker. * Added possibility to pay images after the first one with a little award. * The admin can define a set of trial settings that will be applied to new users. * The plugin now records the words number instead of the payment value, this allows the countings to be update immediately without any post-all update. * Tooltips added all over the options page. * Ability to update all the posts with a single action added in the options page. * A new box shows stats from the first published post, they are shown as "overall stats". * Cool jQuery effects added to show/hide options. * Improvements in csv encoding shortcomings. * Uninstall file added instead of the deactivation method. == Screenshots == 1. Post Pay Counter configuration page 2. Boxes are draggable, collapsable, and even hidable 3. Use the tooltips beside each field to know what you can do with them 4. Post Pay Counter general stats (i.e. all author are shown). The provided datapicker allows to edit the time range and select the wished stats 5. Post Pay Counter per author stats. Datapicker avaiable here, too 6. The tooltip with all the counting details 7. Post Pay Counter csv exporting sample 8. Post Pay Counter menu