word censor a link ???

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
Mario_AU
Registered User
Posts: 162
Joined: Fri Jan 25, 2008 10:51 am
Location: Australia
Contact:

word censor a link ???

Post by Mario_AU » Mon May 19, 2008 5:23 pm

is there a way to make the word censor (i tried all wildcards) to censor a http link ???

ie:

http://site.com/picture.jpg

to

whatever_I_replace_it_with

atm it sems not !?!

User avatar
darcie
Community Team Member
Community Team Member
Posts: 5541
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin
Contact:

Re: word censor a link ???

Post by darcie » Mon May 19, 2008 7:45 pm

No, the word censor doesn't work on a url, as this would break the address. ;)

Maybe you could post why you'd like to do something like this and we could come up with a different way to achieve a similar end result?
phpBB on Facebook | Site Rules | Former Community Team leader

User avatar
Mario_AU
Registered User
Posts: 162
Joined: Fri Jan 25, 2008 10:51 am
Location: Australia
Contact:

Re: word censor a link ???

Post by Mario_AU » Mon May 19, 2008 8:31 pm

darcie wrote: Maybe you could post why you'd like to do something like this and we could come up with a different way to achieve a similar end result?
how about when someone posts pics from somewhere you don't want ? or spams porno pics ?? apart from initiating user ban or similar i would still like to be able to word censor any posted item, be it word or link.
say i have numerous users with signatures that all link from a particular site and that site asks me to not let the users hotlink those pics. now instead of asking each user, say several hundred to change their sigs, i just wordcensor part of the link and their signature pics no longer work.

FLA3H
Registered User
Posts: 34
Joined: Sun Oct 15, 2006 6:10 pm

Re: word censor a link ???

Post by FLA3H » Mon May 19, 2008 9:03 pm

Could you just censor the site name?
*.sitename.*.*

User avatar
Mario_AU
Registered User
Posts: 162
Joined: Fri Jan 25, 2008 10:51 am
Location: Australia
Contact:

Re: word censor a link ???

Post by Mario_AU » Tue May 20, 2008 7:11 am

FLA3H wrote:Could you just censor the site name?
*.sitename.*.*
huh ?? within word censor ??
give an example of what you mean.

but also i'd rather not censor a specific site but rather the name of the picture each time it need to be. in case i want to allow other pictures from that site.

User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: word censor a link ???

Post by karlsemple » Tue May 20, 2008 7:17 am

If you replace a word using the word censor it applies the change to links also, so if you wanted to sensor

phpbb.com

simply add phpbb to the word censor, and then when someone posts http://www.phpbb.com the phpbb in the shown link and the actual click-able link will be replaced with your replacement.
Image

User avatar
Mario_AU
Registered User
Posts: 162
Joined: Fri Jan 25, 2008 10:51 am
Location: Australia
Contact:

Re: word censor a link ???

Post by Mario_AU » Tue May 20, 2008 6:14 pm

karlsemple wrote:If you replace a word using the word censor it applies the change to links also, so if you wanted to sensor

phpbb.com

simply add phpbb to the word censor, and then when someone posts http://www.phpbb.com the phpbb in the shown link and the actual click-able link will be replaced with your replacement.

ok but that then creates a "silly" link.

ie: i censored "nastypic.jpg" to "i like apples"(as an example)
i then make a post like so:

http://www.site.com/aaaa/xxxx/nastypic.jpg

what shows up is:

http://www.site.com/aaaa/xxxx/i like apples

so it's an invalid link and i suppose better then nothing, but is it not possible to have:
censored "http://www.site.com/aaaa/xxxx/nastypic.jpg" to "i like apples"
and then when user posts that link it shows only:
"i like apples"

thanks,

User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: word censor a link ???

Post by karlsemple » Wed May 21, 2008 5:37 am

so it's an invalid link and i suppose better then nothing, but is it not possible to have:
censored "http://www.site.com/aaaa/xxxx/nastypic.jpg" to "i like apples"
and then when user posts that link it shows only:
That is how the word censor would word anyway, you can censor whole links unfortunately the magic link function would still parse it and give you an invalid link.

For example placing http://www.phpBB.com in the word censor and giving it the replacement I like apples would display I like apples whenever anyone posted the http://www.phpBB.com link, however it would still be click-able and take you to some invalid link.

what you are after is not a word censor but a Link blocker and the word censor was not designed for such a task. To achieve what you want you will need a modification and as such you should probably post in the mod request forum :)
Image

jdhannan
Registered User
Posts: 18
Joined: Wed Feb 20, 2008 7:00 pm

Re: word censor a link ???

Post by jdhannan » Wed May 21, 2008 8:47 pm

But can you disable it from censoring words in links?
That woudl be really helpful.
cuz it breaks links if a censored word is in it.

Locked

Return to “[3.0.x] Support Forum”