Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 PM in Profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  07:05:26  Show Profile  Visit MarkJH's Homepage
I have scoured Snitz high and low for this mod but to no avail. It's not in the Snitz Exchange either.

What I want is simply to be able to add a section to a members profile so that somebody can click on it to PM them directly from the profile.

Obviously, the "send PM to" field in the PM window will have to contain the name of the person you want to send a message to. I guess it would work in the same way as the "send a private message to this member" button used in topics.

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 21 July 2002 :  07:59:52  Show Profile
OK above the ICQ bit around line 193 in pop_profile.asp


<%
if strICQ = "1" then
if Trim(rs("M_ICQ")) <> "" then
%>


So it becomes...


<tr>
<td bgColor=<% =strPopUpTableColor %> align=right width="10%" nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">PM User: </font></b></td>
<td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="privatesend.asp?method=topic&mname=<% =rs("M_NAME") %>"><% =ChkString(rs("M_NAME"),"display") %></a></font></td>
</tr>

<%
if strICQ = "1" then
if Trim(rs("M_ICQ")) <> "" then
%>


That should work, I cant test tho

Also you mite not need the method=Topic part in the link, you can try it with either to see if it works.


No matter how fast light travels it finds the darkness has always got there first, and is waiting for it.
http://www.ian-hamlin.co.uk


Edited by - Hamlin on 21 July 2002 08:01:28
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 July 2002 :  08:05:11  Show Profile
I had actually added this to the Private Messages MOD after I released the last version, but just haven't modified the instructions and bundled it up. I'm waiting now until after v3.4 is released.

I added 2 new files, so that when you are in the profile and click on the link to send the PM, it opens a popup window to enter the subject and message in.

If you want, you can send me your pop_profile.asp file and I'll add it to there and then e-mail you back the edited pop_profile.asp file and the 2 other new files.
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  13:28:46  Show Profile  Visit MarkJH's Homepage
Thanks both. Call me a coward if you like (Mark, you're a coward) but Richard, i'll send you my pop_profile.asp file. Thanks in advance!

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  13:35:20  Show Profile  Visit MarkJH's Homepage
Okay, sent.

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  18:27:23  Show Profile  Visit MarkJH's Homepage
Thanks Richard, but there are a couple of problems and a slight tweak i'd love to see.

When you click on "PM: Send a Private Message" the popup window appears with the Subject box, the Message box and the Send Message and Reset Fields buttons but underneath this is an error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'WriteFooterShort'

/forum/pop_privatesend.asp, line 103


Also, when you send the message there is another error in the popup window:

Message sent to xxxxxxx

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'WriteFooterShort'

/forum/pop_privatesend_info.asp, line 207


One other thing... would it be possible to have the "PM: Send a Private Message" blurb include the name of the recipient i.e. "PM: Click to send xxxxxxx a Private Message"?

Cheers.

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 21 July 2002 18:27:53
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  18:59:50  Show Profile  Visit MarkJH's Homepage
Also, when you get an email to tell that the message has been said it comes up with:

Hello xxxx

yyyyy has sent you a private message at Bandlink Music Forums.
With the subject entitled - Test.

You can view your message by visiting


It doesn't give the URL of the page to visit, in this case, http://www.bandlink.net/forum/

Sorry to be a pain... or is it a beta-tester?

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 21 July 2002 19:01:42
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 July 2002 :  19:03:52  Show Profile
I e-mailed you updated files.
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  19:13:59  Show Profile  Visit MarkJH's Homepage
Thanks.

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/

Edited by - MarkJH on 21 July 2002 19:38:41
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  19:34:45  Show Profile  Visit MarkJH's Homepage
Thanks Richard, that's all those problems fixed!

I think i'll have a crack at that "PM: Click to send xxxxxxx a Private Message" amendment myself. I'm sure (okay, perhaps not sure) I can figure it out from the "Email Address: Click to Send xxxxxxx an E-Mail" part of pop_profile.asp

Thanks again!

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 July 2002 :  19:38:43  Show Profile
on line #194 of pop_profile.asp change this:

Send a Private Message


to this:

Click to send <% =chkString(rs("M_NAME"),"display") %> a Private Message
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 21 July 2002 :  19:52:47  Show Profile  Visit MarkJH's Homepage
You make life far too easy...

Thanks, i've added that and it all looks to be working like clockwork.

bandlink.net - http://www.bandlink.net/
bandlink music forums - http://www.bandlink.net/forum/
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 21 July 2002 :  19:54:58  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
When I installed the PM mod, it came with a file called profile_pm.asp, and all I had to do was add:
<!-- #include file="profile_pm.asp" -->
to my pop_profile, at the right place. Is this file no longer distributed?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 July 2002 :  20:59:34  Show Profile
I never included a profile_pm.asp file in the archive. I might have made is separately though, just don't remember. What the above does is puts a link and then you click on the link and it opens a popup to enter the message. I think the thing you have puts a box right on the profile page where you can send a PM from.
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 21 July 2002 :  21:10:18  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
quote:

I never included a profile_pm.asp file in the archive. I might have made is separately though, just don't remember. What the above does is puts a link and then you click on the link and it opens a popup to enter the message. I think the thing you have puts a box right on the profile page where you can send a PM from.


Yep, that's correct. I've had it running on my site for quite some time. I guess it wasn't part of the archive. Been so long I don't remember for sure. I still have the file if anyone wants it.

Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 22 July 2002 :  21:02:20  Show Profile  Visit Webbo's Homepage
Hi Richard,

Any chance I can send you my pop_profile.asp as well ?

Regards, Dave

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