Author |
Message |
howard
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 23, 2006
Posts: 32
|
Posted:
Wed Dec 13, 2006 2:54 pm |
|
Hello to all!
I've spent a fair bit of time trying to figure this out and I'm stuck. Here is what I'm trying to do:
I have a set of pages that I've written in html that I'm incorporating into my modules using Chris Karakas' instructions.
I call up each html file using an index.php file...the code for is below.
Code:<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* PHP-Nuke-HOWTO module for <application>PHP-Nuke</application> */
/* */
/* Copyright (c) 2003 index.php */
/* by Chris Karakas */
/* http://www.karakas-online.de */
/* */
/* See licence.html for the Licence of the other files */
/* distributed together with this index.php file. */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the <acronym>GNU</acronym> General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 0; // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
// We initialize the array, to avoid attacks based on poisoning the
// <acronym>PHP</acronym> global variable space. Thanks to waraxe for pointing this out!
// See http://www.waraxe.us
//
$ACCEPT_FILE = array();
$ACCEPT_FILE['0'] = 'menu.html';
$ACCEPT_FILE['1'] = 'colt1911.html';
$ACCEPT_FILE['2'] = 'm1carbine.html';
$ACCEPT_FILE['3'] = 'm1garand.html';
$ACCEPT_FILE['4'] = 'thompson.html';
$ACCEPT_FILE['5'] = 'bar.html';
$ACCEPT_FILE['6'] = 'springfield03.html';
$ACCEPT_FILE['7'] = 'm1919.html';
OpenTable();
$php_ver = phpversion();
$php_ver = explode(".", $php_ver);
$phpver = "$php_ver[0]$php_ver[1]";
if ($phpver >= 41) {
$page = $_GET['page'];
} else {
$page = $HTTP_GET_VARS['page'];
}
$pagename = $ACCEPT_FILE[$page];
if (!isSet($pagename)) $pagename = "menu.html"; // default file
include("modules/Weapons/$pagename");
CloseTable();
include("footer.php");
?>
|
Now, In one of the files, my m1garand.html file, I've got a flash movie I'd like to embed of somebody firing an m1 garand. I keep trying different ways of getting ti to work, and I keep getting a white block where the flash file should be, but when I right click the box it says "movie not loaded"
Here is the code for the m1garand.html file.
Code:<scr~ipt src="scr~ipts/AC_RunActiveContent.js" type="text/javascr~ipt"></scr~ipt>
<td align="left"><b><obj~ect classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="320" height="275"><param name="movie" value="garandslow.swf"><param name=quality value=high><PARAM NAME=loop VALUE=true><embed src="flash.swf" width="320" height="275" loop=true quality=highpluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></emb~ed>
</obj~ect>
|
Can anybody give me a tip on how tog et this flash to display?
Thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Wed Dec 13, 2006 3:19 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Wed Dec 13, 2006 3:20 pm |
|
flash is usualy a path problem howard...
make sure you have the path corect set to the module...
and with path i mean... /modules/your_mod/ |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
floppydrivez
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/d861f25a45009755975f0.gif)
Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi
|
Posted:
Wed Dec 13, 2006 3:22 pm |
|
Nice I have never seen this approach to post code
Thats one way to get it done. |
_________________ Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
howard
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 3:30 pm |
|
Thanks evaders and hitwalker...path was right...I never thought to add /modules/Weapons to it. Ya'll rock!
@floppydrivez--it wouldn't let me post unless I broke up some of that scripting. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
floppydrivez
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 3:32 pm |
|
Yeah, I just never seen anyone take that approach.
Can I see your flash video? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
howard
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 3:53 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
Former Moderator in Good Standing
![](modules/Forums/images/avatars/0cd76dcf45da5de2cf864.jpg)
Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Wed Dec 13, 2006 3:57 pm |
|
(Nevermind - how do you delete posts?) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
howard
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 3:59 pm |
|
::shrug:: It wouldn't let me post, I had an error msg, I put a ~ in the word script like it suggested and it let me post. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
howard
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Dec 13, 2006 3:59 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
howard
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Dec 14, 2006 11:38 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|