Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Need Help adding something to Inc_top.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rick7165
Senior Member

USA
1094 Posts

Posted - 25 March 2001 :  13:44:14  Show Profile  Visit rick7165's Homepage
I need to add this code under the "Admin Options" but need everyone including Guest to see it.

<B><font color="yellow"><%= Application("ActiveUsers") %></font> <font color="white">Active Users</font> <br>
<B><font color="yellow"><%= Application("VisitorsToday") %></font></B> <font color="white">Visitors for </font><B><font color="red"><%= Application("TodaysDate") %></font></B><br>
<%
set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString

strSql ="SELECT " & strTablePrefix & "TOTALS.U_COUNT "
strSql = strSql & " FROM " & strTablePrefix & "TOTALS "

set rs = my_Conn.execute(strSql)

TotalUsers = rs("U_COUNT")



Response.write("Join Our Club!, Which Has Currently " & "<font color='#FFFF00'>" & TotalUsers & "</Font>" & " members.")
%>


This is the area I want it in:

<%
if (mlev = 4) or (lcase(strNoCookies) = "1") then %>
<tr>
<td align="center">
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<a href="admin_home.asp">Admin Options</a><br>
</font>
Right here is where I had it but only Admins can see it I need everyone to see it
</td>
</tr>
<% end if %>

Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.

festerhead
Starting Member

USA
30 Posts

Posted - 25 March 2001 :  16:31:50  Show Profile  Visit festerhead's Homepage
Seems that the block you want to add it in as a level restriction of
if (mlev = 4) or (lcase(strNoCookies) = "1") then %>

Here is something that you can try


<tr>
<td align="center">
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">

<%
if (mlev = 4) or (lcase(strNoCookies) = "1") then %>

<a href="admin_home.asp">Admin Options</a><br>

<% end if %>

Right here is where I had it but only Admins can see it I need everyone to see it

</font>
</td>
</tr>


I'd like to personally thank you for making the codebase available on your site. I'm using it for my forum.

"Our great computers fill the Hallowed Halls."
- RUSH 2112
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07