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: MOD Implementation
 Help for ASP newbie please
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Oap Murf
Starting Member

36 Posts

Posted - 16 July 2002 :  19:55:37  Show Profile  Visit Oap Murf's Homepage  Send Oap Murf an ICQ Message
I am trying to do something that probably seems ridiculously simple to a lot of people but here goes.

I have quite a few mods on our forum and have just added a stand alone chat room. What I want to know is how can I use the variable from peolist.asp called 'totalusers' in the page inc_active_users.asp so that it shows the correct number of users in chat room on the front page?

Do I need to include the file somehow before the variable will work in a different page?

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 July 2002 :  19:59:10  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
It depends on how the variable. Do you know if the variable is stored in a session? If its not, then you would need to include the file to use the variable, otherwise you could just write out the session contents on any page.

Brad
Web Hosting with SQL Server @ $24.95 per month
Go to Top of Page

Oap Murf
Starting Member

36 Posts

Posted - 16 July 2002 :  20:19:19  Show Profile  Visit Oap Murf's Homepage  Send Oap Murf an ICQ Message
lol, that means very little to me I'm afraid. Here are links to .txt versions of the files in question. I have commented where I think the changes need to be done.

http://www.stevemurfin.com/stuff/peolist.txt
http://www.stevemurfin.com/stuff/inc_activeusers2.txt

Both the variables are towards the bottom of the files.

Hope this helps someone to help me.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 July 2002 :  20:26:43  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Try this on the page you want it displayed in..


Online Users <%=Application("OnLineUser")%>
Total Users <%=Application("TotalUsers")%>


Brad
Web Hosting with SQL Server @ $24.95 per month
Go to Top of Page

Oap Murf
Starting Member

36 Posts

Posted - 16 July 2002 :  21:24:39  Show Profile  Visit Oap Murf's Homepage  Send Oap Murf an ICQ Message
That gives the following error.

Currently Browsing the Boards (1)
Online Users
Response object error 'ASP 0106 : 80020005'

Type Mismatch

/forums/default.asp, line 0

An unhandled data type was encountered.


Any other ideas? I thought this would just be a case of making one page read a variable from another? Only problem is, I don't know how to do it. lol

I think you misunderstood what I meant, have a quick look at the forum if you don't mind.

http://www.oapsquad.com/forums

All I want to do, is make the 'In the Chat Room: 0' part of the Online Users section display the number of users in the chatroom.

This number is also displayed on the chatroom as a part of peolist.asp



Edited by - Oap Murf on 16 July 2002 21:28:15
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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07