Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- Guite responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 05:53 PM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Adding my webcam
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 16, 2005
- Posts: 36
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!!! -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 631
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. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 16, 2005
- Posts: 36
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();
}
?>
- Moderated by:
- Support
