WordPress.org

Support

Support » Plugins and Hacks » Slim Stat Analytics » [Resolved] [Plugin: WP SlimStat] Incorrect links on SlimStat dashboard in WP Multisite

[Resolved] [Plugin: WP SlimStat] Incorrect links on SlimStat dashboard in WP Multisite

  • Hello,

    I have WP 3.1.3 set up as a multisite installation using sub-directories (rather than sub-domains). When viewing the SlimStat dashboard on any of my sites, say, blogs.myuniversity.edu/science, all hyperlinks (e.g. the Dashboard, Visitors, Traffic Sources, etc. tabs at the top; the Daily pageviews graph points; the ‘More’ links in the Recent Known Visitors widget; all links in the Spy View widget, and so on) point to blogs.myuniversity.edu/wp-admin/index.php

    As such, when I click on any of these links my browser moves from my /science site to my / site – this is unfortunate, since stats for a particular site cannot be viewed without manual address bar manipulation.

    A quick look at the code (e.g. wp-slimstat/view/index.php) shows that it is using $_SERVER['PHP_SELF'] to create the link addresses. Changing all instances of this to admin_url() or (more precisely) admin_url('index.php') seems to rectify the issue for me.

    Thoughts?

    http://wordpress.org/extend/plugins/wp-slimstat/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Crouse

    @coolmann

    Hi there,

    you made a really good point, indeed. I hadn’t thought about that from a multisite point of view 😉 I have already fixed the problem, version 2.5.1 will include it.

    Thank you for pointing this out!

    PS: a vote for my plugin would be a nice way to show your appreciation.

    Camu

    Hi camu,

    Sounds great! Thanks for your reply (and for creating the plugin in the first place). Definitely voted.

    Plugin Author Jason Crouse

    @coolmann

    Thank you, really appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: WP SlimStat] Incorrect links on SlimStat dashboard in WP Multisite’ is closed to new replies.
Skip to toolbar