wowroster for phpnuke8

phpNuke integration forum

wowroster for phpnuke8

Postby Gator81 » Wed Jul 04, 2007 2:44 am

Well this seems to be the place to make this request and suggestion :)

First dragonfly is a great piece of work, but I am not a programmer, and to convert everything I have would be more then I would now how to do. Another person made a comment to me that it is easier to try and get help for one project then it would be to get help for fifty.

Is it possible for someone to create a package that will work with nuke like it does in df? have an admin tool to make the changes, like in df, and not just adding an iframe.
Or is it because df has done this that it cannot be done for nuke?

I have read so many post that are outdated, and do not work correctly, or they just try to setup an iframe, or they just gave up and restarted with df, that I wanted to ask if someone could just do one for nuke.

Also, anyone getting one working will be the only one that has even attempted to post a working version that can be used in a very long time.

I dont mean to start any flame, I have put in alot of work learning and putting what I have togather and it would be nice to see someone release a working nuke port *not iframe* that could be used.

thank you in advance
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: wowroster for phpnuke8

Postby Gator81 » Wed Jul 11, 2007 1:28 pm

could someone let me know that this will never happen, or that it would be possible to accomplish? I keep reading over and over trying to get the smallest bit of hope that someone would do this, and all i see is more talk about porting it to something else.
I dont have the skills to do this myself, so i can only ask if anyone would take this project on. The admins have changed to df so it looks like they will not create one, and from what I am reading 1.8 may have some hope to work with nuke without just doing iframes.
I would be greatfull for any info if anyone would take this on or even say that it will never happen, at least its better then not hearing nothing.


thank you for your time
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

wowroster for phpnuke8

Postby Gator81 » Sat Jul 14, 2007 9:28 am

would someone mind letting me know any steps that would help me in getting this to work with nuke instead of just doing iframes? or direct me to any place that may have some of this information.
sorry to bother anyone...thank you
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: wowroster for phpnuke8

Postby Gator81 » Sat Jul 14, 2007 4:47 pm

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 Snykx
a.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.
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

wowroster for phpnuke8

Postby Gator81 » Mon Jul 16, 2007 5:18 am

well after more work, i found out that I did alot of unnessary work since the config will do some of what I was trying to do. I will continue to pass info on that I have found

Is there any info to hide the roster config? and Is there a way to setup where the config and admin pages can be loaded from the admin feature? and if your the admin to not need a password to edit?

would there be any place to find this information? Or could someone let me know the steps I would need to take to get this to work please.
Last edited by Gator81 on Tue Jul 17, 2007 4:03 am, edited 1 time in total.
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am


Return to phpNuke

Who is online

Users browsing this forum: No registered users and 1 guest

cron