Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

count by characters

by

› Forums › Post Pay Counter › Feature suggestion › count by characters

We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.

  • This topic has 8 replies, 2 voices, and was last updated 8 years, 7 months ago by Stefano.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • February 29, 2016 at 4:20 pm #50111
    Daniel
    Guest

    Hello everyone!

    Can you tell me how to hack plugin to make it count also amount of characters in articles rather then words?

    King regards,
    Daniil

    February 29, 2016 at 4:57 pm #50112
    Stefano
    Keymaster

    Hi Daniel,
    are you a developer? Have you already seen this tutorial?

    Should you develop an addon to Post Pay Counter, let me know! ๐Ÿ™‚
    Have a nice day,
    Stefano

    March 1, 2016 at 1:58 pm #50132
    Daniel
    Guest

    Hi, Stefano!

    Yes I am a developer. Thank you for your link. I will review it and let you know about my progress in it. ๐Ÿ™‚

    Cheers,
    Daniel

    March 1, 2016 at 2:07 pm #50133
    Stefano
    Keymaster

    Great, glad to know! If you need any help let me know! ๐Ÿ™‚

    March 7, 2016 at 8:14 pm #50184
    Daniel
    Guest

    Hi! Can you catch me up where to use this tutorial (http://postpaycounter.com/add-custom-payment-types-post-pay-counter-stats/) ?

    Thank you

    March 7, 2016 at 8:23 pm #50185
    Stefano
    Keymaster

    Hi Daniel,
    what do you mean with “where”? Can you make your question more specific? ๐Ÿ™‚

    March 7, 2016 at 8:25 pm #50186
    Daniel
    Guest

    I mean, can I use those funcs in some files like ppc_counting_stuff_class.php or ppc_counting_type_class.php or … ?

    March 7, 2016 at 8:39 pm #50188
    Stefano
    Keymaster

    Don’t edit plugin classes (or your changes will be overwritten by future updates), instead write a new plugin.

    Basically, you need to have 3 functions:

    1. A function that calls
      $ppc_global_settings[‘counting_types_object’]->register_counting_type( $your_counting_type )
      and defines the new payment criteria.
    2. A function that counts characters given a post
    3. A function that computes the payment given the number of characters

    An example of functions 1 and 3 is given at the bottom of the tutorial. Does it make sense? You can have a look at ppc_counting_types_class and ppc_counting_stuff_class to see how native payment criteria work (payment criteria = counting type in the language of the plugin).

    September 25, 2016 at 11:14 am #52336
    Stefano
    Keymaster

    Pay per character is now a native option with the Pay Per Character addon! ๐Ÿ™‚

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘count by characters’ is closed to new replies.

Your cart

Number of items in cart: 0

  • Your cart is empty.
  • Total: €0.00
  • Checkout

What are you looking for?

BEFORE POSTING

Before posting, please please please do have a look at our Documentation section. Your problem may be addressed there, allowing you to solve it without help from us :)

Copyright © 2025 ยท Centric Theme on Genesis Framework ยท WordPress ยท Log in