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
 Error in pop_profile.asp with PM MOD and some tips
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

interlokk
Starting Member

23 Posts

Posted - 17 March 2004 :  14:28:10  Show Profile  Visit interlokk's Homepage
I have installed the Private Messages MOD and it work almost perfectly but I will suggest some tips: 1) the "private messages" link in the top of page (inc_header.asp) would have appear only when the users are logged in. There is no sense give those link anytime.2)In the topic.asp by clicking in the "PM" icon the no-logged in users must be redirected to a error page (privatesend.asp???) in that the login will be request...in my forum such users are led to the Board homepage and nothing occurs...
Also, I have experienced some trouble with the pop_profile.asp after installed this MOD. When I try to open any member's profile, I receive the following error:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/disc/pop_profile.asp, line 700


I renumbered the values in topic.asp and it is fine. This topic did not decide my problem. What I have to do about it? Thanks.

Edited by - interlokk on 17 March 2004 14:29:54

masterao
Senior Member

Sweden
1678 Posts

Posted - 17 March 2004 :  16:16:12  Show Profile  Visit masterao's Homepage
I've changed the code on my forum to only display the PM link when a user is logged in.

Example for the forum menu in sub sForumNavigation() in inc_header.asp:

  If mLev > 0 then
			If strPMStatus = "1" then
	Response.Write "          <a href=""" & strForumURL & "pm_view.asp""" & dWStatus("Check Your Private Messages...") & " tabindex=""-1""><acronym title=""Check Your Private Messages..."">Private Messages" 
					if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & " New</b></font>)" end if 
	Response.Write "</acronym></a>" & vbNewline & _
			"          |" & vbNewline
			end if
 end if


This will probably not work when added directly, as you have to change the line before adding this to remove the code marked redvbNewLine & _, and you have to add Response.Write " after after the PM code.

Can you post a link to a text-version of your pop_profile.asp? Also, have you added any other mods which required changes to pop_profile.asp?

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod

Edited by - masterao on 17 March 2004 16:17:23
Go to Top of Page

interlokk
Starting Member

23 Posts

Posted - 17 March 2004 :  18:05:00  Show Profile  Visit interlokk's Homepage
Thanks a lot masterao...but you could put the exact code? Where I cut the vbNewline & _ and where I put the Response.Write "?
Here you can view my pop_profile.asp code. I've recently installed the Active User MOD and a few add's that I don't remember at this time if they does or not have changed the pop_profile.asp...

Edited by - interlokk on 17 March 2004 19:14:06
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 18 March 2004 :  08:34:28  Show Profile  Visit masterao's Homepage
It depends on where in the sub sForumNavigation() you want the PM link to be. If you post a link to a text-version of inc_header.asp where you have added the PM-link, I can add the above modification for you.

Regarding the problem with pop_profile.asp, it seems as if you don't have the M_PMRECEIVE field in the members-table. Did you get any errors when you updated the database with the dbs-file?

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

interlokk
Starting Member

23 Posts

Posted - 18 March 2004 :  10:13:41  Show Profile  Visit interlokk's Homepage
Your're right about the pop_profile.asp...I've realized that and already corrected...as soon as possible I post the inc_header.asp. thanks.
Go to Top of Page

interlokk
Starting Member

23 Posts

Posted - 18 March 2004 :  19:16:55  Show Profile  Visit interlokk's Homepage
Well, click here to see my inc_header.asp code...
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 19 March 2004 :  11:37:07  Show Profile  Visit masterao's Homepage
In inc_header.asp, locate the following lines and add the greenmarked code and remove the red-marked code:

    If mLev > 0 and strPMStatus = "1" then
			If strPMStatus = "1" then
	Response.Write "          <a href=""" & strForumURL & "pm_view.asp""" & dWStatus("Checar suas mensagens privadas") & " tabindex=""-1""><acronym title=""Checar suas mensagens privadas"">Mensagens Privadas" 
			if pmcount > 0 then Response.Write " (<b>" & pmcount & "</b>)"
	Response.Write "</acronym></a>" & vbNewline & _
			"          |" & vbNewline
			end if


That will make the PM link visible only to members.

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

interlokk
Starting Member

23 Posts

Posted - 19 March 2004 :  13:27:42  Show Profile  Visit interlokk's Homepage
Thank you very much masterao...both the fails had been corrected. Thank you!
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 19 March 2004 :  15:21:42  Show Profile  Visit masterao's Homepage
You're welcome.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07