The MU forums have moved to WordPress.org

How to let users add a counter? (8 posts)

  1. thebill
    Member
    Posted 19 years ago #

    Hello wordpress people,

    I'm quite new to wordpress mu, i've installed it without much problems and now it is running fine. I got a couple friends which requested a blog and the system is not running about 10 blogs. One user asked me how to add a counter (for example statcounter.com ) to the blog. I tryed doing it with a text widget but that one seems to filter out javascript.

    Anyone knows how to let users add a counter code to the blog?

    Cheers!

  2. lunabyte
    Member
    Posted 19 years ago #

    Use a widget?

  3. thebill
    Member
    Posted 19 years ago #

    Thanks for the reply, but from my forum post:

    I tryed doing it with a text widget but that one seems to filter out javascript.

    ;-)

    Or are there other widgets i don't know of?

  4. Ovidiu
    Member
    Posted 19 years ago #

    well there are some more widgets out there which let you execute php and javascript but that is dangerous as has been said around here :-)

    there is a widget called samsarin, and another one from mediablog its called king-txt widget, give those a try...

  5. andrea_r
    Moderator
    Posted 19 years ago #

    There's also a Sitemeter widget. Two, I think.

  6. badlagar
    Member
    Posted 19 years ago #

    And you can put in a text widget an html counter... sitemeter, statcounter... allow this.

  7. lunabyte
    Member
    Posted 19 years ago #

    That's what I was getting at, Bill.

    There's got to be a counter widget out there somewhere.

    As already mentioned, allowing users to insert html, javascript, or php into a widget is really bad juju.

    Or you could make your own widget, where users can input their data (username, or whatever it requires), and then have it run. Then you're controlling the code. ;)

  8. thebill
    Member
    Posted 19 years ago #

    Thanks guys, that sitemeter widget is easy to install and works perfect. I could even use it as a base to create a statcounter widget if needed. Great and still secure! :-)

About this Topic