BBC in Topic subject?

Started by chinclub, February 18, 2010, 08:48:04 PM

Previous topic - Next topic

chinclub

I have seen many forums that are set to change key words in posts to links to those products for sale.  I was thinking an easy way to set this up would be to use the censored words settings to change certain words to links.  It seemed like the perfect solution until I realized that BBC is not supported in topic subjects.  Does anyone know how to modify SMF to recognize BBC in subject lines or know of a mod that does what I am trying to do?  I have looked through the mods section but couldn't find anything.  I am using SMF 1.1.10

Thanks!

MrPhil

I'm sure it could be done without too much trouble, to call parse_bbc() after calling the censored words function. The problem is, though, that this would open up all topic subjects to user BBCode usage. They could really make your forum a mess by changing text size or inserting a table, for instance. Also, topic subject lines are frequently displayed as links themselves -- what happens when you insert a link within text that is already a link? I think your browser may barf on that. To do a proper job, you would have to limit the turning of words into links to places where the topic subject line is displayed as plain text, or else stop displaying the entire line as a link anywhere (just add an icon to link on). I would not implement it in BBCode, but use a Censored Words-like function to directly insert HTML links into the text. That way you would not call parse_bbc() and users could not sneak BBCode into their topic subjects.

Advertisement: