The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Hi,
I want to have the option to include profile signatures in private messages.
So far I've coded :-
Response.Write " </font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><textarea cols=""45"" name=""Message"" rows=""10"" wrap=""VIRTUAL""
onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">" & Trim(CleanCode(TxtMsg)) &
"</textarea><hr><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Sig"" id=""Sig"" type=""checkbox"" value=""yes""
checked><label for=""Sig"">Check here to include your profile signature.</label></td>" & vbNewLine & _ " </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
In privatesend.asp
What do I add next.
<
I want to have the option to include profile signatures in private messages.
So far I've coded :-
Response.Write " </font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><textarea cols=""45"" name=""Message"" rows=""10"" wrap=""VIRTUAL""
onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">" & Trim(CleanCode(TxtMsg)) &
"</textarea><hr><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Sig"" id=""Sig"" type=""checkbox"" value=""yes""
checked><label for=""Sig"">Check here to include your profile signature.</label></td>" & vbNewLine & _ " </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
In privatesend.asp
What do I add next.
<
Phil
Posted
I don't have pm running but I do have a copy, so I'm guessing at this.
Open privatesend_info.asp
find this
Add this after it
find this
And add the same code as above under it
I think that will work
ps: this won't work for dynamic sigs. You'll have to make changes in another file for that. Search for "sig" in "topic.asp" to see how it's done there.<
Open privatesend_info.asp
find this
Code:
txtMessage = ChkString(Request.Form("Message"),"message")
txtSubject = ChkString(Request.Form("Subject"),"SQLString")Add this after it
Code:
if strSignatures = "1" and strDSignatures <> "1" then
if Request.Form("sig") = "yes" and GetSig(strDBNTUserName) <> " " then
txtMessage = txtMessage & vbNewline & vbNewline & ChkString(GetSig(strDBNTUserName), "signature" )
end if
end ifCode:
txtMessage = ChkString(Request.Form("Message"),"message")
txtSubject = ChkString(strPMSubject,"SQLString")
txtSubject = Replace(txtSubject, "RE: ", "")
txtSubject = Replace(txtSubject, "FWD: ", "")I think that will work
_-/Cripto9t\-_
Posted
got dynamic signatures turned off
tired this and no luck
any more ideas ?<
tired this and no luck
any more ideas ?<
Phil
Posted
u need dynamic sigs turned on for that bit of code to work
if strSignatures = "1" and strDSignatures <> "1" then
that line is saying that if sigs and dynamic sigs are on then get the sig<
if strSignatures = "1" and strDSignatures <> "1" then
that line is saying that if sigs and dynamic sigs are on then get the sig<
© 1999-2010 MaD2ko0l
Posted
turn it on and still does not work, can i send the two files to someone to double check.
thanks in advance.<
thanks in advance.<
Phil
Posted
You should be getting an error saying it can't find the GetSig() function :)
Add in_func_members.asp to the includes
If that doesn't work, post a link to a txt file and I'll look at them. <
Add in_func_members.asp to the includes
Code:
%>
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
<%If that doesn't work, post a link to a txt file and I'll look at them. <
_-/Cripto9t\-_
Posted
http://philsbbs.com/privatesend.txt
http://philsbbs.com/privatesend_info.txt
Thanks in advance for your help.<
http://philsbbs.com/privatesend_info.txt
Thanks in advance for your help.<
Phil
Posted
any news on this.<
Phil
Posted
cripto9t and news on this.<
Phil
Posted
Phil, I don't see anything wrong with it.
The input name is spelled "Sig" in Privatesend and "sig" in privatesend_info, so you can start there.
The next step I would take is see if I am getting all the right values.
Add these lines after "<%" in privatesend_info near the top of the page. and try to post a test pm.
You should get
yes
1
0
signature text
if one of those values is missing then that's your problem, If not it should be working.<
The input name is spelled "Sig" in Privatesend and "sig" in privatesend_info, so you can start there.
The next step I would take is see if I am getting all the right values.
Add these lines after "<%" in privatesend_info near the top of the page. and try to post a test pm.
Code:
Response.Write Request.Form("sig") & "<br >" & strSignatures & "<br />" & strDSignatures & "<br />" GetSig(strDBNTUserName)
Request.EndYou should get
yes
1
0
signature text
if one of those values is missing then that's your problem, If not it should be working.<
_-/Cripto9t\-_
Last edited by cripto9t on 17 April 2008, 19:00
Posted
Sig to sig had no inpact, about to try next suggestion.<
Phil
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...