• Word Press Statistics (zip file)
    This is a port to WP 1.2 as a plugin and significant improvement based on the code from GamerZ.
    It features some pretty significant changes and improvements for template integration. Installation instructions are included. It does operate differently than the release by GamerZ, it probably is not compatible with WordPress 1.0.x. Although I’m sure it could be with a few tweaks to the code.
    The original forum for discussion is here.
    I do not currently have a demo online, my website has not been upgraded to WP 1.2 yet, I’ve been testing it locally. Hopefully in the next day or two, I’ll have a sample site online for people to check out.
    If were lucky there won’t be too many issues with it so people can hit the ground running with it when WP 1.2 is released this week.

Viewing 15 replies - 31 through 45 (of 113 total)
  • No, if your address is ursite/wordpress and you enter ursite/wordpress/stats, it will redirect you. The problem is probably with “b2”. Change the redirect to whatever directory you have your WP index file in.

    Here’s what I have
    # blog stats
    RewriteEngine On
    RewriteRule ^stats/author/(.*)?/page/?(.*)?/?$ /blog/index.php?wp_stats=1&author=$1&page=$2 [QSA]
    RewriteRule ^stats/author/?(.*) /blog/index.php?wp_stats=1&author=$1 [QSA]
    RewriteRule ^stats/ /blog/index.php?wp_stats=1 [QSA]
    RewriteRule ^stats /blog/index.php?wp_stats=1 [QSA]
    Where blog is a folder off my root. It’s actually a subdomain but the folder is off root. /home/public_html/blog
    I get page not found when trying to access https://mysite/stats/author/
    John

    Thread Starter unoamigo

    (@unoamigo)

    Beel has it exactly right. ??
    You need to specify a author, or you will get a page not found.
    Take Stuart’s page as an example:
    https://thebombsite.com/stats/author/Stuart
    If you post the link to your site, I’m sure we can figure out what is wrong real quick.

    Thread Starter unoamigo

    (@unoamigo)

    Updated

    • Beel, going back a few entries. Where I forgot “stats/” turns out I didn’t. While aiming for convenience I messed up. If you load your site up as:
      https://www.billhayes.us/wordpress/stats/
      Notice all your author links are wrong. That trailing slash throws everything off. It would cause the comment author links to look like this:
      https://www.billhayes.us/wordpress/stats/stats/author/Stuart
      This problem is now corrected and I’m generating the full url based on settings stored in WordPress.
    • Also fixed a bug when going to a previous page from stats/author/Author_name
    • $page is now $stat_page, hopefully that won’t conflict with any existing hack/plugin.
    • Recent comments can now be returned as a table.
    • install.txt, will now continue to include the date and time of it’s release.

    Everything is fine now. Thanks for everyone’s help.
    John

    Thread Starter unoamigo

    (@unoamigo)

    Hey, no problem.
    Demo now online.

    Hi there,
    I have uploaded the plugin for 1.2, and if I try:
    /mysite/blog/stats/
    I get the following error: “Not found”
    However, if I try
    /mysite/blog/index.php?wp_stats=1
    The stats show up, but they are not formatted with my css.
    3 Questions:
    Am I doing something wrong in which the first url does not work? Is using the second url ok?
    How can I get my css to format the stats page that is generated?
    Thanks!

    Thread Starter unoamigo

    (@unoamigo)

    Using the 2nd url is ok, except that browsing individual commenter stats will be broken.
    If you go with the instructions then the css for your index page will be used. You will want markup for li and ul in particular.
    Again, with the mysite/blog/stats/ not working, it’s because you need to add to your .htaccess file – lines indicated in directions. ??
    Hope that helps out.
    Have an actual URI?
    ??

    Unoamigo,
    Maybe I am not clear about the .htaccess file. I have a .htaccess file in my cgi-bin(where I have added your code), but this does not seem to be working. Is it possible that my .htaccess file could be someplace else?
    Thanks!

    Thread Starter unoamigo

    (@unoamigo)

    Your .htaccess file needs to be in your blog directory. Not your cgi bin.
    My code needs to be in: wp-content/plugins
    Naturally the plugin also needs to be activated. ??
    Neither .htaccess or statistics.php are cgi scripts. .htaccess is a file that web servers use to manipulate directory access. statistics.php is a php plugin to WordPress. (php != cgi)
    Let me know if this helps out.

    Thread Starter unoamigo

    (@unoamigo)

    Your page is working properly. There is a default threshold of 5 comments posted by a person before they show up under: “Comments’ Members Stats”
    Therefore, your page is set up right. You just need a few more comments by people.
    Cheers! Enjoy!

    Hi unoamigo,
    I put a .htaccess file in my blog directory. However, when I try to load my weblog after doing so, I get a 500 internal error and my blog does not show up. Once I remove the .htaccess file from my blog directory, everything is fine.
    Any idea what the problem is?

    Thread Starter unoamigo

    (@unoamigo)

    Just got back in town – from a macro:
    Your rewrites appear to be correct:
    https://www.paxasiana.com/stats/author/Jonathan
    However, you do need to make sure your image links are referential based on root. (image fails to load)
    Pass on to me your modification to statistics.php to lower the threshold. From what I can see here I’m not sure what your problem is.

    Thread Starter unoamigo

    (@unoamigo)

    jarrett
    Who is your web address?
    Also posting your .htaccess file will be handy.
    I can verify you installed it correctly without the .htaccess file existing. The stats page will work perfectly fine other than navigating authors without it (.htaccess).

    I sent you my statistics.php file, although I don’t think my modification has anything to do with the problem (it was already like that). Could it possibly be something with my configuration of WP (since it’s happened to me before with the original GaMeRz version)?

Viewing 15 replies - 31 through 45 (of 113 total)
  • The topic ‘WP 1.2, Statistics’ is closed to new replies.