» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 78
0 members and 78 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Rimonabant - combat obesity and smoking at the same time
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on Need help with module development within the Purged Topics forums, part of the NM Staff category; I have a very weird problem in that when i create a module none of the outer blocks show up. ...



Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2002, 11:07 PM
Junior Member
 
Join Date: Nov 2002
Posts: 2
Need help with module development
I have a very weird problem in that when i create a module none of the outer blocks show
up. looking at the html src it never tries to render it.

I get this same problem when i create a simple HelloWorld module.

I guess im missing something big but since im new to php-nuke some advice would be
a big help

thanks

andy j
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-15-2002, 08:32 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Could you be more descriptive on the module or modules you are trying to install into PHP-Nuke?

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-15-2002, 10:08 AM
Junior Member
 
Join Date: Nov 2002
Posts: 2
I'm just trying to create a simple HelloWorld app.

so i have a dir under moduels "HelloWorld"

in there an index.php

the contents of index.php is simple text

HelloWorld!


Now I belive i have figured it out.

if i do an include("header.php");

and include("footer.php");

in the index everything works fine. Is this typical of module development?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-15-2002, 10:10 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by andyj
I'm just trying to create a simple HelloWorld app.

so i have a dir under moduels "HelloWorld"

in there an index.php

the contents of index.php is simple text

HelloWorld!


Now I belive i have figured it out.

if i do an include("header.php");

and include("footer.php");

in the index everything works fine. Is this typical of module development?
Yes it is. It will help to look at another modules index.php file for reference on what variables appear to be required.

mikrm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-23-2002, 05:41 PM
Junior Member
 
Join Date: Dec 2002
Location: Shreveport, LA
Posts: 1
You can further control WHICH blocks appear in your module by playing with the $index variable. For example, if you add this to your module:

Code:
$index = 0;
Only the left side blocks show up, leaving a wider screen for your module to occupy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-23-2002, 08:12 PM
Junior Member
 
Join Date: Dec 2002
Posts: 2
Example

Code:
if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);


include ("header.php");
	OpenTable();
	
	echo ("hello World");

	CloseTable();
include ("footer.php");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2003, 03:19 AM
Junior Member
 
Join Date: Dec 2002
Posts: 8
adding a working php script into nuke modules
I was hoping someone could help with this script?
I have this script working:
http://schmoobeedrew.servemp3.com/nu...castdetail.php
But I would like to have it inside my nuke site.

I have used this other thread to help me with inserting html or text to include a html page inside a php nuke module and that worked great for text!
http://www.nukeforums.com/forums/vie...13100&forum=42

now I'm trying to do the same with this php script "scastdetail.php"
I have made a module called Now_Playing and put all nessasary files inside to make the scastdetail.php work ok. but when I activate the module it just hangs up... browser takes forever to do anything just slowly creeps along for over 5 minutes but goies no where.

I name the file index.php and made these modifications to it
<?php
// so ppl dont access it directly. optional
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
// end optional

require_once("mainfile.php");
$index = 1; //0 : do not show right blocks - 1:show right blocks
include("header.php");

///scastdetail.php script

include ("config.php");
include ("scastxml.php");
echo"
<html>

<head>
<title>$title</title>
</head>
<META content=$refresh http-equiv=REFRESH>
<body text=$text bgcolor=$bgrnd link=$link vlink=$vlink alink=$alink>
<font size=$hdrtext face=arial>[b]<center></center></font>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=$tblhdr width=100%>
<tr>

</tr></font>
</table>
<table border=0 cellpadding=0 cellspacing=0 bgcolor=$tblhdr width=100%>
<tr>
<td width=100% bgcolor=$cell><font size=$hdrtext face=arial>[b]Currently Playing</td>
</tr>
<tr>
<td width=100% bgcolor=$tblhdr><font size=$bdytext face=arial>$song[0]</td>
</tr>";
// Note if you do not want the last 20 songs showing just comment out this echo statement with /*c-style*/ comments
echo"<tr>
<td width=100% bgcolor=$cell><font size=$hdrtext face=arial>[b]Past 10 Mix or Trax</td>
</tr>
<tr>
<td width=100% bgcolor=$tblhdr><font size=$bdytext face=arial>1.$song[1]
2.$song[2]
3.$song[3]
4.$song[4]
5.$song[5]
6.$song[6]
7.$song[7]
8.$song[8]
9.$song[9]
10.$song[10]</td>
</tr></font>
</table>";
// Detailed Stats
echo"




<tr>
</tr>
<tr>
</tr>
</table>

<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>

</tr>
<tr>
</tr> </font>
</table></a>";
//// end of scastdetail.php
include("footer.php");
?>

So I'm not sure what to do next as the script works outside nuke site but when I attemp to run it inside nuke, it doesn't open the new page.
http://schmoobeedrew.servemp3.com/nu...me=Now_Playing
thnx for any direction

Drew
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Furnfield's Tactical Realism Modules Development Site furnfield Showoff 3 01-30-2007 03:18 PM
need help with game development....can't write score leco Nuke 7.x - Modules 1 07-29-2005 12:53 PM
Need Nuke Programmer For Site Development Project $$$ Trinity_Micro_Design Site design 0 07-24-2005 10:12 PM
A Nuke site under-Development for Hosting Services Marty Showoff 1 04-20-2005 07:36 AM
Will Pay $ for custom theme development... moidib2 Open topics 0 02-21-2003 02:56 PM


All times are GMT -5. The time now is 03:37 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31