Opening RSS in new window

I'd appreciate some help and assistance re RSS.
I've been working on some web pages and would like to add an
RSS feed to them.
I've decided to use a service called 'feeddigest.com
(www.feedigest.com/). They offer five free feeds and that's more
than enough for me. The display is converted to php which, I
understand, lets the search engine read it.
The code that they supply comes in the following format.
<?php
include ("
http://app.feeddigest.com/digest3/feed-name.html");
?>
So far so good. The code works fantastic, I get a selected
number of headers and small snippets. My problem is that when my
visitor clicks on one of the links they are taken away from my site
and into another, so the questis is: how can I have the link open
in a new window?
The 'target' box goes blank so I can't use target="blank
after it as I would with html.
I've been told that a major part of the problem is that
Feeddigest are actually creating the HTML at their end and sending
it to me in one big block. I've also been given the following code
to try:
<?php
ob_start&#40;&#41;;
include
&#40;"http&#58;//app.feeddigest.com/digest3/feed-name.html"&#41;;
$FeedContents = ob_get_contents&#40;&#41;;
ob_end_clean&#40;&#41;;
$FeedContents = str_replace&#40;'<a href=', "<a
target=_blank href=', $FeedContents&#41;;
print $FeedContents;
?>
Which I have to be honest and say means little to me.
Anyway when I try the code I get the following error message:
Parse error: parse error, unexpected '&' in
/web/sites/267/kah22/www.kevinhart.f2s.com/index.php on line 186
Line 186 is: "include
&#40;"http&#58;//app.feeddigest.com/digest3/RDHGXLAHXG.html"&#41;;
It's a bit of a detailed question, I know, but any advice or
help would be appreciated.
Many thanks
Kevin Hart

On Mon, 8 May 2006 06:53:15 +0000 (UTC), "desperate kate"
<[email protected]> wrote:
> Parse error: parse error, unexpected '&' in
>/web/sites/267/kah22/www.kevinhart.f2s.com/index.php on
line 186
The code is a bit mangled:
<?php
ob_start();
include ("
http://app.feeddigest.com/digest3/feed-name.html");
$FeedContents = ob_get_contents();
ob_end_clean();
$FeedContents = str_replace('<a href=', '<a
target=_blank href=',
$FeedContents);
print $FeedContents;
?>
Gary

Similar Messages

  • How do I make all links open in a new window?

    I have some RSS feeds on my website.  If you click one of their headlines it takes you to that source to read the story.  Is there a way to make all hyper links on a webpage open in a new window?  If not, is there a way to make the individual links open in a new window?  The website is http://www.businessfixer.net/articles

    Mark,
    Target: e.g. <a href=”#” target=”_blank”> is deprecated (outdated) code.  Strict doc types will not pass validation.
    OP,
    Most people know how to use their browsers BACK button to return to a site.  Or better yet, right click on links to open them inside new tabs or windows.  This should almost always be a user's decision and not a web designer's decision.
    If you have all links open in new windows/tabs, In no time at all, user's browser will be stuffed with them which is ugly and can diminish browser performance.
    If you need to open a new window on SELECT links, use the Behaviors Panel, press the Plus sign (+) and select Open Browser Window.  Repeat this for all links you want opened in new windows.
    For further details see the following tutorial -
    http://cbtcafe.com/dreamweaver/popup_image/index.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • When clicking on links that open in a new window, the links don't open and Firefox freezes in a way. I can navigate the page I am on but cannot click to open a new tab or bookmark.

    When navigating the internet, if I come across a web page that has a link to open a picture or program in a new window, if I click on it, it does not open. Firefox immediately looses functionality in that I cannot open a new tab with the mouse wheel, right click to open a new tab, or use my bookmarks in either the drop down or toolbar to navigate away. I can usually still navigate the page that I am on, for example, (https://loanconsolidation.ed.gov/AppEntry/apply-online/appindex.jsp), when it freezes I cannot click on any of the content at the center of the page but I can still use the links from the list on the far left. For an example of the pictures, (http://www.insect-sale.com/), if you click on "New Arrivals" at the top of the page it takes you to a list of products that can only be viewed by clicking on them. Usually a picture of the item would open in a small window but it does not and Firefox freezes. This has also happen when I try a view a degree audit on a school's website where a program would usually open in a new window. The only thing I have been able to find that still functions properly when this happens is the home page button. I can click on it or use the wheel to open it in a tab just fine, but if I try and go anywhere else I cannot. The only way I can get Firefox back to normal is to use the Task Manager and end the process. Another thing I have noticed, that may or may not be related; is that my Norton Internet Security toolbar, that should show up below the bookmarks toolbar and above the tabs, only shows up about 1 out of every 10 times I open Firefox. Some days it doesn't show up at all. If it does show up and I log into Identity Safe, the autofill for the programed website works, even if the toolbar doesn't show up the next time I open Firefox.

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • When I open a new link or bookmark I want it to open in a new window not a slew of tabs so I can see which sites I have open.

    I'm sorry if I'm not using the correct terminology. When I open a new window or a link I want it to open a whole new window so I have 500 open FireFox tabs in my taskbar if I open that many windows. I do not like having everything open in one window. Used to be I could find how to undo that but you changed everything on me and now only rocket scientists can use your application. If Chrome and Internet Explorer weren't so ridiculous, I would change. Thank you for any assistance you can provide.

    This didn't help me at all. I want a separate window to open each time I open a new tab or bookmark. Currently when I open a new link it just adds a tab to the window already open so from my non-technie point of view, I only have one window open and have to go up top to see what is open vs. being able to look below in my taskbar and see what I have open.

  • Target for a .pdf  with the link target _blank does not open in a new window.

    I have a simple html document with links to .pdf documents all set to _blank but only one opens in a new window.  The others open as _self.  Changing the target doesn't seem to make a difference.
    Any idea as to why that is happening?

    The Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
    It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
    SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
    PHP's version: http://www.tizag.com/phpT/include.php
    It's especially handy if your site gets to the point where you have more than about 20 pages.

  • Creating a link in a PDF form to open into a new window

    I have created the PDF form and every thing seems to be working fine. But I would like to set a link in the form that would open into a separate page. I have tried target="_blank" and onclick="window.open(this.href, 'child', 'scrollbars,width=650,height=600'); return false" with no success. Can someone give me some direction on how to create a link within a PDF form that will open into a new window?

    Try this, using JavaScript:
    app.launchURL("http://www.adobe.com",true);

  • How to open page in new window while handling event on link.

    Hi all
    I have a requirement where page should be opened in new window when I click on link.My item style is 'link'.Despite of mentioning target frame _blank, I m not able to open it in new window.I m handling event by setting Action Type as fireAction.I hope this might be the reason because of that this happened. Can somebody suggest some solution so that I can open it in new window.
    Thanks,
    Bhupendra

    Hi ,
    though i am not able to answer, i can get some answer for my question.
    How the link item is handled thru the ActionType and event in the Client Action..?
    The reason for this question is that we are trying to extend the customer search page in AR - EBSR12. there the search result page has the Account Name as a link and the Action event says viewAccountName and the action type says firePartialAction. I am trying to understand this so that i can add more parameters to the link so that i can use them in the target page of the link..
    Any help is appreciated..
    Thanks
    Chidam

  • When I click on a web link and hold down ctrl the page will not open into a new tab, it is just opening in a new window. How do I correct this?

    When I use to hold down the ctrl key and left click on a web link, the page use to open into a new tab. For some reason this is not working anymore. Instead when I hold down the ctrl key and left click on a web link, the link will open into a new window. How do I fix this?

    I figured out how to correct it. Not sure what exactly was happening. But I started into private browsing and then turned it off. It's been working correctly ever since I did private browsing.

  • When I right-click a link, and choose "Open in new tab", it opens in a new window instead. How can I fix this?

    So I have Firefox open, and I've tried to open tabs by right clicking and choosing "open in new tabs", but it opens in a new window instead. And yes, there are no problems with being able to open new tabs by pressing the ctrl t.

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • How can I make a specific page open in a new window when clicked from a menu?

    Don't know if its possible but I have one specific page I want to open in a new window in the browswer when clicked on from a widget menu.  I know how to go in and put the coding in but it would be nice if there is some option in Muse to do that already.  Any suggestions? Thanks for any help.

    ryanj4799 You'll need to change the Menu Type to Manual in the widget's options and add the links yourself. Then go to the Hyperlinks panel. Check the option to open in a new tab/window.
    David

  • How can I set web links to open in a new window?

    I'm using the links tool in Acrobat 5.05 to create links in my pdf to other websites, not documents. When the pdf is posted online, I need those links to open in a new window. Now they open in the same window, which subjects the viewer to using the back button to return to the originating pdf and waiting for it to completely reload. This is a sizeable pdf file, making that very time consuming. I tried Un-checking the option about "Open Cross Document Links in Same Window" but tests indicated that it made no difference.
    If you need more info to clarify my question, please just ask. Any suggestions in regard to solving this will be appreciated.
    My apologies if a similar question has already been asked/answered. I did not find reference to it in my search.
    Thank you.

    You can use JavaScript for this. For example:
    app.launchURL("http://www.adobe.com", true);
    More information is in the Acrobat JavaScript reference. Note that this method is new to Acrobat 7. You can still use Acrobat 5 to create the JavaScript, but it won't work for versions less than 7, or for most users of non-Adobe PDF viewers. If you go this route, you should add some code that checks the version of Acrobat (Reader), and only execute the above code if 7 or above.

  • Links to files doesn't open in a new window

    I've noticed that links (that refers to a specific file) created in Adobe Indesign doesn't open in a new window like the links that refers to a website when I autoconverts it in Acrobat Pro X.
    Example:
    LINK1: http://www.acrobat.com/testfile.pdf <--- does not open in a new window when clicked
    LINK2: http://www.acrobat.com/testfolder <--- opens in a new window when clicked
    Are there any way to fix this?
    Will the same problem occur if I create the links in Acrobat instead?
    I'm asking this because I don't want the form to disappear when the links are clicked.
    Best,
    Mikey

    Firefox should divert the new window to a new tab when you check this box in Google's Search Settings:
    "Open search results in a new browser window"
    I can't think of any reason for Firefox to divert a new window back into ''the same tab''.
    In case one of your add-ons is the culprit, could you try Firefox's Safe Mode?
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox using Help>Restart with Add-ons Disabled. Don't check any of the boxes in the [https://support.mozilla.com/kb/Safe+Mode Safe Mode] dialog, just Continue in Safe Mode.
    Does it make any difference?

  • When I try to open a link (which would automatically open in a new window), for example a larger image, or a link etc, it opens but will not load. It either refuses to load or, in the case of an image, says 'stopped'.

    As I say, since I updated to 3.6.15 I am unable to open links off a webpage that should open in a new window, or even open enlarged photographs in a separate window. Either, in the case of the latter, I get the message "stopped" in the bottom of the browser window, or in the former case it either appears to begin to load the new page but then stalls. Sometimes I don't even get this, but end up with "(Untitled)" appearing in the tab label.
    As you can imagine, this is causing a great deal of problems and I am keen to sort it out asap.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • When I click on any Bookmark, how do I set it to open in a new window by default?

    Right clicking an icon in the Bookmarks Toolbar provides a drop down menu. That menu has "Open" as the Default and "Open in a New Window" as the second choice. I'd like to make "Open in a New Window" the Default. In other words, I'd like to be able to click on a Bookmark icon and open a new window. Is there a line in 'about:config' that I can change to accomplish this?

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

Maybe you are looking for

  • Battery Life on MacBook Pro Retina 15" purchased 1 week ago

    Hello Dear Community, About a month ago I purchased a MacBook Pro Retina 15" and after 1 week I noticed the battery was lasting for about 2-3 hours of web-browsing. It turned out the battery was defective and Apple sent me a new one. 4 days ago I rec

  • Withholding tax-payment posting

    Dear all I am getting an error in which with holding tax calculation for payment posting is not calculated when we enter the invoice f-43. But it shows withholding tax is activated when i enter an invoice. What should i do? Another error which I am g

  • TS4027 Has anyone been able to successfully rewire Reason 6.5 into Mainstage 2.2? Please help

    Hello, I've recently purchased Mainstage 2.2, and Reason 6.5 on a MacBook Pro with 10.7.4 and 8gigs of RAM.  I can't seem to get Reason to talk to mainstage via ReWire.  I've tried running both apps as 32 and 64 bit, and of course I launch Mainstage

  • RT ocasional error

    Hi evry! Sometimes, a kind of a strange RT system behaviour appears: while working it spits out the following: Rebooting system due to exception 0xC0000005 Error: disk cache flush thread failed to shut down ...and nothing happens, except every RT act

  • Quiz maker!!

    Hi, I'm currently in the process of creating an online quiz for students as a revision aid. I have started programming using NLP and using tokenisers in order to recognize the form of question! and have been able to make a question. I now need some h