Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • Addons
  • Cart
  • PRO version
  • Addons
  • Support
  • Tutorials
    • Questions and Answers
    • Developer documentation

Posts stats table

by

› Forums › Post Pay Counter PRO › Support › Posts stats table

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 12 replies, 2 voices, and was last updated 1 year, 6 months ago by Chris.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • July 25, 2019 at 1:59 pm #66148
    UD
    Guest

    Hi Stefano,

    I was wondering if there is a way to make the stats table show 10 posts per page with the numbered navigation at the bottom? I couldn’t find it in the code to limit the total of posts, and if it helps the shortcode we’re using is:
    [ppc author="current" display_timerange_choices=0 exclude="post_id, post_type, post_publication_date, post_status, post_total_payment"]

    Similarly, is it possible to make the payment history into one table with a numbered navigation as well? Like this:

    Thanks!

    July 25, 2019 at 4:36 pm #66155
    Stefano
    Keymaster

    Hi UD,
    there’s currently no way to change the number of posts displayed with the shortcode. It is possible in the backend, though. The same applies to payment histories 🙂

    Have a nice day,
    Stefano

    July 25, 2019 at 6:11 pm #66166
    UD
    Guest

    Hello Stefano,

    I’m aware of the shortcode limits, I was inquiring more about the code, specifically the function that returns the posts list for the stats_shortcode function.

    I was able to find the payment history function get_payment_history_shortcode_html(), but couldn’t go beyond this for the posts:

    1
    2
    3
    4
    5
    $html .= '<tbody>';
    ...
    $html .= PPC_HTML_functions::get_html_stats_tbody( $formatted_stats, $raw_stats, $author, "shortcode" );
    ...
    $html .= '</tbody>';

    It would be nice if you can guide to the right place.

    Thank you!

    July 26, 2019 at 3:11 pm #66190
    Stefano
    Keymaster

    Hi UD,

    I’m aware of the shortcode limits, I was inquiring more about the code, specifically the function that returns the posts list for the stats_shortcode function.

    Right – so you are probably looking for the class post-pay-counter/classes/ppc_generate_stats_class.php. There, the function produce_stats() is what is called anytime stats need to be generated. It then calls up all the necessary intermediate steps to come up with processed stats 🙂

    Hope this helps!
    Have a nice day,
    Stefano

    July 27, 2019 at 4:31 pm #66204
    Chris
    Guest

    Hey Stefano,

    Could you possibly make the changes for me? I’ll provide cPanel credentials in private

    July 27, 2019 at 9:28 pm #66209
    Stefano
    Keymaster

    Hi Chris,
    Sorry, what changes are you talking about? 🙂

    Have a nice day,
    Stefano

    July 28, 2019 at 10:17 am #66227
    Chris
    Guest

    Hi Stefano,

    The changes UD was talking about. UD created this topic on my behalf.

    July 28, 2019 at 10:41 am #66229
    Stefano
    Keymaster

    Hi Chris,
    I think there was some misunderstanding here: UD asked for directions on where to find code (in particular, the stats generation code), which I provided. But we never discussed nor agreed about any edits to the code 🙂

    July 28, 2019 at 1:50 pm #66236
    Cheis
    Guest

    Hi Stefano,

    Alright gotcha. I would really need your help on this or a proper guide on how to implement this.
    Does my pro license include support services such as implementing the code? If not please quote me Stefano.

    July 28, 2019 at 11:36 pm #66246
    Stefano
    Keymaster

    Hi Chris,
    no, implementing code is extra, and requires quoting and working as you mentioned 🙂
    However, this would be significant changes and I am honestly not in the position to accept it now. Pagination in the backend is partly managed by WordPress through its WP_List_Table class, our implementation is in post-pay-counter/classes/ppc_wp_list_table_posts_class.php for example.

    To change the behaviour of the shortcode you may want to look into post-pay-counter-pro/classes/ppcp_shortcode_class.php. Not sure if this helps, though :\

    August 2, 2019 at 3:18 pm #66386
    Chris
    Guest

    Hi Stefano,

    I am not experienced in coding and stuff. Could you please let me know once you are available to implement this for me?
    I need this https://imgur.com/a/hXNJ7p9 or else in the future when a user has 100 post that has earnings is going to be endless scrolling on my webpage.

    August 2, 2019 at 10:33 pm #66401
    Stefano
    Keymaster

    Hi Chris,
    I’ll give this a thought, but to be honest August is going to be a busy month, also considering vacations. It is also a considerable amount of work. Is this urgent?

    Have a nice day,
    Stefano

    August 3, 2019 at 6:46 pm #66416
    Chris
    Guest

    Hi Stefano,

    It is not urgent right now as I do not have many users whose post is able to gain money.
    Please do get back to me whenever ready with the quote

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Posts stats table’ 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?

Connect on Facebook

Follow the Post Pay Counter page on Facebook to be up-to-date with discounts and latest releases!

BEFORE POSTING

Before posting, please please please do have a look at our Tutorials and Questions & Answers sections. Your problem may have been already addressed there, allowing you to solve it without help from us :)

Copyright © 2021 · Centric Theme on Genesis Framework · WordPress · Log in

This site uses cookies, as all sites on the planet do -- More info