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
 Active Users - Adding New Pages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

blachapelle
Starting Member

23 Posts

Posted - 09 April 2001 :  17:30:40  Show Profile
What code would I need to add to an asp page if I wanted to add new pages. I currently have made my own guestbook,and if a user is viewing the guestbook, I would like it to show in the Active Users page. Any help would be great.

Thanks

Moved by Richard from MOD Add-On Forum (W/Code)

MisterVB
Junior Member

274 Posts

Posted - 09 April 2001 :  17:49:40  Show Profile  Visit MisterVB's Homepage
<!--#include file="../active_users.asp"-->

Go to Top of Page

blachapelle
Starting Member

23 Posts

Posted - 09 April 2001 :  18:06:49  Show Profile
?? This does not work. This simply adds the Active Users page to my guestbook page. ??
Anyone else know?

Go to Top of Page

Martha2Mary
Junior Member

New Zealand
250 Posts

Posted - 09 April 2001 :  18:25:35  Show Profile  Visit Martha2Mary's Homepage  Send Martha2Mary an AOL message  Send Martha2Mary an ICQ Message  Send Martha2Mary a Yahoo! Message
Hi,

If what you are wanting to achieve is for active_users.asp to display that a Visitor/Member is currently at your Guestbook page, then you need to edit your inc_top.asp.

You will need to find the section of code that should begin with this line:

' TRY AND FIND OUT WHAT PAGE THEY ARE ON

Under this line, there will be a number of lines that look similar to this:

ElseIf lcase(Right(strOnlinePathInfo, 11)) = "pm_view.asp" Then
strOnlineLocation = "<a href=""pm_view.asp"">Private Message Inbox</a>"
ElseIf lcase(Right(strOnlinePathInfo, 14)) = "pm_options.asp" Then
strOnlineLocation = "<a href=""pm_view.asp"">Private Messages Options</a>"
ElseIf lcase(Right(strOnlinePathInfo, 15)) = "privatesend.asp" Then
strOnlineLocation = "<a href=""privatesend.asp"">Sending Private Message</a>"
ElseIf lcase(Right(strOnlinePathInfo, 16)) = "active_users.asp" Then
strOnlineLocation = "<a href=""active_users.asp"">Active Users</a>"
ElseIf lcase(Right(strOnlinePathInfo, 10)) = "events.asp" Then
strOnlineLocation = "<a href=""events.asp"">Events Calendar</a>"
ElseIf lcase(Right(strOnlinePathInfo, 8)) = "chat.asp" Then
strOnlineLocation = "<a href=""chat.asp"">Chat Entry</a>"
ElseIf lcase(Right(strOnlinePathInfo, 12)) = "bookmark.asp" Then
strOnlineLocation = "<a href=""bookmark.asp"">Personal Bookmarks</a>"
ElseIf lcase(Right(strOnlinePathInfo, 9)) = "links.asp" Then
strOnlineLocation = "<a href=""links.asp"">Members Links</a>"
ElseIf lcase(Right(strOnlinePathInfo, 13)) = "guestbook.asp" Then
strOnlineLocation = "<a href=""guestbook.asp"">Guestbook</a>"

You will see by the above that I have already added my Guestbook to be included in the Active Users page, so you could just copy that line and add it if you like, but the following may be helpful if you want to add more pages in the future.

For each simple asp page, you would just add this line:

ElseIf lcase(Right(strOnlinePathInfo, 12)) = "pagename.asp" Then
strOnlineLocation = "<a href=""pagename.asp"">Page Name</a>"

Of course, you replace the 'pagename.asp' with the correct name of the page you want to add, and the number in red above needs to be changed to reflect the number of characters in your page name, which in the case of pagename.asp is 12, in the case of guestbook.asp it is 13, etc.

I'm sorry that I am unable to explain it in better terminology - I'm sure someone else will do so if needed

Hope this helps!

*If Knowledge is Power, and Power Corrupts, what hope is there for Mankind *
Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 09 April 2001 :  19:18:09  Show Profile  Visit MisterVB's Homepage
ahh i misunderstood i thought he wanted to see active users from the guestbook. lmao Wow my brain is going backwards

Go to Top of Page

blachapelle
Starting Member

23 Posts

Posted - 09 April 2001 :  22:09:04  Show Profile
Anyway to do this without the inc_top.asp I would like to set up the guestbook without top area. Any ideas?


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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07