WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Iframe in sidebar, displaying a html converted rss feed (4 posts)

  1. flammobammo
    Member
    Posted 9 years ago #

    Hi,

    I have an RSS feed for a wishlist on a shopping site, and I have downloaded a PHP script to convert the RSS feed into a html file via a html template.

    I sincerely hope this makes sense!

    If you take a look at my site:
    http://tombammann.homedns.org/

    You will notice my 'Thinkgeek wishlist' at the bottom of the sidebar doesn't display in correct formatting.

    This is the line in sidebar.php:

    <iframe div="sidebar" marginwidth="0" marginheight="0" width="190" height="600" border="0" frameborder="0" style="border:none" scrolling="no" src="http://tombammann.homedns.org/journal/rss/rss2html.php?XMLFILE=http://www.thinkgeek.com/xml/app/wishlist/id/81d05b9ef&TEMPLATE=http://tombammann.homedns.org/journal/rss/thinkgeek.html&MAXITEMS=10"></iframe>

    and this is the template file that is being displayed in the iframe:

    <HTML>
    <HEAD>
    <LINK href="http://tombammann.homedns.org/journal/wp-content/themes/random-image/style.css" rel="stylesheet" type="text/css" id="sidebar">
    <TITLE>~~~FeedTitle~~~</TITLE>
    </HEAD>

    <BODY style="background: transparent">

    <H3 align='left'>~~~FeedTitle~~~</H3>
    <p align='left'>~~~BeginItemsRecord~~~

    • <A href="~~~ItemLink~~~" target="_blank">~~~ItemTitle~~~</A>

    ~~~ItemDescription~~~
    ~~~EndItemsRecord~~~
    </BODY>
    </HTML>

    Basically, I just want it to display like the rest of the sidebar, and in the file above (the one displayed in the iframe) I seem to have linked it to the style.css file of the theme okay, but I don't understand how to get the correct formatting out.

    i.e. the bullets ">>" and the "left" align and the fact that the iframe is slightly to the right. Also, the word of the day iframe at the top is slightly to the right as well, can anyone recommend how to adjust this as well?

    I hope I've given more information than neccessary, to minimise wasting your time :P

    I really appreciate your help - please, sign my guestbook whilst you visit! :-D

    Thanks in advance,
    Tom

  2. flammobammo
    Member
    Posted 9 years ago #

    Well, I seem to have fixed the problem using a different RSS script.
    However, I would still be interested to see if anyone has any hints or tips on how to align my "Thinkgeek Wishlist" to be eXACTLY in line with the rest of the sidebar material :)

    Also another challenge for all you wizards, is to suggest an idea of how to align the "Word of the day" - this one isn't an RSS feed, it's via this command in the sidebar template:

    <script type="text/javascript" src="http://dictionary.reference.com/wordoftheday/wotd.js"></script>

  3. Michael Bishop

    Posted 9 years ago #

    I'm confused why you had to do an iframe. I did this on a page, rather than in the sidebar, but it would work the same. I used the the phpExec plugin and the RSS Fetched LinkedList plugin and pulled an rss feed from my scuttle (my own personal delicious type link manager), see example Here
    The same concept would work in a sidebar. I actually think the rss plugin has a quicktag and doesn't need the php Exec, but since i already had it installed, I used the php call.
    As far as positioning, the iframe may be the culprit. the rss feed plugin by default creates <li>,</li> around each feed item, and I simply added the < ul > < /ul > in the page.
    I'd suggest checking it out.
    As far as the word of the day, try wrapping that in a < p > tag, that may align things better.

  4. flammobammo
    Member
    Posted 9 years ago #

    Cheers miklb - the tag worked a treat, as did doing a and

      for the RSS plugin i'm using (not the same as yours). Good luck getting out of the hospitality, but by the looks of your web page, I don't think you'll need any luck :P

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.