Author |
Topic  |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 20 February 2004 : 04:16:46
|
Hi,
I have a real problem with people advertising on my Forum... they leave email address and webpages all the time.
Is it possible to auto remove them from post when typed in!? If so how!?
Thanks |
Edited by - klubdj on 20 February 2004 08:31:12 |
|
MYLE
Starting Member
New Zealand
21 Posts |
Posted - 20 February 2004 : 05:14:16
|
just thinking here out loud here use the Bad Word Filter Configuration bad word = @ and replacement = stopdoingthis and bad word = http:\\www and replacement = stopdoingthis
this can only work if the Bad Word Filter Configuration only check the body of the message can someone verify this ????
mite not stop them will make there links look bad LOL
|
WHAT I THINK THE PRIVACY ACT SHOULD BE If it's bad tell me If it's good tell everybody
|
Edited by - MYLE on 20 February 2004 05:20:01 |
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 20 February 2004 : 08:30:03
|
I wanted something that was a bit better than the bad word filter for removing web pages and email addresses within posts. |
www.klubdj.co.uk |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 20 February 2004 : 08:59:41
|
I guess you could change the ReplaceURLs function in inc_func_common.asp, to achieve what you want. Right now URLS and email address are transtaled in a way to ensure they change into clickable links. You can change the function so that they are not copied to the output. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 20 February 2004 : 09:26:15
|
Could do explain that in a little more detail?? How would I do it! Sounds like what I'm looking at doing. |
www.klubdj.co.uk |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 20 February 2004 : 10:12:00
|
You need to have a look at the function and understand what it does, first. I don't know it that well either, just enough to know that it is the one to change for your need. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
Jezmeister
Senior Member
   
United Kingdom
1141 Posts |
Posted - 20 February 2004 : 16:45:24
|
Ive edited in_func_common.asp so that it should no longer recognise links, not tested tho so save ur current one first! only problem is it might stop all forum links... tho i think most main ones are independant so it might work...
http://www.jezchat.org.uk/snitzfile/links.zip
ps please could u tell me ny errors etc... i feel a mod coming on... lol |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 20 February 2004 : 21:48:27
|
You could always change your membership signup to use email validation etc, people just coming along to post SPAM don't always bother when they have to put in valid email addresses etc to actually be able to post. |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 22 February 2004 : 04:58:00
|
Hi Jezmeister: Thanks for the download, unfortuantly I don't have a standard in_func_common.asp page so can't replace it with the one I downloaded. Can you tell me what lines you edited!? From what to what!?
Hi Gremlin: That would be the best solution in a standard board, however we are currently using a linked membership for the site and forum together.
Thanks very much |
www.klubdj.co.uk |
 |
|
Jezmeister
Senior Member
   
United Kingdom
1141 Posts |
Posted - 22 February 2004 : 10:01:43
|
I just looked down and removed the link code lol there's three bits: 1. about line 52 right at the top remove:
function ChkURLs(ByVal strToFormat, ByVal sPrefix, ByVal iType) to about line 82 (end function) 2. about line 259 remove:
function HTMLEncode(pString)
fString = trim(pString) to about line 280 (the second end function after the function html encode) 3. about line 1328 remove all under Sub WriteFooterShort() %>
<!--#INCLUDE FILE="inc_footer_short.asp"-->
<% end sub
%> starting <script language="javascript1.2" runat="server">
function edit_hrefs(sURL, iType) { and ending
}
return sOutput;
}
</script>
it prob wont work lol so back up ur current inc_func_common first |
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 22 February 2004 : 12:14:45
|
Thanks... but what I'm really after is some code that will change a link or email into (LINK REMOVED) or something like that... or tell the poster that links aren't allowed!
Someone must have done this as I can imagine it's a problem!
Thanks |
 |
|
Jezmeister
Senior Member
   
United Kingdom
1141 Posts |
Posted - 22 February 2004 : 14:45:32
|
hmm y dont u put it in ur policy.asp until u get the code? |
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 23 February 2004 : 05:48:42
|
It is in our policy and all over the rules of the site but people don't read it. Anyone with any ideas?
Thanks |
 |
|
klubdj
Junior Member
 
United Kingdom
152 Posts |
Posted - 29 February 2004 : 04:24:27
|
So has anyone thought of a way or done this then... ??
Thanks |
 |
|
Jezmeister
Senior Member
   
United Kingdom
1141 Posts |
Posted - 29 February 2004 : 07:14:23
|
yes but ill jst tell u how ... in inc_func_common it recognises url's and email addresses in the sections i said to delete, if you, instead of deleting them change the result of recognised URLs and email addresses to your message instead of links then that should work. the bits u need to edit will be somewhere in the bits i mentioned above |
 |
|
|
Topic  |
|