Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Users online in widget format.
Avatar
Wayne Williams
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 18, 2015 - 7:16 am

I am not a coder nor do I profess to be one. In a previous question, I was given codespeak and I really have no idea what to do with that..with that said..

I'm also not a novice and have made use of snippets here and there in the past to accomplish what I required.

I am seeking to put Online users on the main page of my wordpress in a widget form. Is there is php snippet that will accomplish this? If so can you please share it. Otherwise can you give me some steps to follow instead of just telling me about hooks and API. I just need a small piece of information to assist me in my site.

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 18, 2015 - 7:34 am

Odd. I can only find one other topic from you and we didn't offer any code in that as you would have need a complete custom plugin to achieve it. So a little confused by that...

We don't have a separate tag or widget to display this data. I just tried with the template function and while it displays it is missing some items due to being out of scope. That's a shame really and something I will open a ticket for as it would make a possible useful tag to offer.

But - having said that - I should point out that this only covers users who are visiting the forum, NOT users who are visiting the website generally. There are WP plugins available that will cover this sitewide (like 'WP-userOnline' perhaps and one that even can show a map and location.

I don't recall ever being asked for a tag or widget to do this but, as I say, I can see it could be useful; and will get a ticket and task opened right away

andy-signature.png
YELLOW
SWORDFISH
Avatar
Wayne Williams
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 19, 2015 - 3:55 am

That is correct. Only one topic from me. But the direction it went in was not favorable. I don't follow API and hooks..I just asked for help with something. But I did figure it out and was able to do what I need to be done but in a different way. So all worked out.

The reason I ask for this particular code is due to the fact that we are coming from SMF to Simple:Press and whilst you say they are two different functions, it still makes it appear to be streamlined together. SMF had a portal. It has the users online and such in the portal. WP is the portal to Simple:Press in this instance and I just want to be sure my users feel at home as they have in SMF for many years.

WP-Useronline is pretty horrible. I want to be able to click on a person's name and be taken to their profile. With this addon it is not possible.

With that said...Simple:Press is amazing. I am loving using it so far. My site is not available just yet but I have it built locally and am tinkering away on it. I LOVE the fact that you can have different topic icons. That makes me a happy camper.

I look forward to seeing the feature above listed. That would be amazingly good. Please keep me updated.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 20, 2015 - 3:13 am

I have added it to my list and even taken a look at the code to see what would be needed...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 20, 2015 - 5:42 am

Actually - I am being somewhat stupid here, There already IS a tag you can use to simply display the users who are currently online within the forum. But you need to Install our 'Who is Online' SP plugin first.

Then you can use the tag (using example labels):

<?php sp_OnlineCurrentlyOnline('','Members Online: ','Guests Online');; ?>

And you CAN use this in a text widget as long as you have a WP plugin like the 'ezPHP for WordPress' installed and active that allows for using php in widgets and posts.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600