| Author |
Message |
Agent001Fox Hangin' Around

Joined: Dec 17, 2003 Posts: 29 Location: Stockholm - Sweden
|
Posted:
Tue Feb 17, 2004 9:38 am |
|
How do I make a block showing a webpage like:
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Feb 17, 2004 10:07 am |
|
First of all you will want a module
| Code: | <?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$index = 1; // Or 0 for no right blocks
include("header.php");
OpenTable();
include("yourfile.html");
CloseTable();
include("footer.php");
?> | That code must be saved as index.php in a folder of your choosing and placed in the modules diectory. So, you might name the folder agent001. So, you would place the folder agent001 in the modules folder and the folder agent001 would contain that code above in a file called index.php. You then have to activate the module in the nuke Admin panel.
When using the include function, php will look in the nuke root directory. So, I would create a folder in the nuke root directory (where mainfile.php is located) and call it something like mystuff. Then, place your html files in the mystuff folder. Modify your include statement to be
include("mystuff/yourfile.html");
Linking to an external site is added overhead. You could also hide it in a protected area by placing mystuff below the nuke directory and then calling it by
include("../mystuff/yourfile.html"); |
|
|
|
 |
Agent001Fox Hangin' Around

Joined: Dec 17, 2003 Posts: 29 Location: Stockholm - Sweden
|
Posted:
Tue Feb 17, 2004 10:38 am |
|
But... I really ment a block...
Like the block who shows who's online, latest forum posts etc...  |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Feb 17, 2004 11:09 am |
|
??? So, how does that link you gave relate to this ??? You said you wanted a block like that. A block could never hold all that information. |
|
|
|
 |
Agent001Fox Hangin' Around

Joined: Dec 17, 2003 Posts: 29 Location: Stockholm - Sweden
|
Posted:
Wed Feb 18, 2004 12:11 am |
|
It would be enough if it showed the names only. This page is a top ten of this site:
Maybe I'm way off the line trying to fix a block for this???
Is there another way to make a block? Any tutorial? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Feb 18, 2004 12:15 am |
|
Check the Nuke Manual link in my site navigation block. |
|
|
|
 |
|
|
|
|