Print Page | Close Window

active users, viewing

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=23654
Printed Date: 07 April 2026 at 5:47am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: active users, viewing
Posted By: billd3
Subject: active users, viewing
Date Posted: 02 July 2007 at 8:42pm
We'd like to set things so that only moderators can see the "active users".
By default any member can see what any other member is looking at, etc. and we'd just as soon restrict that, but all I can see is an OFF or an ON, which means EVERYONE.
Can we allow mods or certain groups, but not the general population of members access to "Active users"?


-------------
BillD
http://theamcpages.com
http://theamcforum.com



Replies:
Posted By: scubatoys
Date Posted: 19 July 2007 at 4:48pm
Same thing bothered me... I'm not a fancy programmer - but I know enough HTML that I simply went into the default.asp and commented out the <A href> tags.  Then you can simply bookmark that page and go to it if you want, but no one else will have a direct link to it.

Here are the line numbers and what I did... I think they are stock numbers - but you may be a bit off depending on mods:

Line 771    <td colspan="2"><!--  a href="active_users.asp --><% = strQsSID1 %><% = strTxtActiveUsers %><!-- /a --></td>

line 774  <td width="4%" align="center"><!-- a href="active_users.asp--><% = strQsSID1 %><img src="<% = strImagePath %>active_users.gif" alt="<% = strTxtActiveUsers %>" border="0" /><!-- /a --></td>

line 803  Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <!-- a href=""active_users.asp" & strQsSID1 & """ -->" &


Posted By: billd3
Date Posted: 19 July 2007 at 4:58pm
I have got to give that a try!
Thanks.
Could you possibly highlight in red exactly what you added/changed?
Sorry - I get paranoid editing a page until/unless I know EXACTLY what I'm going to do.
Of course I always make a copy of the file I'm about to change, but it would be so simple if you'd be so kind as to highlight it in red or some color.


-------------
BillD
http://theamcpages.com
http://theamcforum.com


Posted By: scubatoys
Date Posted: 19 July 2007 at 5:40pm
Originally posted by scubatoys scubatoys wrote:

Same thing bothered me... I'm not a fancy programmer - but I know enough HTML that I simply went into the default.asp and commented out the <A href> tags.  Then you can simply bookmark that page and go to it if you want, but no one else will have a direct link to it.

Here are the line numbers and what I did... I think they are stock numbers - but you may be a bit off depending on mods:
original 771  <td colspan="2"><a href="active_users.asp<% = strQsSID1 %>"><% = strTxtActiveUsers %></a></td>

modified Line 771    <td colspan="2"><!--  a href="active_users.asp --><% = strQsSID1 %><% = strTxtActiveUsers %><!-- /a --></td>


original 774 <td width="4%" align="center"><a href="active_users.asp<% = strQsSID1 %>"><img src="<% = strImagePath %>active_users.gif" alt="<% = strTxtActiveUsers %>" border="0" /></a></td>

modified line 774  <td width="4%" align="center"><!-- a href="active_users.asp--><% = strQsSID1 %><img src="<% = strImagePath %>active_users.gif" alt="<% = strTxtActiveUsers %>" border="0" /><!-- /a --></td>

original 903  Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <a href=""active_users.asp" & strQsSID1 & """>" &

modified line 803  Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <!-- a href=""active_users.asp" & strQsSID1 & """ -->" &


So you can see that I didn't just add... I also subtracted a little...

So the !-- is added to comment out that line, and the --> ends the comment.  Then I also had to delete an extra "> that was in some of the lines...

So what I've done here is made red what I've added, and highlighted in blue the parts in the original line I deleted.

Hope that helps!

You can see it at my site http://www.scubatoys.com/forum  - it simply does not make those links.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net