something blah blah context
I don't ******* get the point of this ******* room.
********* ************ ***************** ************** !
Sun Jul 14 2024 11:37:33 EDT from Biden's last brain cellI don't ******* get the point of this ******* room.
I didn't like that general users can see the host location of other visitors. So I made a change (TestUser001 is a non-admin testing account... NOtice that the host column is blank, but on for KC, who's an Admin, it shows).
Here's the file and location of what you need to edit
- /usr/local/webcit/static/t/who/section.html
Here's the contents of the file that rendered the above screenshot.
<tr class="<?ITERATE:ODDEVEN>">
<td class="edit_col">
<??("COND:AIDE", 1)><??("WHO:ISME", 2)>
<a href="terminate_session?which_session=<?WHO:SESSION>?template=who" onClick="return ConfirmKill();"><?_("(kill)")></a>
(<a href="display_edituser?username=<?WHO:NAME("U")>&edit_config_button=Edit+configuration&nonce=<?NONCE>"><?_("Edit configuration")></a>)
(<a href="display_edituser?username=<?WHO:NAME("U")>&edit_abe_button=Edit+address+book+entry"><?_("Edit address book entry")></a>)
<??("X", 2)><??("X", 1)>
</td>
<!-- link to page this user -->
<td><a href="display_page?recp=<?WHO:NAME("X")>">
<img src="static/webcit_icons/essen/16x16/chat.png" alt="(p)" title="chat"></a>
</td>
<!-- idle flag -->
<td>
<?!("WHO:IDLE", 4)>
<img align="middle" src="static/webcit_icons/essen/16x16/user.png" alt="(<?_("idle since")>s <?WHO:IDLESINCE> <?_("Minutes")>)" title="(<?_("idle since")>s <?WHO:IDLESINCE> <?_("Minutes")>)">
<?!("X", 4)>
<??("WHO:IDLE", 5)>
<img align="middle" src="static/webcit_icons/essen/16x16/activeuser.png" alt="(<?_("active")>)">
<?!("X", 5)>
</td>
<!-- username (link to user bio/photo page) -->
<td>
<a href="do_template?template=user_show?who=<?WHO:NAME("U")>"><?WHO:NAME("X")></a>
<??("WHO:NSESSIONS", 6, 1)>[<?WHO:NSESSIONS>]<?!("X", 6)>
</td>
<!-- room -->
<td>
<?WHO:ROOM>
<?!("WHO:REALROOM", 7)>
<br><i> <?WHO:REALROOM("X")> </i>
<?!("X", 7)>
</td>
<!-- hostname -->
<td class="host_col">
<??("COND:AIDE", 1)><??("WHO:ISME", 2)>
<?WHO:HOST("X")>
<?!("WHO:REALHOST", 8)><br><i> <?WHO:REALHOST("X")></i>
<?!("X", 8)>
<??("X", 2)><??("X", 1)>
</td>
</tr>
The red lines of code are the lines that were added.
Redacting information for the safety of my visitors. 👍
--
- Tumblefluff the Squirrel
Here's the Admin's View
--
- Tumblefluff the Squirrel
I didn't like that general users can see the host location of other visitors. So I made a change (TestUser001 is a non-admin testing account).
Here's the file and location of what you need to edit
- /usr/local/webcit/static/t/who/section.html
- or - /usr/local/webcit/local.static/t/who/section.html
Here's the contents of the file that rendered the above screenshot.
<tr class="<?ITERATE:ODDEVEN>">
<td class="edit_col">
<??("COND:AIDE", 1)><??("WHO:ISME", 2)>
<a href="terminate_session?which_session=<?WHO:SESSION>?template=who" onClick="return ConfirmKill();"><?_("(kill)")></a>
(<a href="display_edituser?username=<?WHO:NAME("U")>&edit_config_button=Edit+configuration&nonce=<?NONCE>"><?_("Edit configuration")></a>)
(<a href="display_edituser?username=<?WHO:NAME("U")>&edit_abe_button=Edit+address+book+entry"><?_("Edit address book entry")></a>)
<??("X", 2)><??("X", 1)>
</td>
<!-- link to page this user -->
<td><a href="display_page?recp=<?WHO:NAME("X")>">
<img src="static/webcit_icons/essen/16x16/chat.png" alt="(p)" title="chat"></a>
|</td>
<!-- idle flag -->
<td>
<?!("WHO:IDLE", 4)>
<img align="middle" src="static/webcit_icons/essen/16x16/user.png" alt="(<?_("idle since")>s <?WHO:IDLESINCE> <?_("Minutes")>)" title="(<?_("idle since")>s <?WHO:IDLESINCE> <?_("Minutes")>)">
<?!("X", 4)>
<??("WHO:IDLE", 5)>
<img align="middle" src="static/webcit_icons/essen/16x16/activeuser.png" alt="(<?_("active")>)">
<?!("X", 5)>
</td>
<!-- username (link to user bio/photo page) -->
<td>
<a href="do_template?template=user_show?who=<?WHO:NAME("U")>"><?WHO:NAME("X")></a>
<??("WHO:NSESSIONS", 6, 1)>[<?WHO:NSESSIONS>]<?!("X", 6)>\
</td>
<!-- room -->
<td>
<?WHO:ROOM>
<?!("WHO:REALROOM", 7)>
<br><i> <?WHO:REALROOM("X")> </i>
<?!("X", 7)>
</td>
<!-- hostname -->
<td class="host_col">
<??("COND:AIDE", 1)><??("WHO:ISME", 2)>
<?WHO:HOST("X")>
<?!("WHO:REALHOST", 8)><br><i> <?WHO:REALHOST("X")></i>
<?!("X", 8)>
<??("X", 2)><??("X", 1)>
</td>
</tr>
Redacting information for the safety of my visitors. 👍
--
- Tumblefluff the Squirrel