Author |
Message |
manoe
Client

Joined: Aug 14, 2005
Posts: 151
|
Posted:
Thu Aug 28, 2008 9:32 pm |
|
ok here it goes.
http://awolgamers.com/modules.php?name=Downloads
I would like to take that downloads page and remove the downloads block. It will be a single column of web cam feeds.
What I need some guidance with is actually editing the downloads page to accomodate the center blocks. When I go into the admin section and hit Blocks all of the listed blocks are for the homepage.
I guess what I am asking is if there is a way to make a block that I create there appear in the Downloads page? |
|
|
|
 |
manoe

|
Posted:
Thu Aug 28, 2008 10:26 pm |
|
Ok, I added a module that should work for displaying the HTML that I had. I added the new link to the module which is AWOL_TV and I get the error below.. I would have thought it would have simply loaded the HTML into the center area on a new page.
Code:Fatal error: Cannot redeclare get_lang() (previously declared in /home2/awolgame/public_html/mainfile.php:371) in /home2/awolgame/public_html/mainfile.php on line 390
|
|
|
|
|
 |
manoe

|
Posted:
Thu Aug 28, 2008 10:33 pm |
|
Ok, here is the actual code for the Module I downloaded from Clan-Themes. I have never had an issue with anything from them before.
I am betting this is a simple fix.. I just cannot figure it out. This is the module I am linking to and I get the error listed in the post above.
Code:
<?php
/********************************************************/
/* Add HTML Script 1.1 for PhP-Nuke 6.0 */
/* By: Simonaut (webmaster@simonaut.com) */
/* http://www.simonaut.com */
/* Copyright © 2003 by Simonaut */
/* */
/********************************************************/
// If you would like to Display the Right Side Bar $index = 1;
// Or if you would not want to Display the Right Side Bar it must be $index = 0;
if (!isset($mainfile)) { include("mainfile.php"); }
$index = 1;
include("header.php");
OpenTable();
?>
/*Place your HTML code here*/
<?php
CloseTable();
include("footer.php");
?>
|
|
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Fri Aug 29, 2008 2:11 am |
|
That code is old. You should look at one of the existing modules to get the right code. I am assuming you are running RN. |
|
|
|
 |
manoe

|
Posted:
Fri Aug 29, 2008 6:42 am |
|
Yes I am running RN.
The code is quite different. Here is the new code. At least I am not getting the error now but the page is all jacked up...
Code:<?php
/********************************************************/
/* Add HTML Script 1.1 for PhP-Nuke 6.0 */
/* By: Simonaut (webmaster@simonaut.com) */
/* http://www.simonaut.com */
/* Copyright © 2003 by Simonaut */
/* */
/********************************************************/
// If you would like to Display the Right Side Bar $index = 1;
// Or if you would not want to Display the Right Side Bar it must be $index = 0;
if (!defined('MODULE_FILE')) {
die('You can\'t access this file directly...');
}
require_once('mainfile.php');
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = '- ' . $module_name;
if (!isset($page)) {
$page = '';
}
if (!isset($pa)) {
$pa = '';
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="320" id="utv990834"><param name="flashvars" value="autoplay=false&brand=embed"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://www.ustream.tv/flash/live/279579"/><embed flashvars="autoplay=false&brand=embed" width="400" height="320" allowfullscreen="true" allowscriptaccess="always" id="utv990834" name="utv_n_949578" src="http://www.ustream.tv/flash/live/279579" type="application/x-shockwave-flash" /></object><a href="http://www.ustream.tv/" style="padding:2px 0px 4px;width:400px;background:#FFFFFF;display:block;color:#000000;font-weight:normal;font-size:10px;text-decoration:underline;text-align:center;" target="_blank">Free TV Show from Ustream</a>
<?php
echo '<p align="center">' . _GOBACK . '</p>';
CloseTable();
include_once('footer.php');
}
?>
|
|
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Fri Aug 29, 2008 8:20 am |
|
You aren't including header.php or calling OpenTable() to match what you did at the bottom of your file. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
manoe

|
Posted:
Fri Aug 29, 2008 12:15 pm |
|
Yeah after looking at other Module files I know its something to do with that.. I really am not good with PHP code when it come to writing... I will mess around with another Module file and try to get it to work
almost there! Thanks for your help again people! |
|
|
|
 |
Gremmie

|
Posted:
Fri Aug 29, 2008 1:37 pm |
|
You could use the content module for that purpose also. If you are using RN with the WYSIWYG editor, just put it in "source" mode and paste in your HTML. |
|
|
|
 |
manoe

|
Posted:
Fri Aug 29, 2008 2:17 pm |
|
awesome! Thanks for that Gremmie! |
|
|
|
 |
manoe

|
Posted:
Fri Aug 29, 2008 2:44 pm |
|
Content requires a block..
http://awolgamers.com/modules.php?name=Content
I wanted the navigation link at awolgamers.com to AWOL TV to open a page with the live feeds in it.. How do I link to a page with the theme on it and the center content just those feeds?
I thought that if I linked to the link above it would display the HTML code I have but it links to an admin page.. I dont want this stuff on the homepage of the site..
hmm.. unless I am missing something obvious here. |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri Aug 29, 2008 2:54 pm |
|
Modified from your earlier code page (copyrights only removed to save space).
Code:
<?php
if (!defined('MODULE_FILE')) {
die('You can\'t access this file directly...');
}
require_once('mainfile.php');
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = '- ' . $module_name;
if (!isset($page)) {
$page = '';
}
if (!isset($pa)) {
$pa = '';
require_once('header.php');
OpenTable();
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="320" id="utv990834"><param name="flashvars" value="autoplay=false&brand=embed"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://www.ustream.tv/flash/live/279579"/><embed flashvars="autoplay=false&brand=embed" width="400" height="320" allowfullscreen="true" allowscriptaccess="always" id="utv990834" name="utv_n_949578" src="http://www.ustream.tv/flash/live/279579" type="application/x-shockwave-flash" /></object><a href="http://www.ustream.tv/" style="padding:2px 0px 4px;width:400px;background:#FFFFFF;display:block;color:#000000;font-weight:normal;font-size:10px;text-decoration:underline;text-align:center;" target="_blank">Free TV Show from Ustream</a>
<?php
echo '<p align="center">' . _GOBACK . '</p>';
CloseTable();
include_once('footer.php');
}
?>
|
|
|
|
|
 |
Gremmie

|
Posted:
Fri Aug 29, 2008 3:19 pm |
|
Content does not require a block. Simply add a link to your new content page somewhere. I do this all the time. I add links to my main navigation block to content pages. |
|
|
|
 |
|