Ok been long time since I've had with the mods, here is my little mod (I'm not sure if it has been made before)
NMNQ MOD 1.0
This mod removes internal quotes of a quoted post. In other words, when you quote a message that has quoted another, you won't get previously quoted message inside, therefor removes cluttering chain quotes (ofcourse if done on purpose that's whole another reason)
Download: No More Nested Quotes
INSTALL
It is very simple process really. Two files modified.
inc_func_posting.asp
Find following line:
Code:
function CleanCode(fString)
around line 88 and above this line add following:
Code:
Function CleanQuotes(fString)
if fString <> "" AND IsNull(fstring) = False Then
set re = new RegExp
re.pattern = "\[quote(?:(?!\[quote)([\s\S]))+?(\[/quote\]\n\r|\\n|\)"
re.ignorecase = true
re.global = true
set matches = re.execute(fstring)
totalMatches = matches.count
if totalMatches <> 0 Then
Do While totalMatches <> 0
For each match in matches
fstring = re.Replace(fstring,"")
Next
if totalMatches = 0 Then
Exit Do
End If
set matches = re.execute(fString)
totalMatches = matches.count
Loop
End If
set matches = nothing
set re=nothing
CleanQuotes = fstring
Else
CleanQuotes = fstring
End If
End Function
Done with the inc_func_posting.asp...
post.asp
now open post.asp Find following line around Line 328:
Code:
TxtMsg = TxtMsg & "[br]" & rs("R_MESSAGE") & vbNewline
Replace it with following:
Code:
TxtMsg = TxtMsg & "[br]" & CleanQuotes(rs("R_MESSAGE")) & vbNewline
Following change is OPTIONAL. Generally topics are not quoted, but may be quote stuff inside, so you may not add it if you find it necessary or not. But here it goes: Find following line around line 355 :
Code:
TxtMsg = TxtMsg & "[br]" & rs("T_MESSAGE") & vbNewline
Replace it with following :
Code:
TxtMsg = TxtMsg & "[br]" & CleanQuotes(rs("T_MESSAGE")) & vbNewline
And voila ;) Now you won't get anymore annoying quote in quote in quote in quote over and over...
http://www.chip.com.tr/forum
Credits: Thanks to Carefree for taking risks to test this piece of code and preparing the file for download and MarcelG for all previous tries.<