Fork me on GitHub

Adding my webcam  Bottom

  • I've been looking through the various discussions on adding my webcam and haven’t found anything suited for my needs. I have the HTML code I was using before I started with PN, and I wanted to add a side link to add an integrated HTML document containing the webcam. I just can’t figure out how to do it. I started by adding an HTML block, but that puts it on the front page and that's not where I want it. I'm not very experienced with PN so please forgive my ignorance! Thanks!!!
  • Make a folder called WebCam or whatever you wish in the modules directory, then create a .php file inside that called index.php

    Then use this code

    Code

    <?php
    include("header.php");

    include("modules/WebChat/FILESOURCE.html");

    include("footer.php");
    ?>


    and change the file name and the module name to suit your needs.
  • Ah, well I tried that one and it didnt owrk for me. I did try this one however and it works great!

    Code

    <?php
    //
    // Blank page where you can include some HTML or a little PHP script
    //
    // initialize the PostNuke environment
    include 'includes/pnAPI.php';
    pnInit();

    // include the header
    include("header.php");
    // open a table for your content
    OpenTable();
    ?>

    Your HTML or PHP script comes here ...
    <p>
    Note : you could also use an HTML block for this. And if you want something more advanced, you really should have a look at modules like ContentExpress and EZ CMS.

    <?php
    // close the table
    CloseTable();
    // include the footer
    include("footer.php");
    // seems to be missing in older versions
    if (function_exists('session_write_close')) {
    session_write_close();
    }
    ?>

This list is based on users active over the last 60 minutes.