1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Other than an Iframe what will work :)

Discussion in 'XenForo Development Discussions' started by Wuebit, May 13, 2011.

  1. Wuebit

    Wuebit Well-Known Member

    Am trying to add a php file into a template

    = new PDO('mysql:dbname=blah;host=localhost''blah''blah');

    foreach (
    $cdb->query("SELECT * FROM images ORDER BY posted DESC LIMIT 5") AS $img)
    '<div class="highlighted">
                    <a style="position: relative; display: block; height: 127px; width: 170px;" href="/booru/post/view/' 
    $img['id'] . '">

                        <img src="booru/_thumbs/' 
    $img['hash'] . ' " />

    With an Iframe I can't get an CSS to work :C unless am doing it wrong?

    Anyone any better ideas?
  2. ragtek

    ragtek Guest

    The Iframe have no access to the page where it's displayed, so you're not able to use the js & css from the page, where the iframe is placed without adding the ressources!
    Vodkaholic likes this.
  3. Wuebit

    Wuebit Well-Known Member

    Yea cheers dude I got it working in the end

  4. Can I ask what you used? I'm having the same conundrum!
  5. Wuebit

    Wuebit Well-Known Member

    Iframe lol :C
  6. Haha fair enough. It's easy =) Looks like I'll go that route too.
  7. Wuebit

    Wuebit Well-Known Member

    Abit late of a reply but I got it working in the end with jQuery.

Share This Page