• Resolved benau

    (@benau)


    Is there a simple way to get a WordPress page to display the contents of a file hosted on another server instead of itself?

    I developed my site (www.ecsa.edu.au) with MamboServer which has a wrapper function for external pages. In Mambo I can click the link to ‘ECSA E-list’ and using this wrapper function to have and external page (https://listserver.flinders.edu.au/mailman/listinfo/ecsa)
    load instead.

    I’ve tried all sorts of plugins and to customise template files to no avail.

    Many thanks,

    Ben

Viewing 9 replies - 1 through 9 (of 9 total)
  • Sounds like this plugin would be what you’re after:

    http://www.redalt.com/downloads/#redirectify

    Unless I’m misunderstanding the request…

    Thread Starter benau

    (@benau)

    Kafkaesqui – thanks for your swift response. On your advice I have just now installed and got working the redirectify plugin. However, this plugin simply redirects the browser to another URL rather than loading content inplace of the post. Any other thoughts much appreciated.

    See how I have achieved this with MamboServer here:
    http://www.ecsa.edu.au/index.php?option=com_wrapper&Itemid=37

    Ben

    Thread Starter benau

    (@benau)

    OK…I just tried creating a template file called elist.php based on archives.php in the WP 2.0 default theme. My code looks like this:

    <?php
    /*
    Template Name: Elist
    */
    ?>

    <?php get_header(); ?>

    <div id=”content” class=”widecolumn”>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <h2>ECSA E-list</h2>

    <?php include (‘https://listserver.flinders.edu.au/mailman/listinfo/ecsa&#8217;); ?>

    </div>

    <?php get_footer(); ?>

    I created a new page, gave it a title and simply set its template to E-list.

    What I get, however, is a busted junky result:

    http://www.ecsa.edu.au/ethicaltheory/?page_id=14

    The error message is:

    Warning: main(): SSL: fatal protocol error in https://listserver.flinders.edu.au/mailman/listinfo/ecsa on line

    I feel your pain, I’ve been looking for something like this for dynamic content and never found anything. I come from CPGNuke and e107 each with had a wrapper type plugin that allow me to do this easy.

    If you have static content things like StaticJack, EZStatic, PageLinksTo, SafeInlcudes, etc… work fine. But for anything that has some dynamic element you’re hosed after the first page.

    Thread Starter benau

    (@benau)

    I have solved this problem thanks to the superlative online citizen Ronald Heft (http://cavemonkey50.com/aboutme/). I simply used an i-frame in my post. On closer investigation, Mambo Server uses i-frames as well. In my post (and with only the WP native post editing tools on – editormonkey messes with code as far as I can see) I used this code:

    <iframe width="100%" scrolling="no" height="1500" frameborder="0" src="https://listserver.flinders.edu.au/mailman/listinfo/ecsa"> </iframe>

    iframes suck. theyre depreciated, and are easily misued

    <cents value=”02″>
    the above stolen from Kafkaesqui.

    Thread Starter benau

    (@benau)

    Thanks whooami. I’m just new to this, but I understand that although I-frames won’t exist in future versions of HTML, it exists in the current specs, so that means it’s safe to use?

    Any suggestions on how to achieve the task I have without I-frames?

    Cheers,

    B

    no I know.. Im just muttering really. It safe to use, sure. I just dont like em 🙁

    you can make that error go away by not using the ssl connection, drop the http(s), just use http://

    (the url still works)

    <?php
    $blah = file_get_contents("http://listserver.flinders.edu.au/mailman/listinfo/ecsa");
    echo $blah;
    ?>

    works fine for me here, the php include should as well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Inline Page Wrapper Functionality’ is closed to new replies.