1
zuluDROOG
How to censor links in CBB forum?
  • 2008/6/5 8:01

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Hi All,

I've searched these forums and cannot find a solution to my problem. Maybe I'm not being creative enough with my keywords. Anyway, here it is...

We allow our users to post links in our forums. However, there may be the odd site that we don't want advertised. How can this URL be replaced automatically when a user posts?

I have tried using the "Word Censoring Options" in Admin Panel but this doesn't seem to work on links.

Any help would be greatly appreciated, thank you!

2
Runeher
Re: How to censor links in CBB forum?
  • 2008/6/5 10:07

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


You should use your moderating skills for this... after all it's your site and you rule!!

Having a lot of links to non-relevant sites aren't very good for any site... I don't know what you mean by 'odd' sites, but be careful not to link to any sites with ie. illegal stuff as it will be damaging for your site when it comes to seo...

3
avtx30
Re: How to censor links in CBB forum?
  • 2008/6/5 11:18

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


You are going to need the 'Preload' feature of future xoops. With preload you can filter any patterns before they reach the database.

For example I am using a preload to replace this pattern:
[youtube id=YOUTUBE_ID]


or this pattern:
http://www.youtube.com/watch?v=YOUTUBE_ID


with:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/YOUTUBE_ID"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/YOUTUBE_ID" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>


then save to database.

This way you can replace matched URLs with yours.

Ref. here is the preload (though it does not work for XOOPS I want to show you the mechanism):

http://www.nhatban.net/tmp/Youtube_BB.class.txt
Xoops Demos:
http://www.nhatban.net/info/a0021.html

4
zuluDROOG
Re: How to censor links in CBB forum?
  • 2008/6/29 3:37

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Thanks guys, I'll look into Preload right now. We do moderate the site heavily but we can't always be there 24/7 - despite having appointed 2 other moderators in our absence.

Login

Who's Online

157 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits