SimplePortal
Development => Feature Requests => Applied Requests => Topic started 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
-
We applied the change here on this site and looks pretty good. Could be implemented I think.
-
We applied the change here on this site and looks pretty good. Could be implemented I think.
agreed >:-D
-
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
-
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. ;)
-
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 ?
-
Replace this code ('SPorta.php'):
<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:
<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, LHVWB. It works and looks good :)
-
Replace this code ('SPorta.php'):
<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:
<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
-
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. ;)
-
Hmm, I copied your code and it showed up on Total users fine for me.
-
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
-
;D remember me please :angel:
-
Sorry, we are very busy at the moment with the new versions of SP. The attached file should work.
-
Sorry, we are very busy at the moment with the new versions of SP. The attached file should work.
magic :wave: :wave: :wave:
-
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
-
It should be the same. Hopefully you won't need for further versions.
http://simpleportal.net/index.php?issue=109.0
-
In SP 2.1.1 Where so i find SPortal.php ???
-
It's SPortal1-1.php or SPortal2.php depending on your SMF version, in Sources directory.
-
Its not working .. can you do the edits for me please...
Attached the file
-
Here you are.
-
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:
-
Sorry, I have no idea about the cause. Do you have any other modifications in that file, other than Linktree Bug fix?
-
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...
-
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
-
;D ok this seems to work ... you left out a ? thou which was sending me to an unknown page
Your code
$scripturl,'action=who
Fixed Code
$scripturl,'?action=who
And i do all my text editing from within cute ftp
-
Okay, I mistyped then. Better use Notepad or a text editor like that.
-
ok kool ... and i really appriciate the one on one support :D ;D 8)
-
Included in 2.2.