Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Image in signature, not in body

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jochovitch Posted - 16 September 2005 : 04:15:41
Is there a way you can let people have images in their signatures and not in the body of the thread? So people can hav kind of an avatar in their signature, but are not able to post images in the text of their message.<
1   L A T E S T    R E P L I E S    (Newest First)
MarcelG Posted - 16 September 2005 : 04:32:09
By default ; no.
After some modding ; yes, certainly.

The first thing you'll have to do is enable dynamic signatures. In that way the sig is not added to the message, but it's pulled from the members-table along with the post.

Then there's the option 'allow images in posts' which currently works for both the actual image as well as the signature.
Then we'd have to to the exact opposite of this mod.

I've got it!!!

in inc_func_common.asp, add this function ;
function FormatSig(fString)
	on Error resume next
	fString = Replace(fString, CHR(13), "")
	fString = Replace(fString, CHR(10), "<br />")
	if strBadWordFilter = 1 or strBadWordFilter = "1" then
		fString = ChkBadWords(fString)
	end if

	if strAllowForumCode = "1" then
		fString = ReplaceURLs(fString)
		fString = ReplaceCodeTags(fString)
	end if

	fString = ChkURLs(fString, "http://", 1)
	fString = ChkURLs(fString, "https://", 2)
	fString = ChkURLs(fString, "www.", 3)
	fString = ChkMail(fString)
	fString = ChkURLs(fString, "ftp://", 5)
	fString = ChkURLs(fString, "file:///", 6)

	if strIcons = "1" then
		fString = smile(fString)
	end if
	if strAllowForumCode = "1" then
		fString = extratags(fString)
	end if
	FormatSig = fString
	on Error goto 0
end function

Now, in topic.asp, replace this:
formatStr(Reply_MemberSig)

by this:
formatSig(Reply_MemberSig)

and
formatStr(Topic_MemberSig)

by
formatSig(Topic_MemberSig)


After that find the following on line 70 of pop_preview_sig.asp:
"                <td bgcolor=""" & strForumCellColor & """ valign=""bottom""><hr noshade size=""" & strFooterFontSize & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"">" & formatStr(chkString(strSigPreview,"preview")) & "</span></font></td>" & vbNewLine & _
And replace it with the following:
"                <td bgcolor=""" & strForumCellColor & """ valign=""bottom""><hr noshade size=""" & strFooterFontSize & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"">" & formatSig(chkString(strSigPreview,"preview")) & "</span></font></td>" & vbNewLine & _

And, on line 89 of pop_preview.asp, find the following:
strMessagePreview = formatStr(chkString(strMessagePreview,"preview")) & "<hr noshade size=""" & strFooterFontSize & """>" & formatStr(chkString(cleancode(GetSig(strSigAuthor)),"preview"))
And replace it with the following:
strMessagePreview = formatStr(chkString(strMessagePreview,"preview")) & "<hr noshade size=""" & strFooterFontSize & """>" & formatSig(chkString(cleancode(GetSig(strSigAuthor)),"preview"))


That't it ; this simply enables the image handling in the signatures, so the [img]-tags will allways be processed even if images in posts are disabled.

Hope this helps.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07