Author |
Topic |
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 17:18:55
|
I installed active users and I am not getting any errors. I can go to the administrator home and configure active users and it tells me the configuration was posted.
The problem is that I don't see the active users panel anywhere. Also, when I go back into my active users configuration, it is always the defaults (the defaults are set not to show the active user panel or page).
I think the configuration settings just aren't changing even though it tells me they were posted successfully.
Anyone know what I might check for this?
I just went through a lot of work to get this on, but I can;t see anything.
My forum is http://www.jonnyglobal.com/atheism/
Any help is greatly appreciated.
-Jonathan |
Edited by - jonnyglobal on 02 February 2004 17:19:19 |
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 02 February 2004 : 17:23:34
|
Have you tried running Check Installation (setup.asp) since installing the AU-mod?
Also make sure that you added the AU-code to config.asp. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 17:29:45
|
Hi,
Have you tried running Check Installation (setup.asp) since installing the AU-mod?
Yes. Updated successfully.
Also make sure that you added the AU-code to config.asp.
I did. Here is a text version of the asp file if you want to look at it and make sure I did it correctly:
http://www.jonnyglobal.com/config.txt
Any other ideas?
Am I at least correct in assuming the coinfiguration shouldn't be the default every time I go into it?
|
Edited by - jonnyglobal on 02 February 2004 17:30:58 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 02 February 2004 : 17:42:55
|
Your config.asp does contain all the necessary code, so you can remove that text-file from your server.
You are correct in that changes made shouldn't revert to default when you go to the admin-page anew.
If you go to Admin Section -> Forum Variables Information, what does it say for strAUAllow?
Im suspecting that you might have duplicate entries of the AU-variables in your config_new table in the database. Check that out, and if so, remove the duplicates. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
Edited by - masterao on 02 February 2004 17:43:29 |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 17:49:00
|
If you go to Admin Section -> Forum Variables Information, what does it say for strAUAllow?
STRAUANON 0 STRAUANONOVERRIDE 0 STRAUPALLOW 4 STRAUPCOLLAPSE 1 STRAUALLOW 4 STRAUREFRESH 1 STRAUIP 1 STRAUUA 0 STRAULOCAL 4 STRAUTIMEOUT 10 STRAUADMINCOLOR STRAUMODCOLOR STRAUPISLAND 1
Im suspecting that you might have duplicate entries of the AU-variables in your config_new table in the database. Check that out, and if so, remove the duplicates.
This may be ... seems there was an error about duplicates when I updated the db, but I thought it would be harmless. I am downloading my db to check it out. I really appreciate the help.
-Jonathan |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 17:52:19
|
No ... I checked out the table and there are only single entries for all the AU stuff. Hmmmmm ...
Anything else? I could probably just manually change the settings in the db for now ... but that's sort of dirty.
Actually ... looking at the variable info, it does appear to have the correct timeout. Can you translate the other settings for me? ... if they are as I set them, then I don't know what to think about the panel not showing up. |
Edited by - jonnyglobal on 02 February 2004 17:54:50 |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 18:00:10
|
OK .. revelation. It must be taking the settings after all. I just changed them and now the variable info is:
STRAUANON 0 STRAUANONOVERRIDE 0 STRAUPALLOW 1 STRAUPCOLLAPSE 1 STRAUALLOW 1 STRAUREFRESH 1 STRAUIP 1 STRAUUA 0 STRAULOCAL 1 STRAUTIMEOUT 20 STRAUADMINCOLOR STRAUMODCOLOR STRAUPISLAND 1
But when I open up the configuration (after changing the settings back obviously), it always has the default values in the fields.
And still ... I cannot see the panel anywhere. |
Edited by - jonnyglobal on 02 February 2004 18:16:14 |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 18:46:42
|
Does anyone know which file would be responsible for the actual display? I checked out my tables and it seems the user data is getting written to the foum_active_users table. Also, it appear the configuration settings are being written as well. I am getting no errors ... the only thing really missing is the display itself. I know it has to be something small at this point.
Regards, Jonathan
|
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 19:01:28
|
OK ... I figured out what was wrong and I know how to fudge it, but I don't know how to fix it.
In INC_ACTIVEUSERS.ASP, there is a check for some boolean variables.
bolOverride = chkAUPermissions(strAUAnonOverride) bolPanel = chkAUPermissions(strAUPAllow) bolAUPage = chkAUPermissions(strAUAllow)
I noticed that if these are not true, you will not see anything. So, I manually set them to true:
bolOverride = chkAUPermissions(strAUAnonOverride) bolPanel = chkAUPermissions(strAUPAllow) bolAUPage = chkAUPermissions(strAUAllow)
bolPanel = True bolAUPage = True
Now I can see the panel just fine.
My big question now is how come these aren't coming back as true from the function when I have verified in the variable info and in the table itself that the panel view is allowed?
I want to be able to turn this on and off in the config obviously. That function chkAUPermissions just doesn't appear to be working. Where does that function reside and what might break it?
Anyone?
|
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 02 February 2004 : 19:05:45
|
The only page which displays active users are default.asp, and according to the variables you posted they will only be seen by adminstrators. If you want others to see that, you must change Allow Active Users Panel to Members or Everyone.
I assume that the member-account that you use are an administrator, so you should see the AU panel on default.asp. Can you view http://www.jonnyglobal.com/atheism/active_users.asp?
Update: I noticed that I can see the AU-panel on default.asp now, so I guess that it works as it should now . |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
Edited by - masterao on 02 February 2004 19:06:44 |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 02 February 2004 : 19:13:25
|
Hey masterao ... well .. it sort of works. See the post above that last one. I had to fudge the boolean for bolPanel in the code. And even though I have also set the bolAUPage to true, I don't get the page. Does the little people-head icon turn into a link for the page?
You asked if I could view: http://www.jonnyglobal.com/atheism/active_users.asp - The answer is no ... it immediately switches back to the default.asp no matter what user I am in.
I am so close .. I know it ... I am just still a step or two away from this working the way it is supposed to.
If you need to, you can log in as test/test .
_________
UPDATE:
OK ... I went into active_users.asp and I hard coded the boolean's there and now I can see the page if I go directly to it.
That permissions function is just not working at all. I will have to go through it line by line later on.
However, if you have any more suggestions I'll take them. I need to be going now, but I'll check back.
-Jonathan |
Edited by - jonnyglobal on 02 February 2004 19:21:19 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
jonnyglobal
Starting Member
20 Posts |
Posted - 03 February 2004 : 16:35:49
|
quote: Originally posted by masterao
Ok, that is strange. Could you post a link to a text-version of your inc_func_common.asp?
Hi Jan,
Here you go:
http://www.jonnyglobal.com/inc_func_common.txt
Thanks. |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 03 February 2004 : 16:50:29
|
I have found the reason why it isn't working correctly. I missed it the first time I looked, but I re-checked config.asp now and I noticed that you haven't added all AU-code into that file. Most specifically, you are missing the following marked red:
intAURecord = cint(Application(strCookieURL & "INTAURECORD")) strAURecordDate = Application(strCookieURL & "STRAURECORDDATE") strAUAnon = Application(strCookieURL & "STRAUANON") strAUAnonOverride = Application(strCookieURL & "STRAUANONOVERRIDE") strAUPAllow = Application(strCookieURL & "STRAUPALLOW") strAUPCollapse = Application(strCookieURL & "STRAUPCOLLAPSE") strAUAllow = Application(strCookieURL & "STRAUALLOW") strAURefresh = Application(strCookieURL & "STRAUREFRESH") strAUIP = Application(strCookieURL & "STRAUIP") strAUUA = Application(strCookieURL & "STRAUUA") strAULocal = Application(strCookieURL & "STRAULOCAL") strAUTimeout = Application(strCookieURL & "STRAUTIMEOUT") strAUPIsland = Application(strCookieURL & "STRAUPISLAND") strAUAdminColor = Application(strCookieURL & "STRAUADMINCOLOR") strAUModColor = Application(strCookieURL & "STRAUMODCOLOR")
Add those line, and you can remove the hard-coded variables you have added. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
jonnyglobal
Starting Member
20 Posts |
Posted - 04 February 2004 : 11:06:31
|
Jan,
I made that change and I can see the panel without hard-coding the values. Thanks a ton!!! I saw the AU entries when I was scanning through it and I guess I figured I had gotten them ... I think when I copied, I just must not have gotten the whole string. There is a lot of room for error, I am glad you were able to figure it out based on my clues.
I do have one more quick question. How does a user get to see the active users page? I have the permissions on for registered users to have access to the page and I just don't see a link for the page with 'location' and such (the active_users.asp) anywhere.
Regards and thanks again, Jonathan |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 04 February 2004 : 11:45:41
|
Active Users Configuration -> Allow Active Users Panel determines who will be able to go to active_users.asp. That option will also determine if the text Active Users on default.asp will be a link or not (see screenshot below).
|
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
Topic |
|