WordPress.org

Ready to get started?Download WordPress

Forums

AJAX Hits Counter + Popular Posts Widget
[resolved] excerpt? (30 posts)

  1. Anik
    Member
    Posted 1 year ago #

    Hi there,

    is there any option to show post excerpt and limit it to word count? something like {post_excerpt_20}

    thanks.

    http://wordpress.org/extend/plugins/ajax-hits-counter/

  2. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for idea!
    I will do it in next version.

  3. Anik
    Member
    Posted 1 year ago #

    All the best for that.
    Cheers!

  4. Anik
    Member
    Posted 1 year ago #

    and one thing i would like to tell, can you create a simple plugin which can show the recently updated posts? i saw some of them here but they are pretty outdated and breaks in the theme. something like this will be good.

  5. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    0.5.8
    Added placeholder {post_excerpt_N} to Popular Posts Widget, where N - is words count. Thanks for the idea to meetanik.
    Update screenshot of Popular Posts Widget

  6. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    and one thing i would like to tell, can you create a simple plugin which can show the recently updated posts? i saw some of them here but they are pretty outdated and breaks in the theme. something like this will be good.

    Yes, I can do it.
    Something like this plugin: recently-updated-posts ?

  7. Anik
    Member
    Posted 1 year ago #

    0.5.8
    Added placeholder {post_excerpt_N} to Popular Posts Widget, where N - is words count. Thanks for the idea to meetanik.
    Update screenshot of Popular Posts Widget

    Wow,.. thanks for your super fast update.
    yeah that is perfect.

    Yes, I can do it.
    Something like this plugin: recently-updated-posts ?

    I did not tested that plugin but yeah something like this.
    i use a plugin http://wordpress.org/extend/plugins/last-updated-posts-widget/ it's not bad but it's outdated. and it did not show excerpt.

    i tried another plugin which shows excerpt but it's styling is very bad. no such difference between post title and except, breaks with theme,. awful.

    you can create something same as AHC + PPW
    its simple and clean.

  8. Anik
    Member
    Posted 1 year ago #

    and there is a tiny little small glitch i found
    your 'visit plugin site' 's url is http:///romantelychko.com/downloads/wordpress/plugins/ajax-hits-counter.latest.zip

    you should remove the extra '/' from the http.

    its making the browser failed to load your site. Otherwise everything looks great. :)

  9. Anik
    Member
    Posted 1 year ago #

    well kutsy, i think there is some problem with excerpt. it shows the same excerpt in every post. (The top post's except. i use custom excerpt in my site)

  10. Anik
    Member
    Posted 1 year ago #

    and in my excerpt i use image and text. is the any way to resize the image in the excerpt to show?

  11. Anik
    Member
    Posted 1 year ago #

    and the word count is not working. it's showing the whole excerpt.

  12. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    and there is a tiny little small glitch i found
    your 'visit plugin site' 's url is http:///romantelychko.com/downloads/wordpress/plugins/ajax-hits-counter.latest.zip

    Thanks! I fix it.

    well kutsy, i think there is some problem with excerpt. it shows the same excerpt in every post. (The top post's except. i use custom excerpt in my site)

    I changed algorithm of wp_reset_postdata(). Try now.
    I hope it will work!

    and the word count is not working. it's showing the whole excerpt.

    Do you use this filter add_filter( 'excerpt_length', 'my_function' );?
    Third parameter of this function is priority. In my widget I set priority to 1024. How priority do you use ?

  13. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    and in my excerpt i use image and text. is the any way to resize the image in the excerpt to show?

    I thinks in this case this is impossible.
    Can you use thumbnail instead of image in content?

  14. Anik
    Member
    Posted 1 year ago #

    kutsy i got a huge problem.
    after upgrading your plugin my whole server crashed. everywhere 500 error.
    page load time is about 5 minutes. even can't login to ssh.
    still trying to fixing it. don't know if i will get success or not.

  15. Anik
    Member
    Posted 1 year ago #

    hi Kutsy

    finally i able to recover it. after the update it's working but still not the excerpt.

    Do you use this filter add_filter( 'excerpt_length', 'my_function' );?

    no i don't use it. i use the custom excerpt for my post which is available in wp post area (below the main post field)

    and kutsy one new i idea i can tell is make a option of daily popular post.
    i mean when this option is enabled the widget will show the daily popular posts and will expire at the end of the day to fetch the new ones.
    that will be great.

  16. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    after upgrading your plugin my whole server crashed. everywhere 500 error.

    Can you describe more detail this error? Error log?
    Or it was not related to the plugin update?

    no i don't use it. i use the custom excerpt for my post which is available in wp post area (below the main post field)

    You still don't get excerpt in plugin widget?

    and kutsy one new i idea i can tell is make a option of daily popular post.
    i mean when this option is enabled the widget will show the daily popular posts and will expire at the end of the day to fetch the new ones.
    that will be great.

    Great idea! Thanks.
    I'll try to think about this new widget in few days.

  17. Anik
    Member
    Posted 1 year ago #

    Error log?

    Sorry i lost them all cause i reinstalled everything from php to mysql
    and httpd to nginx.

    You still don't get excerpt in plugin widget?

    Yes i get but the word count is not working. its not very big problem for me but you can take a look to see what is the error.

    Great idea! Thanks.
    I'll try to think about this new widget in few days.

    why create a new one? just update this one, create a new mysql table which will hold the hits and will reset in every 24hrs. obviously users can set this option enabled in their widget installation. a new plugin means 2x load.

  18. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry i lost them all cause i reinstalled everything from php to mysql
    and httpd to nginx.

    Too bad :-(

    why create a new one? just update this one, create a new mysql table which will hold the hits and will reset in every 24hrs. obviously users can set this option enabled in their widget installation. a new plugin means 2x load.

    I will think about your suggestion.

  19. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    Please check version 0.8.0

  20. Anik
    Member
    Posted 1 year ago #

    you mean now we can show posts which are popular in last 24 hours?

    and did you tried to make the hit count system dependent on js instead of php?

  21. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    > you mean now we can show posts which are popular in last 24 hours?

    It's hard.
    But now you can show only posts, that published in last 24 hours/week/month/...

  22. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    > and did you tried to make the hit count system dependent on js instead of php?

    How it can be on JS? node.js ?

  23. Anik
    Member
    Posted 1 year ago #

    It's hard.
    But now you can show only posts, that published in last 24 hours/week/month/...

    well that's something what i needed, but anyway, i can wait for it to added later. :)

    How it can be on JS? node.js ?

    if you can build it with that library then no problem. there is lots hit counting system dependent on js (like google analytics, statcounter etc.).
    The advantage of it is that they are client side and when one cache a page with some cache plugin (like w3 total cache, wp super cache etc.) the hit counting will not be affected. they will be accurate because for it's client side behavior.
    I think i made it clear to you now kutsy.

  24. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    there is lots hit counting system dependent on js (like google analytics, statcounter etc.).
    The advantage of it is that they are client side and when one cache a page with some cache plugin (like w3 total cache, wp super cache etc.) the hit counting will not be affected. they will be accurate because for it's client side behavior.

    AJAX Hits Counter as you know, also count with JS with PHP on the backend.
    I use W3 Total Cache + nginx whole-page-cache and I dont get any problems with hits counting. And I still dont understand reasons to move backend to JS.

  25. Anik
    Member
    Posted 1 year ago #

    I use w3 total cache too.. i use it to cache the page for a static one. the problem is it the counts are less than the actuals. i thought that it is due to the cache. i use 15 mins to keep cached page. so in this 15 minutes i think it not counts the page loads. hits are also less than the page view shows in analytics service. for this reason i think js will be good to count the visits. if you sure that it can "accurately" count the visits, then its okay.

  26. Anik
    Member
    Posted 1 year ago #

    I saw the new feature that the hits count meta box is added to post page. great. but can you set this so that only users with admin privilege can see this box? well, this can be done by few tweaks in the functions file, but if you add this then it will be good. :)

  27. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    the problem is it the counts are less than the actuals. i thought that it is due to the cache. i use 15 mins to keep cached page. so in this 15 minutes i think it not counts the page loads. hits are also less than the page view shows in analytics service.

    Maybe I understand your problem. Your nginx location /wp-admin/ is also cached by nginx whole-page-caching?
    If it is true, then this is normal :-)
    I added to GET-parameters in hit-request some random and time data, for resolve this.

    if you sure that it can "accurately" count the visits, then its okay.

    Check version 0.8.2

    I saw the new feature that the hits count meta box is added to post page. great. but can you set this so that only users with admin privilege can see this box?

    Also check version 0.8.2

  28. Anik
    Member
    Posted 1 year ago #

    I am not using nginx right now Roman. I am on apache.

    I also added the plugin files in total cache 'no-cache' list.

    Actually i have various authors in our site and they will love to alter their article's hits to get in to the first page. :)

  29. kutsy
    Member
    Plugin Author

    Posted 1 year ago #

    I am not using nginx right now Roman. I am on apache.
    I also added the plugin files in total cache 'no-cache' list.

    It's strange... Hm...

    Actually i have various authors in our site and they will love to alter their article's hits to get in to the first page. :)

    From version 0.7.2 you can use function to display hits in your theme
    ajax_hits_counter_get_hits($post_id)

  30. Anik
    Member
    Posted 1 year ago #

    Yeah, it's strange for me too..

    yes i know about that and i am thinking to use it near future. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.