![]() |
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
|Forum Newbie|
![]() Join Date: Jun 2009
Posts: 9
![]() |
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? |
|
|
|
|
|
#2 |
|
Member
|Forum Guru|
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 2,024
![]() |
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 |
|
|
|
|
|
#3 |
|
Member
|Forum Newbie|
![]() Join Date: Jun 2009
Posts: 9
![]() |
Thanks but still can i sensor certain urls?
Remeber people are internet savvy and know how to copy and paste...:mrgreen: |
|
|
|
|
|
#4 |
|
Member
|Forum Guru|
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 2,024
![]() |
Edit file "ajax/myajaxphp.php"
Find line: Code:
$comments_value = $filterObj->process(trim($comments_value)); 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);
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 |
|
|
|
|
|
#5 |
|
Member
|Forum Newbie|
![]() Join Date: Jun 2009
Posts: 9
![]() |
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? |
|
|
|
|
|
#6 |
|
Member
|Forum Guru|
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 2,024
![]() |
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 |
|
|
|
|
|
#7 |
|
Member
|Forum Newbie|
![]() Join Date: Jun 2009
Posts: 9
![]() |
Thanks once again my friend...
|
|
|
|
|
|
#8 |
|
Member
|Forum Regular|
![]() ![]() ![]() Join Date: Jun 2008
Posts: 216
![]() |
This is great! nice contribution.
|
|
|
|
|
|
#9 |
|
Member
|Forum Newbie|
![]() Join Date: Jun 2009
Posts: 9
![]() |
Sorry to bother you again, but the code isn't working...
Just tested it... |
|
|
|
|
|
#10 |
|
Member
|Forum Guru|
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 2,024
![]() |
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 |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |