1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained WordPress Display Online Members 1.2.5b

Display what forum members are online in a WordPress widget

  1. EasyTarget

    EasyTarget Well-Known Member

    EasyTarget submitted a new resource:

    WordPress Display Online Members (version 1.2.5) - Display what forum members are online in a WordPress widget

    Read more about this resource...
  2. polle

    polle Active Member

    I just tried this and I got an error.

    Fatal error: Class 'Link' not found in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/eipSoftware/onlinenow/cls/cls_sidebartable.php on line 54
    Also in the install instructions it talks about "Last Posts", so I think theres a confusion with another plugin.

    How can I fix the error problem ?

  3. EasyTarget

    EasyTarget Well-Known Member

    Hi Polle:

    three things to check.
    make sure your directory structure looks like this...
    .....rest of the files​
    ....rest of the files​

    Check to make sure the permissions on the files are all set the same.

    In the file cls_sidebartable.php, there is a line that should be commented out that isn't
    go to line 50 and you can comment out the line,

    $guest_count    0;
    $html_Title = new Link(array('href'=>getOnlineUsers::$userOptions['forumDomain'].'index.php?online/',
    Or you can re-download the package. I updated the files.
    In the instructions; I was copying and pasting the instructions from another widget; forgot to update a couple of lines. My Mistake.

    Let me know if you have any more questions.

  4. polle

    polle Active Member

    Not working, I redownloaded.

    In line 52 I changed this:
    to this:

        //    http://localhost/forums/index.php?online/
    I got the same error.

    In the error line 54 I have this:

            $html_Title = new Link(array('href'=>getOnlineUsers::$userOptions['forumDomain'].'index.php?online/',
  5. EasyTarget

    EasyTarget Well-Known Member

    Sorry about that I forgot to link to a file.
    In the file
    getOnlineUsers.php at line 66 add the following line.
    include_once $shared_dir    '/cls/cls_htmlelements.php';
  6. EasyTarget

    EasyTarget Well-Known Member

    I will update the download package in a minute or two
  7. EasyTarget

    EasyTarget Well-Known Member

  8. polle

    polle Active Member

    Ok, I just redownload to try and it seems its working.

    The thing I noticed is the users it says that are online. How does the plugin read that ?

    In my forum I have 15 users and the widget says 83.

    The thing to have in mind here is that I have a gallery that shares users with xenforo and there are 35 users and in wordpress another 25. So the numbers does not match in any way.

    It should just show the forum ones ?

  9. EasyTarget

    EasyTarget Well-Known Member

    the file qry_currentonlineusers.php has the .sql query to determine the online users.
    It gets the info from the xf_session_activity table.

    You can modify the query to suit your own needs. The query works for my client's needs.
  10. polle

    polle Active Member

  11. Lenin

    Lenin Active Member

    o4/18/2012 an unexpected error was generated
    please use the back button to return to the prior page.
  12. EasyTarget

    EasyTarget Well-Known Member

    Can you provide some more details? the error message should say what file and line number generated the error.
    Most likely there is a problem with the configuration screen, either the plugin can't find your forms configuration file OR the plugin can't connect to your database.

    Let me know some more info and I can try and help out.
  13. Lone Wolf

    Lone Wolf Well-Known Member

    Is there any way to show users who are browsing the Wordpress site as guests in this plugins stats
  14. EasyTarget

    EasyTarget Well-Known Member

    Possibly, have to look at it.
    Lone Wolf likes this.
  15. ManuTdi

    ManuTdi Active Member

    Is it possible to insert avatars? Thank you
  16. Brandon Sheley

    Brandon Sheley Well-Known Member

    Does the wordpress site have to be on the same URL as the forum?
    If not, I'm going to check this out tonight :)
  17. EasyTarget

    EasyTarget Well-Known Member

    Yes. You can avatars in the images. I have the code available to do so.
    ManuTdi likes this.
  18. EasyTarget

    EasyTarget Well-Known Member

    Hi Brandon:
    The woprdpress implementation doesn't need to be on the same URL as the xenforo.

    The only limitation would be that the server that hosts the wordpress installation needs to be able to talk to both databases. I assumed that the database would be available at local host. However with some tweaking you could technically talk to 2 databases located on different servers.
  19. key

    key Member


    I'm getting an error on the widget (this is on my dev machine):

    Any ideas?


  20. EasyTarget

    EasyTarget Well-Known Member

    You can comment out line 35 or try switching over to PDO instead of the SQL option that tends to solve it.

Share This Page