SimplePortal

Development => Feature Requests => Applied Requests => Topic started by: Aw06 on September 11, 2008, 12:10:29 AM

Title: Whos Online
Post by: Aw06 on September 11, 2008, 12:10:29 AM
In the whos online Block .. could you make it that 'Total Users' is clickable and will point to the whos online list action=who
Title: Re: Whos Online
Post by: [SiNaN] on September 17, 2008, 09:24:02 AM
We applied the change here on this site and looks pretty good. Could be implemented I think.
Title: Re: Whos Online
Post by: Aw06 on September 18, 2008, 12:07:01 AM
We applied the change here on this site and looks pretty good. Could be implemented I think.

agreed  >:-D
Title: Re: Whos Online
Post by: ???1031 on September 18, 2008, 01:31:09 AM
We applied the change here on this site and looks pretty good. Could be implemented I think.
Agree, but i hope you check if the user is allowed to see it ;).

Bye
DIN1031
Title: Re: Whos Online
Post by: Nathaniel on September 18, 2008, 01:54:35 AM
Well, whoever put it there didn't think of that. ;)

I have now added checking for the 'who_view' permission, we can add this to the block if we need to. ;)
Title: Re: Whos Online
Post by: Aw06 on September 18, 2008, 08:24:11 AM
We applied the change here on this site and looks pretty good. Could be implemented I think.
Agree, but i hope you check if the user is allowed to see it ;).

Bye
DIN1031

Only guest arnt allowd to see users online on my site..

Well, whoever put it there didn't think of that. ;)

I have now added checking for the 'who_view' permission, we can add this to the block if we need to. ;)

Kool, thanks for the addition ... can i get this in 2.0.4 ? or ill have to wait for 2.1 ?
Title: Re: Whos Online
Post by: Nathaniel on September 18, 2008, 05:31:46 PM
Replace this code ('SPorta.php'):
Code: [Select]
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';

With this code:
Code: [Select]
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', (allowedTo('who_view') ? '<a href="' . $scripturl . '?action=who">' : ''), $txt['sp-onlinetuser'], ':', (allowedTo('who_view') ? '</a>' : ''), '</td>
<td>', $online['total_users'],'</td>
</tr>';
Title: Re: Whos Online
Post by: Cyst on September 18, 2008, 06:02:59 PM
Thanks, LHVWB. It works and looks good :)
Title: Re: Whos Online
Post by: Aw06 on September 18, 2008, 08:16:02 PM
Replace this code ('SPorta.php'):
Code: [Select]
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';

With this code:
Code: [Select]
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', (allowedTo('who_view') ? '<a href="' . $scripturl . '?action=who">' : ''), $txt['sp-onlinetuser'], ':', (allowedTo('who_view') ? '</a>' : ''), '</td>
<td>', $online['total_users'],'</td>
</tr>';

thanks,,, but its slighty diffrent, on my site now, 'Online users' points to action=who .. on this site 'Total Users' points to action=who

and is it possible to not show hidden users to guest/regular members ? i think only admins show see that
Title: Re: Whos Online
Post by: Nathaniel on September 19, 2008, 03:54:56 AM
Odd, I swear that I posted the correct edit. Can you post your 'SPortal.php' file as an attachment? I can fix it for you. ;)
Title: Re: Whos Online
Post by: Cyst on September 19, 2008, 04:11:36 AM
Hmm, I copied your code and it showed up on Total users fine for me.
Title: Re: Whos Online
Post by: Aw06 on September 19, 2008, 10:08:51 AM
Odd, I swear that I posted the correct edit. Can you post your 'SPortal.php' file as an attachment? I can fix it for you. ;)

this is the file before the edits ... can you make it so that i only have
    
Online Guests:     
Online Users:    
Total Users:action=who
   

On my site now .. its like this

Online Guests:
Online Users:
Hidden Users:
Total Users:Action=Who
Online Users:
   

As you can see, online users is displaying twice, and i dont need Hidden users
Title: Re: Whos Online
Post by: Aw06 on September 20, 2008, 11:19:01 PM
 ;D remember me please  :angel:
Title: Re: Whos Online
Post by: Nathaniel on September 20, 2008, 11:32:46 PM
Sorry, we are very busy at the moment with the new versions of SP. The attached file should work.
Title: Re: Whos Online
Post by: Aw06 on September 20, 2008, 11:45:47 PM
Sorry, we are very busy at the moment with the new versions of SP. The attached file should work.

magic  :wave: :wave: :wave:
Title: Re: Whos Online
Post by: Aw06 on January 31, 2009, 11:33:33 AM
Odd, I swear that I posted the correct edit. Can you post your 'SPortal.php' file as an attachment? I can fix it for you. ;)

this is the file before the edits ... can you make it so that i only have
    
Online Guests:     
Online Users:    
Total Users:action=who
   

On my site now .. its like this

Online Guests:
Online Users:
Hidden Users:
Total Users:Action=Who
Online Users:
   

As you can see, online users is displaying twice, and i dont need Hidden users

How can i make these same changes in SP 2.1
Title: Re: Whos Online
Post by: [SiNaN] on February 02, 2009, 04:32:46 AM
It should be the same. Hopefully you won't need for further versions.

http://simpleportal.net/index.php?issue=109.0
Title: Re: Whos Online
Post by: Aw06 on February 02, 2009, 08:53:46 AM
In SP 2.1.1 Where so i find SPortal.php ???
Title: Re: Whos Online
Post by: [SiNaN] on February 02, 2009, 09:05:04 AM
It's SPortal1-1.php or SPortal2.php depending on your SMF version, in Sources directory.
Title: Re: Whos Online
Post by: Aw06 on February 03, 2009, 07:29:40 AM
Its not working .. can you do the edits for me please...

Attached the file
Title: Re: Whos Online
Post by: [SiNaN] on February 03, 2009, 07:36:25 AM
Here you are.
Title: Re: Whos Online
Post by: Aw06 on February 06, 2009, 02:04:27 AM
ok, that didnt go well, allot of errors resulted ... forum goes blank on logout ... could not access admin panel ..

Had to restore previous SPortal1-1.php   :dead:

Title: Re: Whos Online
Post by: [SiNaN] on February 06, 2009, 02:25:40 AM
Sorry, I have no idea about the cause. Do you have any other modifications in that file, other than Linktree Bug fix?
Title: Re: Whos Online
Post by: Aw06 on February 06, 2009, 02:31:18 AM
I honestly cant remember  :'(

I added code to allow clicking of the online icon to send PM .. but that was after .. i attached my current file, you can prolly add the code and i try again...

Title: Re: Whos Online
Post by: [SiNaN] on February 06, 2009, 02:49:31 AM
Your seems to have some big problems within. I suggest using a better text editor to edit the files next time.

Attached a new file:

+ Who's Online link
+ Linktree Bug fix
+ RSS Feed block undefined fix
+ Send pm for online icons
Title: Re: Whos Online
Post by: Aw06 on February 06, 2009, 03:01:20 AM
 ;D ok this seems to work ... you left out a ? thou which was sending me to an unknown page

Your code
Code: [Select]
$scripturl,'action=who
Fixed Code
Code: [Select]
$scripturl,'?action=who
And i do all my text editing from within cute ftp
Title: Re: Whos Online
Post by: [SiNaN] on February 06, 2009, 03:03:56 AM
Okay, I mistyped then. Better use Notepad or a text editor like that.
Title: Re: Whos Online
Post by: Aw06 on February 06, 2009, 03:07:38 AM
ok kool ... and i really appriciate the one on one support  :D ;D 8)
Title: Re: Whos Online
Post by: [SiNaN] on April 03, 2009, 02:53:38 AM
Included in 2.2.
SimplePortal 2.3.8 © 2008-2024, SimplePortal