ClipShare Community Forums  

Go Back   ClipShare Community Forums > ClipShare - Video Sharing Community Script - General Forum > Freelance Services
Register FAQ Bug Tracker Members List Calendar Mark Forums Read

Freelance Services Looking to hire a programmer/designer to customize your ClipShare script. You can find one here. Freelance developers can also list their services here.


Reply
 
Thread Tools Display Modes
Old 06-09-2009, 02:15 AM   #1
lordjazz
Member
|Forum Newbie|
 
Join Date: Jun 2009
Posts: 9
lordjazz is on a distinguished road
Question Censor Words - Mod??

good-evening everyone,


i was wondering if there is a Censor Words Mod? i just don't want people spamming my site with their links... leaving a comment, just to get my visitors to check out there site... that seems to be a BIG TIME problem with youtube at this time...

so back to the question, is there a censor words mod out there?
lordjazz is offline   Reply With Quote
Old 06-09-2009, 02:38 AM   #2
dargre
Member
|Forum Guru|
 
dargre's Avatar
 
Join Date: Nov 2007
Posts: 2,024
dargre is on a distinguished road
Default

Clipshare proccesses comments using input filter class.
I don't think it's possible to post live links, or inline script.
If more filters required - it's not a big deal to add it, but it shouldn't be in filter class.
Comments are proccessed and saved to database using ajax function in file "ajax/myajaxphp.php". It's easy to find.
__________________

NUEVO Flash Player - most advanced video player for Clipshare and AVS
ClipShare mods by NuevoLab
Hosting solution recommended by NuevoLab
dargre is offline   Reply With Quote
Old 06-09-2009, 02:44 AM   #3
lordjazz
Member
|Forum Newbie|
 
Join Date: Jun 2009
Posts: 9
lordjazz is on a distinguished road
Default

Thanks but still can i sensor certain urls?

Remeber people are internet savvy and know how to copy and paste...:mrgreen:


lordjazz is offline   Reply With Quote
Old 06-09-2009, 03:26 AM   #4
dargre
Member
|Forum Guru|
 
dargre's Avatar
 
Join Date: Nov 2007
Posts: 2,024
dargre is on a distinguished road
Default

Edit file "ajax/myajaxphp.php"
Find line:
Code:
$comments_value = $filterObj->process(trim($comments_value));
Above it add 3 lines:
Code:
 $comments_value = preg_replace("/\<a([^>]*)\>([^<]*)\<\/a\>/i", "", $comments_value);
 $comments_value = ereg_replace('(^| )(www([-]*[.]?[a-zA-Z0-9_/-?&%])*)','',$comments_value);
 $comments_value = ereg_replace('(^| )(http([-]*[.]?[a-zA-Z0-9_/-?&%])*)','',$comments_value);
This removes all occurances of live links, also will remove words with 'http' or 'www'.

But if you wish to have only "certain links" filter this code is useless then.
__________________

NUEVO Flash Player - most advanced video player for Clipshare and AVS
ClipShare mods by NuevoLab
Hosting solution recommended by NuevoLab
dargre is offline   Reply With Quote
Old 06-09-2009, 03:30 AM   #5
lordjazz
Member
|Forum Newbie|
 
Join Date: Jun 2009
Posts: 9
lordjazz is on a distinguished road
Thumbs up

Ok let me get this straight...

If someone tries to come through and post...


Nice videos... By the way check out my site; h//p://www.SITEURL.com


Whats in bold test would not appear correct?
lordjazz is offline   Reply With Quote
Old 06-09-2009, 03:49 AM   #6
dargre
Member
|Forum Guru|
 
dargre's Avatar
 
Join Date: Nov 2007
Posts: 2,024
dargre is on a distinguished road
Default

Yep, with code I posted, all in bold will be stripped.

I thought I was clear with what I wrote....
So one more time:

code like: <a href.....?>xxx</a> - WILL BE IGNORED
string like: http:// www. xxx.com - WILL BE IGNORED
string like: www. xxxx. com WILL BE IGNORED

- D.
__________________

NUEVO Flash Player - most advanced video player for Clipshare and AVS
ClipShare mods by NuevoLab
Hosting solution recommended by NuevoLab
dargre is offline   Reply With Quote
Old 06-09-2009, 03:50 AM   #7
lordjazz
Member
|Forum Newbie|
 
Join Date: Jun 2009
Posts: 9
lordjazz is on a distinguished road
Talking re; hi...

Thanks once again my friend...
lordjazz is offline   Reply With Quote
Old 06-09-2009, 04:07 AM   #8
newmediaguy
Member
|Forum Regular|
 
Join Date: Jun 2008
Posts: 216
newmediaguy is on a distinguished road
Default

This is great! nice contribution.
newmediaguy is offline   Reply With Quote
Old 06-09-2009, 04:21 PM   #9
lordjazz
Member
|Forum Newbie|
 
Join Date: Jun 2009
Posts: 9
lordjazz is on a distinguished road
Unhappy

Sorry to bother you again, but the code isn't working...

Just tested it...
lordjazz is offline   Reply With Quote
Old 06-09-2009, 04:55 PM   #10
dargre
Member
|Forum Guru|
 
dargre's Avatar
 
Join Date: Nov 2007
Posts: 2,024
dargre is on a distinguished road
Default

I don't know what you have in your script, if really comments are using standard ajax function, or if you set the code in right place.
3 lines posted are tested string replacements and there's no way so it's not working.

I set simple textarea for submit:
http://www.nuevolab.com/com.php
Try to send message with links and watch result.
__________________

NUEVO Flash Player - most advanced video player for Clipshare and AVS
ClipShare mods by NuevoLab
Hosting solution recommended by NuevoLab
dargre is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
some nice words about CS support [only symtab-adrian]. tsunamu General Discussion 7 03-03-2008 08:42 PM



All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2006-2008 Envient. All Rights Reserved.

An Envient product.