Close

Account

Documentation

Forum

Menu

Counter Error

  • Post count: 1
    bancerz
    September 13, 2018 at 11:02 pm #36731

    In the JNews 3 version, you added a post display counter. Unfortunately, it does not calculate correct values (I do not work at all), that’s why I made my own. But my question is – where can I change the code that allows me to draw the number of page views from the database.

    I marked your counter in the figure (https://www.dropbox.com/s/88ueiz81mew53sx/jNews_error.jpg?dl=0).
    I also wrote what the widget used to display posts is called.

    Where can you change it?

    Thank you very much.

    Post count: 10472
    Adek
    September 14, 2018 at 12:02 pm #36760

    Hi bancerz,

    To modify the view counter, you need to edit this file /jnews/class/Module/ModuleViewAbstract.php then find this function post_meta_1, post_meta_2 and post_meta_3. Let me know if you have further question in there.

    Thank you

    Post count: 1
    bancerz
    September 15, 2018 at 1:53 am #36800

    Thanks for the help. I found the right code and turned it off (deleted).
    And by the way – why did not the code written by you work (he did not count hits for me)?

    Post count: 10472
    Adek
    September 17, 2018 at 11:51 am #36860

    Hi bancerz,

    About the view counter, please make sure if you have been install and activate the JNews View Counter plugin in there.

    Thank you

You must be logged in to reply to this topic.