MyBB Support

People online sidebar?

Submitted by redd, , Thread ID: 22550

Thread Closed

RE: People online sidebar?

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
OP
29-07-2016, 07:58 PM
This post was last modified: 29-07-2016, 08:28 PM by redd
#11
29-07-2016, 06:26 PM
John Wrote:
29-07-2016, 05:11 PM
redd Wrote:
29-07-2016, 01:29 PM
John Wrote:
29-07-2016, 12:03 PM
Realistic Wrote:
You are literally the only person who asks for help. Please start contributing before you ask help.

Who do you think you are? There's no post prerequisite to start a support thread on these forums, and as far as I can see you're the only one "breaking the rules" by harassing another member. Let him be.

Redd, give this plugin a shot and let us know how it goes.

Does this only show users online avatar or also just names only?

It's a customizable plugin so you'll need to play with it a bit. Install it and look through its features and tell us if you have any questions.

Thanks got more questions but will ask them somewhere else scared to ask them here since all the negative reactions i got here dont want to be neg repped for questions. I appreciate your help though!


Edit: datplugin is not working Because sidebars are not showing i think its because its not compatible with 1.8 i changed the compatability though

RE: People online sidebar?

John
Veteran Member
Level:
0
Reputation:
25
Posts:
245
Likes:
38
Credits:
159
29-07-2016, 11:24 PM
#12
The help forum is here for a reason. If you ever have a question don't be afraid to ask.
NulledBB Member Since 2013 | Former Staff Member | Web Designer

Need MyBB/website help? Feel free to message me!

RE: People online sidebar?

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
OP
29-07-2016, 11:33 PM
#13
29-07-2016, 11:24 PM
John Wrote:
The help forum is here for a reason. If you ever have a question don't be afraid to ask.

Is this the code for online users{$onlinemembers} to put in sidebar?

RE: People online sidebar?

John
Veteran Member
Level:
0
Reputation:
25
Posts:
245
Likes:
38
Credits:
159
29-07-2016, 11:36 PM
#14
Yes. However, from what I remember, {$onlinemembers} is only created in index.php, so make sure you'll only be using it there unless you want to reinstate it on another page.
NulledBB Member Since 2013 | Former Staff Member | Web Designer

Need MyBB/website help? Feel free to message me!

RE: People online sidebar?

Illuminatus
Fulltime Member
Level:
0
Reputation:
62
Posts:
1.56K
Likes:
59
Credits:
95
29-07-2016, 11:41 PM
#15
I'm sorry for being a bit rude before.
Do not allow the eye to fool the mind.

RE: People online sidebar?

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
OP
29-07-2016, 11:52 PM
This post was last modified: 29-07-2016, 11:52 PM by redd
#16
29-07-2016, 11:36 PM
John Wrote:
Yes. However, from what I remember, {$onlinemembers} is only created in index.php, so make sure you'll only be using it there unless you want to reinstate it on another page.

Anyway i can change these 2 so members on top and the stats of online users underneath ?

[Image: bb630290fc9e8439a91367edda55e48e.png]

RE: People online sidebar?

John
Veteran Member
Level:
0
Reputation:
25
Posts:
245
Likes:
38
Credits:
159
30-07-2016, 06:36 AM
This post was last modified: 30-07-2016, 06:37 AM by John
#17
I could be wrong, but edit "index_whosonline" and simply reverse the position of the two in the code.
NulledBB Member Since 2013 | Former Staff Member | Web Designer

Need MyBB/website help? Feel free to message me!

RE: People online sidebar?

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
OP
30-07-2016, 10:26 AM
#18
30-07-2016, 06:36 AM
John Wrote:
I could be wrong, but edit "index_whosonline" and simply reverse the position of the two in the code.

I see but i aint using {$whosonline} i am using{$onlinemembers} and index_whosonline is for {$whosonline} right?

RE: People online sidebar?

John
Veteran Member
Level:
0
Reputation:
25
Posts:
245
Likes:
38
Credits:
159
30-07-2016, 02:36 PM
This post was last modified: 30-07-2016, 03:32 PM by John
#19
I'm not exactly sure I'm following what you're saying. You can't just use a method if it doesn't have the function you need.

Taking a look at the default MyBB theme, go to index_whosonline. You should find code resembling this:
Code:
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>


</tr>

Take a further look here:
Code:
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>

{#lang->online_note}'s function is to show you this: 2 users active in the past 15 minutes (1 member, 0 of whom are invisible, and 1 guest).
{$onlinemembers}'s function is to show you which members are currently online.

Simply reverse the two functions in that line of code and it should look like this:
Code:
<td class="trow1"><span class="smalltext">{$onlinemembers}<br />{$lang->online_note}</span></td>

Save and refresh your forum, and your board stats for who's online should look like this:
[Image: KJQy0tU.png]
NulledBB Member Since 2013 | Former Staff Member | Web Designer

Need MyBB/website help? Feel free to message me!

RE: People online sidebar?

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
OP
30-07-2016, 05:27 PM
#20
30-07-2016, 02:36 PM
John Wrote:
I'm not exactly sure I'm following what you're saying. You can't just use a method if it doesn't have the function you need.

Taking a look at the default MyBB theme, go to index_whosonline. You should find code resembling this:
Code:
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>


</tr>

Take a further look here:
Code:
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>

{#lang->online_note}'s function is to show you this: 2 users active in the past 15 minutes (1 member, 0 of whom are invisible, and 1 guest).
{$onlinemembers}'s function is to show you which members are currently online.

Simply reverse the two functions in that line of code and it should look like this:
Code:
<td class="trow1"><span class="smalltext">{$onlinemembers}<br />{$lang->online_note}</span></td>

Save and refresh your forum, and your board stats for who's online should look like this:
[Image: KJQy0tU.png]

Thanks you are amazing! i wish i could give u some green apples Tongue

Users browsing this thread: 1 Guest(s)