TinyPortal
Development => Support => Topic started by: sanax on January 27, 2007, 04:59:50 AM
I have a problem here. I found that the rss blocks don't censor words although the word is censored in the post itself. Any ideas on how to correct this?
I'm not sure if it would work, but you might try this...
In your theme directory, find or copy TPortalBlocks.template.php. That is, if TPortalBlocks.template.php isn't in your theme directory already, copy it from your default directory to your theme directory.
Look for function TPortal_rss() in TPortalBlocks.template.php
A couple of lines after that, change
echo '<div style="padding: 5px;" class="smalltext">' , TPparseRSS() , '</div>';
to
echo '<div style="padding: 5px;" class="smalltext">' , censorText(TPparseRSS()) , '</div>';
Seems like it would work, but I haven't worked with rss at all, so I can't be sure.
Thanks Deni, works great! Maybe keep this in mind in future versions?