Can anybody show me how to modify this php line to make it open in a new window: print ("\n<div class=\"itemtitle\"><h1><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></h1></div>");
Hope OK! print ("\n<div class=\"itemtitle\"><h1><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\" >" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></h1></div>");
Thanks guys, it works. But I also want to open links in the feed description a new window, not just the title. What should I modify? Here's the rest of the code: if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) { if (isset($rss_channel["ITEMS"][$i]["LINK"])) { print ("\n<div class=\"itemtitle\"><h1><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\"target=\"_blank\" >" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></h1></div>"); } else { print ("\n<div class=\"itemtitle\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</div>"); } print ("<div class=\"itemdescription\">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div><br />"); } } else { print ("<b>There are no articles in this feed.</b>"); } } ?>
Replace: $rss_channel["ITEMS"][$i]["DESCRIPTION"] PHP: With: str_replace('<a ', '<a target="_blank" ', $rss_channel["ITEMS"][$i]["DESCRIPTION"]) PHP:
Thanks for your help. Are you good with vbulletin? I just transfer my vb to a new server and its having error. I want to hire someone who's helpful as you and have experience installing vb + vb mods.