TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 206
  • Total: 206

RSS block does not censor words?

Started by sanax, January 27, 2007, 04:59:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanax

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?

JPDeni

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.

sanax

Thanks Deni, works great! Maybe keep this in mind in future versions?

This website is proudly hosted on Crocweb Cloud Website Hosting.