Author |
Topic |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 21 July 2002 : 07:05:26
|
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
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 July 2002 : 08:05:11
|
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. |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 21 July 2002 : 18:27:23
|
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 |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 21 July 2002 : 18:59:50
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 July 2002 : 19:03:52
|
I e-mailed you updated files. |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
Posted - 21 July 2002 : 19:34:45
|
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/ |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 July 2002 : 19:38:43
|
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 |
|
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
Dan Martin
Average Member
USA
528 Posts |
Posted - 21 July 2002 : 19:54:58
|
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? |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 21 July 2002 : 20:59:34
|
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. |
|
|
Dan Martin
Average Member
USA
528 Posts |
Posted - 21 July 2002 : 21:10:18
|
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.
|
|
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 22 July 2002 : 21:02:20
|
Hi Richard,
Any chance I can send you my pop_profile.asp as well ?
Regards, Dave
|
|
|
|
Topic |
|