PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Thu Aug 28, 2008 9:32 pm Reply with quote Back to top

ok here it goes.
Only registered users can see links on this board!
Get registered or login to the forums!


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?
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Thu Aug 28, 2008 10:26 pm Reply with quote Back to top

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
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Thu Aug 28, 2008 10:33 pm Reply with quote Back to top

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");
?>
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1839
Location: United Kingdom

PostPosted: Fri Aug 29, 2008 2:11 am Reply with quote Back to top

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.
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Fri Aug 29, 2008 6:42 am Reply with quote Back to top

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&amp;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&amp;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');
}
?>
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Fri Aug 29, 2008 8:20 am Reply with quote Back to top

You aren't including header.php or calling OpenTable() to match what you did at the bottom of your file.
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Fri Aug 29, 2008 12:15 pm Reply with quote Back to top

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 Smile

almost there! Thanks for your help again people!
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Fri Aug 29, 2008 1:37 pm Reply with quote Back to top

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.
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Fri Aug 29, 2008 2:17 pm Reply with quote Back to top

awesome! Thanks for that Gremmie!
View user's profile Send private message
manoe
Client


Joined: Aug 14, 2005
Posts: 136

PostPosted: Fri Aug 29, 2008 2:44 pm Reply with quote Back to top

Content requires a block..
Only registered users can see links on this board!
Get registered or login to the forums!


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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4816

PostPosted: Fri Aug 29, 2008 2:54 pm Reply with quote Back to top

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&amp;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&amp;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');
}
?>
View user's profile Send private message Send e-mail Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Fri Aug 29, 2008 3:19 pm Reply with quote Back to top

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum