Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 people advertising... remove emails from posts.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 20 February 2004 :  04:16:46  Show Profile  Visit klubdj's Homepage
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  Show Profile  Visit MYLE's Homepage  Send MYLE a Yahoo! Message
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


MYLE

Edited by - MYLE on 20 February 2004 05:20:01
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 20 February 2004 :  08:30:03  Show Profile  Visit klubdj's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 February 2004 :  08:59:41  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 20 February 2004 :  09:26:15  Show Profile  Visit klubdj's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 February 2004 :  10:12:00  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 20 February 2004 :  16:45:24  Show Profile  Visit Jezmeister's Homepage
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 20 February 2004 :  21:48:27  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 22 February 2004 :  04:58:00  Show Profile  Visit klubdj's Homepage
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
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 22 February 2004 :  10:01:43  Show Profile  Visit Jezmeister's Homepage
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
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 22 February 2004 :  12:14:45  Show Profile  Visit klubdj's Homepage
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
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 22 February 2004 :  14:45:32  Show Profile  Visit Jezmeister's Homepage
hmm y dont u put it in ur policy.asp until u get the code?
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 23 February 2004 :  05:48:42  Show Profile  Visit klubdj's Homepage
It is in our policy and all over the rules of the site but people don't read it. Anyone with any ideas?

Thanks
Go to Top of Page

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 29 February 2004 :  04:24:27  Show Profile  Visit klubdj's Homepage
So has anyone thought of a way or done this then... ??

Thanks
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 29 February 2004 :  07:14:23  Show Profile  Visit Jezmeister's Homepage
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
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 1.55 seconds. Powered By: Snitz Forums 2000 Version 3.4.07