Author |
Topic |
|
Working
Junior Member
219 Posts |
Posted - 04 June 2003 : 01:01:27
|
Can someone tell me what link they are talking about and what the "will only display text for all the private message-pages." is. Also what is "Remove Private Messages from Active Users". I was thinking that active users just showed who was on.
Code to Remove Private Messages from Active Users: By masterao If you are using Active Users this code is very important!
You can also customize active users to not display a link when a member uses the Private Messages pages. By using this example, active_users.asp will only display text for all the private message-pages.
|
Edited by - Working on 04 June 2003 01:46:25 |
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 04 June 2003 : 04:30:08
|
If you just add the PM mod to your forum, and you have Active Users installed, the following situation can occur.
Member A goes to his PM Inbox page, and then to a specific PM. Another visitor goes to the Active Users page, where he will see that Member A is on privateread which is a link to privateread.asp?id=8. If the visitor clicks on the link, he will be redirected to default.asp if he is a guest, or to his own PM Inbox if he is a member. This redirection will be done without explanation, and it does seem strange to provide a link to a page which you cannot access.
If you add the code detailed in the PM readme-file, that visitor will instead see that Member A is reading a PM (and there will be no links to the privateread.asp page). In short, by adding that code, you will ensure that the PM pages will not show up as links on activeusers.asp. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
Working
Junior Member
219 Posts |
Posted - 04 June 2003 : 09:11:01
|
Thank you! |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 04 June 2003 : 12:45:24
|
I've noticed a couple of times - whilst hovering around Active Users - that there is a moment, when a member has just sent a PM, that Active Users displays 'privatesent.asp' instead of the 'Reading a Private Message' text. It's not hyperlinked but it is a slight imperfection. |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 04 June 2003 : 14:59:13
|
Nice catch, MarkJH. That can easily be avoided by adding the following to the function WhatPage(fScript, fQuery), after the other PM additions:
case "privatesend.asp"
strOnlineLocation = fLang(strLangMOD_Ls3kAU_01532)
|
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 04 June 2003 : 16:40:44
|
The case "privatesend.asp" was already there. It looks like the strOnlineLocation = fLang(strLangMOD_Ls3kAU_01532) was just accidentally left out of the code.
Thanks for the fix, Jan. One of them little niggles i've been meaning to look at for a while! |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
hayleypink
Junior Member
Haiti
145 Posts |
Posted - 05 June 2003 : 06:10:56
|
i have pm mod and avatar mod and they work fine together |
|
|
Working
Junior Member
219 Posts |
Posted - 05 June 2003 : 09:04:51
|
What is a WhatPage?
function WhatPage(fScript, fQuery), after the other PM additions:
|
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 05 June 2003 : 09:36:49
|
function WhatPage(fScript, fQuery) is a function used by the Active Users mod to determine which page a visitor last visited. The function is used in active_users.asp. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
|
|
Working
Junior Member
219 Posts |
Posted - 05 June 2003 : 10:34:16
|
Thx! |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 07 June 2003 : 08:20:08
|
quote: Originally posted by masterao
Im glad to be of assistance .
Still does it. Page that shows up (with hyperlink, my mistake) is called "privatesend_info". |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
|
|
|
Topic |
|