Custom Pages in Active Users |
Post Reply |
Author | |
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options
Quote Reply
Topic: Custom Pages in Active Users Posted: 25 Jun 2010 at 1:37pm |
Can't seem to get this working in WWF 9.68
Trying to pull pages from other folders and nothing shws in Active Users.
No errors either.
This is what I used...
<!-- #include virtual="/mb/common.asp" -->
<%
'If active users is enabled update the active users application array
If blnActiveUsers Then 'Call active users function saryActiveUsers = activeUsers("", test, "test.asp", 0) End If %>
|
|
Matt
Admin Group Joined: 07 Feb 2003 Location: Manchester, UK Status: Offline Points: 195 |
Post Options Quote Reply Posted: 26 Jun 2010 at 10:44am |
Is that the exact code that you have in your page? If so, you will need quote tags around the second parameter, as you can see in the Custom Pages in Active Users tutorial. Like so:
Also, you will not be able to see this working if you are looking at the custom page and Active Users page on the same computer, or the same internal network. Even with different browsers. As the Active Users function will overwrite the custom page entry with the Active Users page entry. |
|
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options Quote Reply Posted: 26 Jun 2010 at 1:22pm |
I have two computers on two different IP addresses. :)
Weird, the script works if it's in the same folder.
But if I move it to a dfferent folder, it doesn't.
Example..
folder/sub/test.asp - shows in Active Users
folder2/sub/test.asp - does not show in Active Users |
|
Matt
Admin Group Joined: 07 Feb 2003 Location: Manchester, UK Status: Offline Points: 195 |
Post Options Quote Reply Posted: 27 Jun 2010 at 1:09pm |
Im not sure about that.
What are your cookie settings in the "includes/setup_options_inc.asp" file? |
|
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options Quote Reply Posted: 27 Jun 2010 at 1:35pm |
I've tried it both of these ways now...
strCookiePath = "/mb/"
and
strCookiePath = Left(Request.ServerVariables("HTTP_URL"), InstrRev(Request.ServerVariables("HTTP_URL"), "/"))
|
|
Matt
Admin Group Joined: 07 Feb 2003 Location: Manchester, UK Status: Offline Points: 195 |
Post Options Quote Reply Posted: 27 Jun 2010 at 3:48pm |
try simply:
|
|
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options Quote Reply Posted: 27 Jun 2010 at 3:58pm |
But my Forum is in a sub folder, not the root.
|
|
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options Quote Reply Posted: 27 Jun 2010 at 4:27pm |
BTW, also tried your suggestion, same thing
|
|
JohnLug
Newbie Joined: 27 Apr 2010 Status: Offline Points: 8 |
Post Options Quote Reply Posted: 28 Jun 2010 at 3:47am |
Actually tired your suggestion and had to leave for a couple hours and buy did I catch heat!!
Using " / " messed everything up
People couldn't post or anything.
Not your fault, I should have changed it back.
Still would like to get this to work
|
|
Matt
Admin Group Joined: 07 Feb 2003 Location: Manchester, UK Status: Offline Points: 195 |
Post Options Quote Reply Posted: 02 Jul 2010 at 2:01pm |
Im not sure if the Active Users function works off the cookies or not, but i know that if you try to use, say the login function in an area outside of your forums folder, it will fail as by default the cookie is set for the forum folder. I generally set the cookie to be "/" so that it will work anywhere on my site, for example on this site there are sections which require a user to be logged in. The reason your users are unable to post maybe due to the conflict in cookies, as they will have on for the forum location ("/mb/"?) and for the root folder ("/"). To fix this, users will either have to remove all their cookies (for your site at the very least) or log out and then back in again - though I dont know if that option would correct it. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.063 seconds.