› 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 5 years, 2 months ago by Chris.
-
AuthorPosts
-
July 25, 2019 at 1:59 pm #66148UDGuest
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 #66155StefanoKeymasterHi 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,
StefanoJuly 25, 2019 at 6:11 pm #66166UDGuestHello 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:
$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 #66190StefanoKeymasterHi 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,
StefanoJuly 27, 2019 at 4:31 pm #66204ChrisGuestHey Stefano,
Could you possibly make the changes for me? Iโll provide cPanel credentials in private
July 27, 2019 at 9:28 pm #66209StefanoKeymasterHi Chris,
Sorry, what changes are you talking about? ๐Have a nice day,
StefanoJuly 28, 2019 at 10:17 am #66227ChrisGuestHi Stefano,
The changes UD was talking about. UD created this topic on my behalf.
July 28, 2019 at 10:41 am #66229StefanoKeymasterHi 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 #66236CheisGuestHi 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 #66246StefanoKeymasterHi 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 itsWP_List_Table
class, our implementation is inpost-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 #66386ChrisGuestHi 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 #66401StefanoKeymasterHi 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,
StefanoAugust 3, 2019 at 6:46 pm #66416ChrisGuestHi 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 -
AuthorPosts
- The topic ‘Posts stats table’ is closed to new replies.