View Full Version : RSS/XML Experts Please Advise...

02-23-2007, 04:51 AM
1) RSS Display Boxes (Example 2)

2) http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm


On my test website, http://www.ultimatesportsbets.com/Beta083D.htm, I have integrated the rss display box script from dynamic drive...

The problem is, when someone clicks on one of the news topic links displayed in the feed, it opens a new page in the same window... I would like to know if it is possible to open the links in a new window, but what I would prefer is that they open in a new page on my server in an iframe.

This may not be the best solution but from my knowledge this is the best way I can come up with without forcing visitors out of my website if they want to read a news article....

If anyone could provide me with some input on the situations described above I would really appreciate it...



02-28-2007, 01:53 PM
The PHP code, when entering the name or names of the websites that display the RSS, is in the following format:


To open the links in a new window, normally, I could set the target tag to "_blank" but in this case it is a bit strange as tags are not exactly applicable. I am Semi new to using PHP and if anyone has a tip on how to do this I would really appreciate his/her input.

Thank you,


02-28-2007, 04:10 PM
What I would try is setting the base target on the page to the name of the iframe, or to _blank for a new window (goes in the head just after the title and any meta tags):

<base target="_blank">

This requires that you set the target for other links on the page, if you don't want them opening in the base target, ex:

<a href="index.php" target="_self">Home</a>

for a typical link to a home page opening in the same window.