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/Code)
 MOD: A different Reply w/ Quote
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dave.
Senior Member

USA
1037 Posts

Posted - 26 December 2002 :  18:21:12  Show Profile
I don't know if this qualifies as a MOD, but I changed the way the quotes are handled when you click "Reply with quote" or "Reply to topic."

DEMO: http://www.railway-forum.com/forum/topic.asp?TOPIC_ID=141

inc_func_common.asp

Find these, about line 432:

		fString = doCode(fString, "[b]", "[/b]", "<b>", "</b>")
		fString = doCode(fString, "[s]", "[/s]", "<s>", "</s>")
		fString = doCode(fString, "[strike]", "[/strike]", "<s>", "</s>")
		fString = doCode(fString, "[u]", "[/u]", "<u>", "</u>")
		fString = doCode(fString, "[i]", "[/i]", "<i>", "</i>")


Add these below that:

		fString = doCode(fString, "[BQ]", "[/BQ]", "<blockquote id=""quote""><font size=""1"">", "</font id=""size1""></blockquote id=""quote"">")
   		fString = replace(fString, "[HRQ]", "<hr height=""1"" noshade id=""quote"">", 1, -1, 1)


post.asp

Find these, about line 328:

		if strRqMethod = "ReplyQuote" then
			TxtMsg = "[quote][i]Originally posted by " & chkString(rs("M_NAME"),"display") & "[/i]" & vbNewline
			TxtMsg = TxtMsg & "[br]" & rs("R_MESSAGE") & vbNewline
			TxtMsg = TxtMsg & "[/quote]"
		end if


CHANGE them too look like this:

		if strRqMethod = "ReplyQuote" then
			TxtMsg = "[BQ] Quote from[b] " & chkString(rs("M_NAME"),"display") & ":[/b][HRQ]" & vbNewline
			TxtMsg = TxtMsg & "[br]" & rs("R_MESSAGE") & vbNewline
			TxtMsg = TxtMsg & "[HRQ][/BQ]"
		end if




Thats it! I don't know very much ASP, so if you think this is lame, and pointless, then that's why.

Edited by - Dave. on 26 December 2002 18:51:15

schef
Junior Member

USA
164 Posts

Posted - 26 December 2002 :  23:37:45  Show Profile  Visit schef's Homepage  Send schef an AOL message
I'm sure it could be useful to someone... I did notice that you have more than the usual number of stars on your demo. May I ask how you did that?

ATV Outdoors
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 26 December 2002 :  23:53:13  Show Profile
I think it was:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36191
Go to Top of Page

schef
Junior Member

USA
164 Posts

Posted - 27 December 2002 :  00:28:17  Show Profile  Visit schef's Homepage  Send schef an AOL message
thanks

ATV Outdoors
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 27 December 2002 :  09:43:28  Show Profile
your welcome
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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07