Page 1 of 1

Show IP-Addresses in the "Status" Window?

PostPosted: Thu Jan 19, 2012 1:39 pm
by kleiner_philip
Hi,

how can I get Subsonic to show me the IP-addresses of anyone streaming/uploading to my server? Also, is there any way people can "register" an account without me setting it up manually? Like when signing up to this forum with a username/password and email.

thanks
kleiner_philip

Re: Show IP-Addresses in the "Status" Window?

PostPosted: Thu Jan 19, 2012 3:07 pm
by BKKKPewsey
Showing IP addresses of users logged in has been requested before but alas has not been forthcoming :(
With regard to the account registration - have a look on the mods page as I believe there is a mod there that may help.

I am moving this thread to feature requests where it may be noticed by Sindre :wink:
:mrgreen:

Re: Show IP-Addresses in the "Status" Window?

PostPosted: Thu Jan 19, 2012 6:26 pm
by ytechie
I added the IP address of each player to the status window. But because of the way subsonic works, it is the first IP address used by the player since the last restart. Here is how to do it:

We are going to edit status.jsp. Here is the part of the file we are going to edit:

Code: Select all
<tr>
   <td class="ruleTableCell">${transferType}</td>
   <td class="ruleTableCell">${status.player}<br>${type}</td>
   <td class="ruleTableCell">${user}</td>
   <td class="ruleTableCell">${current}</td>
   <td class="ruleTableCell">${status.bytes}</td>
   <td class="ruleTableCell" width="${model.chartWidth}"><img width="${model.chartWidth}" height="${model.chartHeight}" src="${chartUrl}" alt=""></td>
</tr>


Add "${status.player.ipAddress}<br>" to the second row so it looks like this:

Code: Select all
<tr>
   <td class="ruleTableCell">${transferType}</td>
   <td class="ruleTableCell">${status.player}<br>${status.player.ipAddress}<br>${type}</td>
   <td class="ruleTableCell">${user}</td>
   <td class="ruleTableCell">${current}</td>
   <td class="ruleTableCell">${status.bytes}</td>
   <td class="ruleTableCell" width="${model.chartWidth}"><img width="${model.chartWidth}" height="${model.chartHeight}" src="${chartUrl}" alt=""></td>
</tr>


Hope this helps! :D

Re: Show IP-Addresses in the "Status" Window?

PostPosted: Thu Jan 19, 2012 6:36 pm
by ytechie
In regards to the registration engine, I think this might be what you're looking for:

viewtopic.php?f=8&t=6749