Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Agent001Fox
Hangin' Around



Joined: Dec 17, 2003
Posts: 29
Location: Stockholm - Sweden

PostPosted: Tue Feb 17, 2004 9:38 am Reply with quote

How do I make a block showing a webpage like: [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Feb 17, 2004 10:07 am Reply with quote

First of all you will want a module Smile
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 [ Only registered users can see links on this board! Get registered or login! ] 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");
 
View user's profile Send private message
Agent001Fox







PostPosted: Tue Feb 17, 2004 10:38 am Reply with quote

But... I really ment a block... Sad
Like the block who shows who's online, latest forum posts etc... Rolling Eyes
 
Raven







PostPosted: Tue Feb 17, 2004 11:09 am Reply with quote

??? 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







PostPosted: Wed Feb 18, 2004 12:11 am Reply with quote

It would be enough if it showed the names only. This page is a top ten of this site: [ Only registered users can see links on this board! Get registered or login! ]

Maybe I'm way off the line trying to fix a block for this??? Confused
Is there another way to make a block? Any tutorial?
 
Raven







PostPosted: Wed Feb 18, 2004 12:15 am Reply with quote

Check the Nuke Manual link in my site navigation block.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©