armed-smoking
 
Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » General » General » Testing Forum Censor
Testing Forum Censor
General discussion about issues not relating to specific projects.
Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  General

View previous topic :: View next topic  
Author Message
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1457
Location: Netizen
PostPosted: Sat May 14, 2005 11:52 am
Post subject: Testing Forum Censor

testing censor - smiley central was the word.

phried.com


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
safecracker4hire
Nice Poster
Nice Poster

Offline Offline
Joined: Feb 19, 2005
Posts: 9

PostPosted: Sat May 14, 2005 8:12 pm
Post subject: Re: Testing Forum Censor

Here's a C&P of one used alot by my users... but it won't work here since html is not allowed. Wink

Code::
<img src='http://smileys.phried.com/cat/36/36_11_6.gif' alt='ROTFL' border=0>

(and here's the bbcode version of it)


safecracker4hire please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
safecracker4hire
Nice Poster
Nice Poster

Offline Offline
Joined: Feb 19, 2005
Posts: 9

PostPosted: Sat May 14, 2005 8:19 pm
Post subject: Re: Testing Forum Censor

I may just go the route of turning off the html tags and fix any old posts as either a) I see them, or b) I get complaints about not seeing the image. Thanks for looking at it though!


safecracker4hire please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1457
Location: Netizen
PostPosted: Sun May 15, 2005 11:50 am
Post subject: Re: Testing Forum Censor

Thanks NEMINI - html was enabled, but as safecracker has pointed out on Dragonfly, there was an issue with hardcoding in viewtopic where the html flag wasn't enabled in the decode_bbcode function - I've now modified that file here.

Now this shows that censor in preview (posting.php) works fine on html and bb code and text, but view (viewtopic.php) is missing html and bbcode url's.

<img src='http://smileys.phried.com/cat/36/36_11_6.gif' alt='ROTFL' border=0 title='ROTFL'>phried.com
Code::
<img src='http://smileys.smiley central.com/cat/36/36_11_6.gif' alt='ROTFL' border=0 title='ROTFL'>smiley central.com
and bbcode
Code::
[img]http://smileys.smiley central.com/cat/36/36_11_6.gif[/img]
So, safecracker, rather than go down any route just yet, how about we just "debug" the code so it all works, including your fix for viewtopic.

Anyway, it would be handy to fix the censor so this can't happen.
<a href="http://crap*.com">crap* in htmlcode url</a>crap* in bbcode url


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
safecracker4hire
Nice Poster
Nice Poster

Offline Offline
Joined: Feb 19, 2005
Posts: 9

PostPosted: Sun May 15, 2005 9:52 pm
Post subject: Re: Testing Forum Censor

Sure thing! I'll put together a few tests today and see what I can come up with.

I did say the heck with it yesterday and turned off html tags in the forums. They should all learn how to use bbcode anyway. Plus, it forces the code to be XHTML compliant (and doesn't give a ton of links to sites like smiley central as bbcode uses 'nofollow').

Well, it pissed off the guy that is using a ton of smilies... but he's figured out bbcode now! Ah, atleast it isn't as easy to just click and insert them. He has to type each one out now (until he figures out how to add the bbcode mod to FF anyway!), so we're seeing only one or two now instead of 10 or 12 per post.

Anway, gotta run out for a bit, but will do a little testing later and report back! ( I started taking a look at Coppermine this morning too... there's been a few bug reports on that lately too... man, is that a fun one to try and trace! Wink )


safecracker4hire please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
NEMINI
CEO
CEO

Offline Offline
Joined: May 24, 2004
Posts: 14

PostPosted: Mon May 16, 2005 8:25 am
Post subject: Re: Testing Forum Censor

Phoenix wrote:
Thanks NEMINI

huh? What am I being thanked for?

_________________
NEMINI.org, NEMINI.us, NEMINI.info & NYMINI.org

NEMINI please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1457
Location: Netizen
PostPosted: Tue May 17, 2005 10:37 am
Post subject: Re: Testing Forum Censor



Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
NEMINI
CEO
CEO

Offline Offline
Joined: May 24, 2004
Posts: 14

PostPosted: Tue May 17, 2005 10:45 am
Post subject: Re: Testing Forum Censor

Phoenix wrote:

Guess it worked

_________________
NEMINI.org, NEMINI.us, NEMINI.info & NYMINI.org

NEMINI please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1457
Location: Netizen
PostPosted: Tue May 17, 2005 10:47 am
Post subject: Re: Testing Forum Censor

hmm, wish it would all work
normal bbcode Web Page Name
here%20is%20smiley%20central%20bbcode%20--><br>here is smiley central html --><img src='http://smileys.phried.com/cat/36/36_11_6.gif' alt='ROTFL' border=0 title='ROTFL'><br><br>
both are missing if I apply censor code to line 1032 coz standard censor checks don't exclude urls


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  General
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum