I wrote a single index.php file, put it into a folder called Guild_Roster in the "modules" section of the site. Activated it so it would show up on the menu and VIOLA! it now loads as a module.
_____________
why do this?
~> there is ZERO modification to the wowroster files or your phpnuke files!
~> you can install the roster and follow all of the defaults with no need to worry about portal integration.
installation
~> less than 1 minute!
can i see a sample
~> of course, please follow this URL http://www.soulpirates.net/modules.php? ... ild_Roster (please forgive, i just got the site up about 5 days ago, and were still working on a logo & graphics etc.
can i modify this file to suit my own purposes
~> absolutely, the ability to load *ANY* url into an iframe as a module has countless uses
- Code: Select all
<?php
/****************************************************************************/
/* ----> Module file used to load external URL's into an I-Frame */
/* Many thanks to forum users everywhere & specifically the */
/* wowroster team for inspiring me to figure this out! <---- */
/****************************************************************************/
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);
/****************************************************************************/
/* ----> change the site URL information that you wish to load here */
$index=0;
$go_to_address1="http://www.yoursitehere/roster/index.php";
$go_to_address=rawurldecode($go_to_address1);
/* end url input <---- */
include("header.php");
define('INDEX_FILE', true);
OpenTable();
/****************************************************************************/
/* Modify the height= information to enlarge the i-frame if needed */
/* Default height=\"1200\" */
/* ----> iframe code to load above URL */
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"4800\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
/* end iframe load <---- */
CloseTable();
include("footer.php");
?>
I know im a little comment happy.
INSTRUCTIONS
1: create a new file and name it "index.php"
2: copy & paste the above code into the file
3: change the URL to meet your needs
4: save and close the file
5: login to your FTP and go into the "/modules/" folder
6: create a new folder and name it what you would like the module to show up as
7: copy the newly created "index.php" into the folder you created
8: login to the admin page of your phpnuke installation
9: click on "Modules"
10: scroll the list until you see the name of your new folder/module
11: edit the name as you want it to show up in the menu and then activate the module
12: enjoy!
Example can be seen on my own website www.soulpirates.net
click on the ROSTER on the left nav menu