WordPress.org

Ready to get started?Download WordPress

Forums

StatPress Visitors
[Plugin: Statpress Visitors] StatPress_Print("%thistotalpageviews%") no longer works (9 posts)

  1. eracc
    Member
    Posted 3 years ago #

    I was using this variable discretely in the footer of our theme to see the total unique pages views for each page of our technical web log. Now after updating WordPress and StatPress Visitors to the latest releases instead of producing a number this command just prints %thistotalpageviews% on the page. Obviously this is not what I want. How do I now get a total for unique views of each page? Thank you.

    Edit: for now I have just placed PHP comment marks around this code in hopes you can provide a quick solution.

    http://wordpress.org/extend/plugins/statpress-visitors/

  2. luciole135
    Member
    Plugin Author

    Posted 3 years ago #

    If you use it in the footer, you must use the function StatPress_Print().
    You can use the variable in the widget.

  3. eracc
    Member
    Posted 3 years ago #

    Yes, I know about the StatPress_Print() function and do use it. Here are the relevant lines from the footer (of course the StatPress_Print line is still commented out at this point.)

    <?php /* Remove this line and the next line if StatPress is uninstalled */ ?>
    <?php /* StatPress_Print("%thistotalpageviews%"); /* ?>

    Let me know what else you need to fix this. Thanks for the quick response.

  4. eracc
    Member
    Posted 3 years ago #

    FYI, I tried just placing %thistotalpageviews% in the statpressV widget and it still does not work. The widget just prints the string %thistotalpageviews%, not a number. Has this variable been removed? If so, how do I now get a total for unique views of each page?

  5. eracc
    Member
    Posted 3 years ago #

    Argh! The %thistotalpages% variable does not work either...

    Edit: nor does %thistodaypageview% ... :(

  6. luciole135
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    I am awfully sorry. I delete it by mistake. I have too much many 'Visitors' files on my computer.
    Tell me exactly all the variables you want and today I publish a version with them.
    My apologize

  7. eracc
    Member
    Posted 3 years ago #

    Ah, that would explain it then. No problem. Maybe you need local revision control? :)

    The only ones I use explicitly are the ones I mentioned here:

    • %thistotalpageviews%
    • %thistotalpages%
    • %thistodaypageview%

    But the one I most rely on most is the unique visitors per page in my footer with %thistotalpageviews%.

  8. luciole135
    Member
    Plugin Author

    Posted 3 years ago #

    You can find the the new variable in 1.3.1

  9. eracc
    Member
    Posted 3 years ago #

    That did it. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic