The MU forums have moved to WordPress.org

WMUStats (27 posts)

  1. Inviz
    Inactive
    Posted 18 years ago #

    Good news everyone.

    I just completely rewrote whole script. I made massive changes:

    - Now less queries
    - Now without uneeded variables
    - Now moved to the wpmu-functions.php
    - Now with options
    - Now supports no-vhost
    - Now with HTML Strip
    - Now with Blogname variable
    - Now has homepage ;)

    Feel free to visit:
    http://inviz.personart.ru/wmus/ for lastets versions.

    Email: Inviz@personart.ru
    MSN: Inviz@personart.ru
    ICQ: 2323825

  2. mistwist
    Inactive
    Posted 18 years ago #

    LOL I was just tweaking it, didnt mean for you to have to completely rewrite it... ;)

  3. mistwist
    Inactive
    Posted 18 years ago #

    works perfectly!!! Now if I could just get comments and images to work.. back to work i go. Thank you again!!!!

  4. Inviz
    Inactive
    Posted 18 years ago #

    fixed some errors with paths.
    new version uploaded.

  5. Inviz
    Inactive
    Posted 18 years ago #

    Temporary my domain is down so homepage is

    http://konight.ru/wmus

  6. Farms
    Member
    Posted 18 years ago #

    Inviz... if you;re ever in Melbourne I will get you royally drunk, good work!

  7. Inviz
    Inactive
    Posted 18 years ago #

    I glad, you like it :D

  8. Inviz
    Inactive
    Posted 18 years ago #

    Okay folks, new version is out!

    New options added:
    - default_title (string)
    If post title or Post title of comment blank, then it will be string

    - image_replacement (string)
    If not used disables image replacement. If used makes the replace image tags with string.

    - crop_posts (int)
    makes the char limit of post to show

    - no_vhost is DELETED. Now autodetect.

    All Known bugs fixed.

    Homepage is the same:
    http://konight.ru/wmus

    Contacts are the same.

  9. gappiah
    Member
    Posted 18 years ago #

    Inviz, Great work you're doing here. And I guess you have the shortest Installation Manual I've ever seen in this forum :-)

    * Copy function get_blog_array to very bottom of wp-includes/wpmu-functions.php
    * Use it in template as shown in usage


    Could you please be kind enough to explain the installation / integration process to the rest of us who only understand things like copy this .. paste that :-)

  10. Invizz
    Inactive
    Posted 18 years ago #

    Okay, select all code in file, now open wp-includes/wpmu-functions.php. Paste code in very bottom. Now look at usage, and look what's there up, it's commented. Then download example file and look how this was integrated there. Then integrate this to your template.

  11. gappiah
    Member
    Posted 18 years ago #

    Hmmm .. thanks for the quick reply. I followed your instructions to the letter, but .. take a look at how my site (and admin panel) page now looks like http://www.sbiblogs.com

    Any advice? I'm using Build 10-14.

  12. gappiah
    Member
    Posted 18 years ago #

    Huuu .. fixed that error !!! Not finished though.

  13. Stapleton
    Member
    Posted 18 years ago #

    where does that plugin put the google script?
    Jeff

  14. Invizz
    Inactive
    Posted 18 years ago #

    Sorry, what google script?

  15. Invizz
    Inactive
    Posted 18 years ago #

    Gappiah, i see it works :)

  16. federico
    Member
    Posted 18 years ago #

    Hi Inviz,

    why?

    WordPress database error: [Unknown column 'publuc' in 'where clause']
    SELECT id,domain,path,last_updated,display_name FROM wp_users LEFT JOIN wp_blogs ON blog_id = id WHERE publuc="yes" ORDER BY last_updated DESC LIMIT 2

    Warning: Invalid argument supplied for foreach() in /home/site/public_html/wp-inst/wp-includes/wpmu-functions.php on line 806

    Thanks!!

  17. richardh37
    Inactive
    Posted 18 years ago #

    Sorry to be dense but I really can't work out how to install. Well I have installed it, but I don't know what i have to change and where to place the changes.
    Could you supply a small snippet of actual working code from, say, your site so i can compare? I work better when I can see a working bit of code and then altering it to work on my site.

    thanks

  18. richardh37
    Inactive
    Posted 18 years ago #

    I think I can see what's wrong here federico, for both you and me...

    I just checked the wp_users table and there is NO fields called:
    id,domain,path,last_updated..
    The Latest wpmu version of the wp_users table contains the following fields:
    ID, user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name

    and the field 'last_updated' now resides in wp_blogs

    Invizz, could this be the reason why we can't make this script work?

  19. federico
    Member
    Posted 18 years ago #

    Hi richardh37,

    I saw the same thing but I didn't believe that the script that's shared for this version of WPMU doesn't consider those basic changes.
    I see it work for gappiah in sbiblogs.com but I don't know how it got it.
    If you see the same thing that me, I will attempt for this way

    richardh37 very interesting your site.
    Would I be able to consult you later for your website?

    Thanks

  20. richardh37
    Inactive
    Posted 18 years ago #

    I think that the tables field issue is because the earlier versions of wpmu had different tables and as the project progressed the tables changed. if not then I'm not sure how the other guys made it work as the sql queries are clearly asking for something that just aint there!

    federico, consult away :)

  21. mydietblogger
    Inactive
    Posted 18 years ago #

    I added the code from here: http://konight.ru/wmus/code/get_blog_array/wmus_1.0_final.txt

    to wpmu-functions.php

    And created a template and page called "bloglist" with the same code as:
    http://konight.ru/wmus/code/home.php/home.php_1.0_alpha.txt

    You can see it here: http://mydietblogger.com/22/

    I am getting those errors. Any clue?

  22. richardh37
    Inactive
    Posted 18 years ago #

    >I am getting those errors. Any clue?<
    Yes, it's because the script you (and I)are using is calling for table fields that don't exisit. See what I've said about three posts up.

    I'm hoping that Invizz will see this thread and offer us a solution or even (if he's the great guy i know he is) do a quick re-write for the version that we are using.

    Invizz please hear our cry for help!

  23. federico
    Member
    Posted 18 years ago #

    Now I only get this error

    Warning: Invalid argument supplied for foreach() in /home/site/public_html/wp-inst/wp-includes/wpmu-functions.php on line 806

    The other error that I made was to change 'is_public' for 'publuc' following the instructions of Inviz exactly. It is a silly error that I made, it is not 'publuc' obviously it is 'public.'
    I checked my version PHP and it is correct.
    Does somebody know which the error is?

  24. richardh37
    Inactive
    Posted 18 years ago #

    yep that's what i did also. but in order to make it work you also have to go into your database and change all the field names for the ones in your database. Also one of the queries was to look in the wp-users for last_updated but this field now resides in wp-blogs if I recall.

    so the script needs to be re-written to account for these changes. I would have a go but i'm not a great php programmer and I wanted Invizz to confirm that we are correct in our assumption and not talking out our bottom ;)

  25. mydietblogger
    Inactive
    Posted 18 years ago #

    just upgrade wpmu i guess, i will try

  26. richardh37
    Inactive
    Posted 18 years ago #

    well that won't make wmustats work because it's the stats code that's out of date and not the latest install of wpmu.

    Can someone who is in the know on this confirm please because this thread is getting awfully long and we're still only guessing here!

  27. RavanH
    Member
    Posted 16 years ago #

    wmustats is dead? any good alternatives?

About this Topic