Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support
You are here: Home

Stefano

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

Viewing 20 posts - 701 through 720 (of 3,037 total)
← 1 2 3 … 35 36 37 … 150 151 152 →
  • Author
    Posts
  • August 1, 2019 at 6:57 pm in reply to: How can I output the total number of views for one month for all total users ? #66357
    Stefano
    Keymaster

    Unfortunately, there is no native way to achieve that, I’m afraid ๐Ÿ™

    August 1, 2019 at 11:11 am in reply to: How can I output the total number of views for one month for all total users ? #66335
    Stefano
    Keymaster

    Hi there,
    you should look at the Overall stats feature at the bottom of the stats page. It provides totals for the stats shown. So if you select the time range the right way, you should get what you are looking for ๐Ÿ™‚

    If you don’t see any Overall stats at the bottom of the stats page, make sure they are enabled in Options > Miscellanea > Performance.

    Have a nice day,
    Stefano

    August 1, 2019 at 11:09 am in reply to: words not counting #66332
    Stefano
    Keymaster

    Hi there,
    I would strongly advise adjusting your setup to have the post content into the default WordPress field, instead of a meta field. All plugins and themes will expect this, and doing it differently will always require tweaking the code.

    Then, if you really want to keep your current setup, Post Pay Counter will need to be tweaked as well. However, changing plugin code to make it fit your site is not part of the support we provide, but is instead custom (paid) work. So if you would like I can provide you with a quote for the custom work. Otherwise, sorry, but we cannot put in (several) paid hours of work without being paid ๐Ÿ˜‰ Hope you understand!

    Have a nice day,
    Stefano

    July 31, 2019 at 3:46 pm in reply to: words not counting #66310
    Stefano
    Keymaster

    Right – so what you can do is look for post_content in the file post-pay-counter/classes/ppc_counting_stuff_class.php. In the function count_post_words, the post content is wrapped in a filter and it should be easy. On the other hand, in the function count_post_images, the plugin takes the WP post content without any filtering. You can add it yourself with the name ppc_count_post_images_post_content_start and I will add it to the public code in the next release, so you will still be able to update to future versions ๐Ÿ™‚

    Or another way would be to hack the function by filtering its output through ppc_counted_post_images and calling herself back with $post, having populated $post->post_content with the post content taken from your custom field.

    Hope this helps!
    Have a nice day,
    Stefano

    • This reply was modified 6 years, 4 months ago by Stefano.
    July 31, 2019 at 12:11 pm in reply to: words not counting #66301
    Stefano
    Keymaster

    Are you a developer? ๐Ÿ™‚

    July 31, 2019 at 11:23 am in reply to: words not counting #66294
    Stefano
    Keymaster

    Hi there,
    the plugin does not retrieve post content from sources other than the default WP one, as that is what virtually all websites do. You will need to have some custom work done in order for the plugin to retrieve the content from your custom field and to work properly ๐Ÿ™‚

    Have a nice day,
    Stefano

    July 28, 2019 at 11:36 pm in reply to: Posts stats table #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 :\

    July 28, 2019 at 10:41 am in reply to: Posts stats table #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 27, 2019 at 9:28 pm in reply to: Posts stats table #66209
    Stefano
    Keymaster

    Hi Chris,
    Sorry, what changes are you talking about? ๐Ÿ™‚

    Have a nice day,
    Stefano

    July 26, 2019 at 3:11 pm in reply to: Posts stats table #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 26, 2019 at 3:09 pm in reply to: Need Help in Referral Visits #66187
    Stefano
    Keymaster

    The problem is that line 304 of functions.php should have the word creator all in small caps: if( in_array( 'creator', (array) $user->roles ) ). This should fix ๐Ÿ™‚

    July 25, 2019 at 5:10 pm in reply to: Need Help in Referral Visits #66163
    Stefano
    Keymaster

    I wrote the Creator word lowercase, just in case. Did that helped? Anyway, I don’t see any user with that role on your site, who should I check out to test?

    July 25, 2019 at 4:38 pm in reply to: Need Help in Referral Visits #66158
    Stefano
    Keymaster

    now I am unable to see refer link on posts

    Well, you do not have the creator role, I guess, so it is right that you do not see the link, right? Do creators see it?

    July 25, 2019 at 4:36 pm in reply to: Posts stats table #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 4:33 pm in reply to: How it works?! #66152
    Stefano
    Keymaster

    Hi Nour,

    1. Yes, you can define how much you want to pay each referral visit
    2. The payment for referral visits is not shared with the post author – that is more money that goes out of the administrator account
    3. This is how the referral link shows up in the frontend:

      The link can also be fetched from the post edit page, and there is a shortcode to display the box above anywhere in the frontend.

    Hope this helps!
    Have a nice day,
    Stefano

    July 24, 2019 at 7:17 pm in reply to: Need Help in Referral Visits #66134
    Stefano
    Keymaster

    This is where the user role is mentioned:
    if( in_array( 'subscriber', (array) $user->roles ) )

    July 24, 2019 at 11:22 am in reply to: Need Help in Referral Visits #66129
    Stefano
    Keymaster

    Line numbers were slightly off in your and my files, you had replaced the wrong line ๐Ÿ™‚ Try again now.

    July 24, 2019 at 10:19 am in reply to: how to check the amount individually for reference visit on page in stats are #66124
    Stefano
    Keymaster

    Hi Surabhi,
    you can see the stats for each user in the main stats table, in the Ref. visits column. That is where the total for each user is shown. Is this what you are looking for? Otherwise please provide some more explanation ๐Ÿ™‚

    Have a nice day,
    Stefano

    July 24, 2019 at 10:17 am in reply to: Need Help in Referral Visits #66121
    Stefano
    Keymaster

    Hi Raj,
    I don’t really know what to say – I double tested the changes and they work for me. The best I can do is have a look with admin access at your site, most likely you did not do something all right ๐Ÿ™‚

    Have a nice day,
    Stefano

    July 23, 2019 at 9:37 am in reply to: Need Help in Referral Visits #66094
    Stefano
    Keymaster

    Hi Raj,
    the following edits will have the effect of displaying the referral box only to the subscriber role. To change the role, just replace the word subscriber with whatever you wish in the code below ๐Ÿ™‚

    1. Open the file ppc-referral-visits/classes/display.php and replace line 194 with this:

      return apply_filters( 'ppc_ref_vis_referral_link_html', $ref_html, $author_id );

    2. Open your theme’s functions.php file and, at the bottom, add a few line breaks and add this:
      function ppc_ref_vis_referral_link_filter_user_role( $html_output, $user_id ) {
      	$user = get_userdata( $user_id );
      	if( in_array( 'subscriber', (array) $user->roles ) )
      		return $html_output;
      	else
      		return '';
      }
      add_filter( 'ppc_ref_vis_referral_link_html', 'ppc_ref_vis_referral_link_filter_user_role', 10, 2 );

    Let me know, it should have the desired effect!
    Have a nice day,
    Stefano

  • Author
    Posts
Viewing 20 posts - 701 through 720 (of 3,037 total)
← 1 2 3 … 35 36 37 … 150 151 152 →

Your cart

Number of items in cart: 0

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

What are you looking for?

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