I am trying from trial an error, so far i have been lucky, and i want to share what I have found out so far. There is probally someone else like me that may not know either.
Some of the information is from on here in the forums somewhere, I want to just keep it all here so you dont have to go to a dozen different links. I take no credit, alot of this it the from those that have the talent, you can probally search to find better detailed info.
I wanted to make some changes to get this to work with nuke, it still has alot more work to get where I would like, so this is what I have done so far.
1. create it to work as a mod for nuke. I could only do a Iframe, but I am still looking to improve on this.
a. followed directions to create a folder in modules called wowroster, and in that folder create a index.php following these directions
http://wowroster.net/Forums/viewtopic/t=2640.html
here is the one that I used
- 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="./wowroster/index.php";
$go_to_address=rawurldecode($go_to_address1);
/* end url input <---- */
?>
<script language="JavaScript">
<!--
function calcHeight()
{
//Smallest the frame should ever be
var min_height=0;
//Largest the frame should ever be, 0 for no max
var max_height=0;
//find the height of the internal page
var the_height = document.getElementById('roster_iframe').contentWindow.document.body.scrollHeight;
if(the_height< min_height)
{
the_height = min_height;
}
else if(max_height != 0)
{
if(the_height > max_height)
{
the_height = max_height;
}
}
//Pad it a bit so firefox doesn't show scrollbars
the_height=the_height + 50;
document.getElementById('roster_iframe').height=the_height;
}
//-->
</script>
<?php
include("header.php");
define('INDEX_FILE', true);
OpenTable();
/****************************************************************************/
/* ----> iframe code to load above URL */
echo "<iframe id=\"roster_iframe\" SRC=\"".$go_to_address."\" width=\"100%\" onLoad=\"calcHeight()\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>\n";
/* end iframe load <---- */
CloseTable();
include("footer.php");
?>
there was another post that made it more secure, but I couldnt get it to work
2. I wanted to remove the motd
a. all i did was rename motd.php to oldmotd.php ....seems to work fine
3. Remove the large header....
from Snykxa.index.php
- Code: Select all
<div style="text-align:center;margin:10px;" class="bodyline"><a href="<?php echo $roster_conf['website_address'] ?>">
<img src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['logo'] ?>" alt="" style="border:0;margin:10px;" /></a>
</div>
4. I wanted to remove some of the info shown on the first page, there may be a config to do this, I wasnt for sure but what I did do worked.
a. Index.php
- Code: Select all
<?php
/******************************
* WoWRoster.net Roster
* Copyright 2002-2007
* Licensed under the Creative Commons
* "Attribution-NonCommercial-ShareAlike 2.5" license
*
* Short summary
* http://creativecommons.org/licenses/by-nc-sa/2.5/
*
* Full license information
* http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode
* -----------------------------
*
* $Id: index.php 603 2007-02-14 07:37:56Z zanix $
*
******************************/
require_once( 'settings.php' );
include_once (ROSTER_BASE.'roster_header.tpl');
// Additional querries needed for this page
// Make sure the last item in this array DOES NOT have a (,) at the end
//$additional_sql = array(
// '`players`.`hearth`, ',
// "`players`.`dateupdatedutc` AS 'last_update', ",
// "IF( `players`.`dateupdatedutc` IS NULL OR `players`.`dateupdatedutc` = '', 1, 0 ) AS 'luisnull' ",
//);
$FIELD[] = array (
'name' => array(
'lang_field' => 'name',
'order' => array( '`members`.`name` ASC' ),
'order_d' => array( '`members`.`name` DESC' ),
'required' => true,
'default' => true,
'value' => 'name_value',
),
);
$FIELD[] = array (
'class' => array(
'lang_field' => 'class',
'divider' => true,
'divider_value' => 'class_divider',
'order' => array( '`members`.`class` ASC' ),
'order_d' => array( '`members`.`class` DESC' ),
'default' => true,
'value' => 'class_value',
),
);
$FIELD[] = array (
'level' => array(
'lang_field' => 'level',
'divider' => true,
'divider_prefix' => 'Level ',
'order_d' => array( '`members`.`level` ASC' ),
'default' => true,
'value' => 'level_value',
),
);
if ( $roster_conf['index_title'] == 1 )
{
$FIELD[] = array (
'guild_title' => array (
'lang_field' => 'title',
'divider' => true,
'order' => array( '`members`.`guild_rank` ASC' ),
'order_d' => array( '`members`.`guild_rank` DESC' ),
),
);
}
if ( $roster_conf['index_currenthonor'] == 1 )
{
$FIELD[] = array (
'lifetimeRankName' => array(
'lang_field' => 'Highest Rank',
'order' => array( 'risnull', '`players`.`lifetimeRankName` DESC' ),
'order_d' => array( 'risnull', '`players`.`lifetimeRankName` ASC' ),
'value' => 'honor_value',
),
);
}
if ( $roster_conf['index_note'] == 1 && $roster_conf['compress_note'] == 0 )
{
$FIELD[] = array (
'note' => array(
'lang_field' => 'note',
'order' => array( 'nisnull','`members`.`note` ASC' ),
'order_d' => array( 'nisnull','`members`.`note` DESC' ),
'value' => 'note_value',
),
);
}
if ( $roster_conf['index_prof'] == 1 )
{
$FIELD[] = array (
'professions' => array(
'lang_field' => 'professions',
),
);
}
//if ( $roster_conf['index_hearthed'] == 1 )
// $FIELD[] = array (
// 'hearth' => array(
// 'divider' => true,
// 'order_d' => array( 'hisnull', 'hearth DESC' ),
// ),
//}
//if ( $roster_conf['index_zone'] == 1 )
//{
// $FIELD[] = array (
// 'zone' => array(
// 'lang_field' => 'zone',
// 'divider' => true,
// 'order' => array( '`members`.`zone` ASC' ),
// 'order_d' => array( '`members`.`zone` DESC' ),
// ),
// );
//}
//if ( $roster_conf['index_lastonline'] == 1 )
//{
// $FIELD[] = array (
// 'last_online' => array (
// 'lang_field' => 'lastonline',
// 'order' => array( '`members`.`last_online` DESC' ),
// 'order_d' => array( '`members`.`last_online` ASC' ),
// ),
// );
//}
if ( $roster_conf['index_lastupdate'] == 1 )
{
$FIELD[] = array (
'last_update' => array (
'lang_field' => 'lastupdate',
'order' => array( 'luisnull','last_update DESC' ),
'order_d' => array( 'luisnull','last_update ASC' ),
'value' => 'last_up_value',
),
);
}
if ( $roster_conf['index_note'] == 1 && $roster_conf['compress_note'] == 1 )
{
$FIELD[] = array (
'note' => array(
'lang_field' => 'note',
'order' => array( 'nisnull','`members`.`note` ASC' ),
'order_d' => array( 'nisnull','`members`.`note` DESC' ),
'value' => 'note_value',
),
);
}
include_once (ROSTER_BASE.'memberslist.php');
include_once (ROSTER_BASE.'roster_footer.tpl');
?>
through trial and error all I did was // the lines that I thought it would effect and when I tested it seem to work, and everything else seem to still work.
I am sorry if this is to big, or messy, I wanted to show that I was not asking for charity help. I am still working on moving the config to admins, and was going to work on putting some of the others in their own blocks to make it look better. If anyone sees my errors, or would like to help me with this, I would be greatfull. As you can see alot if just trial and error for me since i have no php experience.