PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
Agent001Fox
Hangin' Around


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

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

How do I make a block showing a webpage like:
Only registered users can see links on this board!
Get registered or login to the forums!
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: 16987
Location: Kansas

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

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 to the forums!
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 Visit poster's website AIM Address Yahoo Messenger
Agent001Fox
Hangin' Around


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

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

But... I really ment a block... Sad
Like the block who shows who's online, latest forum posts etc... Rolling Eyes
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: 16987
Location: Kansas

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

??? 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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Agent001Fox
Hangin' Around


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

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

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 to the forums!


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?
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: 16987
Location: Kansas

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

Check the Nuke Manual link in my site navigation block.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum