Hi I am trying to alter a RSS module for Joomla to give the name of the source of the item. right now the code for this operation is pasted below. however, i do not think this is the most efficient way to do this. is there a way that require less resources from the server? i may have 50 or so sources, not just the ones in the example.
[php]
<?php if (strpos($feed->itemLink, "espn") !== false) { echo "ESPN -"; } ?> <?php if (strpos($feed->itemLink, "cnn.com") !== false) { echo "CNN -"; } ?> <?php if (strpos($feed->itemLink, "sportsillustrated") !== false) { echo "Sports Illustrated -"; } ?> <?php if (strpos($feed->itemLink, "nbcsports") !== false) { echo "NBC -"; } ?> <?php if (strpos($feed->itemLink, "indystar.com") !== false) { echo "The Indianapolis Star -"; } ?> <?php if (strpos($feed->itemLink, "cbsnews.com") !== false) { echo "CBS -"; } ?> <?php if (strpos($feed->itemLink, "bloomberg.com") !== false) { echo "Bloomberg -"; } ?> <?php if (strpos($feed->itemLink, "youtube") !== false) { echo " YouTube -"; } ?> <?php if (strpos($feed->itemLink, "nytimes") !== false) { echo " The New York Times -"; } ?>[/php]