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
 Big problem with active users and private messages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tduffy
Junior Member

146 Posts

Posted - 04 September 2002 :  17:38:17  Show Profile
Ok, I am using snitz version 3.4.02 with the latest active users and the latest private messages. Big Problem... when someone is reading their private message, in active users, if you click on where they are at, you can read their private message!!!

I need to get this fixed ASAP, anyone else notice this or know how to fix it?

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 04 September 2002 :  17:47:15  Show Profile
not sure where @tomic got the files for the Private Messages MOD before he started converting it, but the version I had for v3.3.03 for download here:

http://kinser.121hosts.net/link-it/default.asp?catid=1

had the fix for this in it.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 04 September 2002 :  17:55:03  Show Profile
basically what you need to do, is in privateread.asp on line #76 find the following line:

	strSql = strSql & " AND " & strTablePrefix & "PM.M_ID = " & cLng(Request.QueryString("id"))


INSERT the following line just above that line:

	strSql = strSql & " AND " & strTablePrefix & "PM.M_TO = " & getMemberID(chkString(strDBNTUserName,"SQLString"))


and, you also need to INSERT the following:

<!--#INCLUDE FILE="inc_func_secure.asp" -->


right above the following: (on line #44)

<!--#INCLUDE FILE="inc_func_member.asp" -->

Go to Top of Page

tduffy
Junior Member

146 Posts

Posted - 04 September 2002 :  18:24:02  Show Profile
Thanks richard, that fixed it.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 September 2002 :  18:40:53  Show Profile  Visit masterao's Homepage
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.

This requires changes in two files, active_users.asp and the lang-file that you are using.

In active_users.asp the changes are all made in the function WhatPage(fScript, fQuery).

Look for this code on approx line 529:


      end select
    case else
      strPage = strPage & Mid(fScript, 1, instr(fScript, ".")-1)
  end select


Replace that with the following:


      end select
    case "pm_view.asp"
      strOnlineLocation = fLang(strLangMOD_Ls3kAU_01530)
    case "pm_options.asp"
      strOnlineLocation = fLang(strLangMOD_Ls3kAU_01531)
    case "privatesend.asp"
      strQuery = fQuery
      fMethod = analyzeQuery(strQuery, "method")
	  if lcase(fMethod) = "topicquote" OR lcase(fMethod) = "replyquote" then
	    fMethod = "reply"
	  end if
      select case lcase(fMethod)
        case "reply"
             strOnlineLocation = fLang(strLangMOD_Ls3kAU_01533)
        case "topic"
             strOnlineLocation = fLang(strLangMOD_Ls3kAU_01532)
        case else
         strOnlineLocation = fLang(strLangMOD_Ls3kAU_01532)
      end select
    case "privateread.asp"
      strOnlineLocation = fLang(strLangMOD_Ls3kAU_01534)
    case else
      strPage = strPage & Mid(fScript, 1, instr(fScript, ".")-1)
  end select


Look for the following on approx. line 538:


  WhatPage = strPage
end function


Replace that with the following:


  if strOnlineLocation <> "" then strPage = strOnlineLocation
  WhatPage = strPage
end function


That's it for active_users.asp. Then you need to add the strings to the language file that you are using. Im using the LangMODS_Ls3kAU4_1033.asp to show where to add the code:

Look for the following on approx line 119:


strLangMOD_Ls3kAU_01510 = "Click to see"
strLangMOD_Ls3kAU_01520 = "'s MSN Messenger address"


Replace that with the following block of code:


strLangMOD_Ls3kAU_01510 = "Click to see"
strLangMOD_Ls3kAU_01520 = "'s MSN Messenger address"
strLangMOD_Ls3kAU_01530 = "Private Messages Inbox"
strLangMOD_Ls3kAU_01531 = "Private Messages Options"
strLangMOD_Ls3kAU_01532 = "Sending a Private Message"
strLangMOD_Ls3kAU_01533 = "Replying to a Private Message"
strLangMOD_Ls3kAU_01534 = "Reading a Private Message"


Finished.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 04 September 2002 :  22:08:11  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Yikes. Thanks for the the warning and fix. The zip has been updated with this correction. I will add the above code as an option in the readme.

@tomic

SportsBettingAcumen.com
Go to Top of Page

GenerationEdge
Junior Member

105 Posts

Posted - 05 September 2002 :  00:24:52  Show Profile
I'm not having this problem without using the code fix above. I'm going ahead and adding it though. Running V3.4.02 with AU 4.0.17 and installed @tomic's PM yesterday.

When someone is reading their PM's on mine and I'm in the Active Users Panel and I click on the link to the PM it just takes me to "MY" inbox, not there's. I don't have the setting to Everyone to view what page users are on but I do have it set to "registered members" to view the active page.

@tomic, I know you're slammed but another fix to your PM is to get the "button_go.gif" fixed in the pm_members.asp & pm_pop_memebers.asp. If you place all your other images in the separate directory it will be "X"ed out on the GO button. I had to add the "geticon" . might want to update the zip also with the other topic in the forum on "herehereherehere" . Just FYI. Thanks for the mod.

Jason
Go to Top of Page

Yellow Aftershock
New Member

55 Posts

Posted - 05 September 2002 :  12:42:10  Show Profile
quote:
[i]

@tomic, I know you're slammed but another fix to your PM is to get the "button_go.gif" fixed in the pm_members.asp & pm_pop_memebers.asp. If you place all your other images in the separate directory it will be "X"ed out on the GO button. I had to add the "geticon" . might want to update the zip also with the other topic in the forum on "herehereherehere" . Just FYI. Thanks for the mod.



Would it be possible to just have an actual Windows type button instead of an image ?!
Go to Top of Page

NOTONEOFUS
Starting Member

12 Posts

Posted - 05 September 2002 :  17:38:39  Show Profile
Yes there is. You just have to edit the code where the images are with the buttons.
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 05 September 2002 :  17:47:46  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
quote:
Would it be possible to just have an actual Windows type button instead of an image ?!


Instead if <input type="image" src="button_go.gif" etc etc> you have <input type="submit" value="Go!" etc etc>

And yes I shall fix this so that it is on the iconfiles page like all the rest.

@tomic


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