Alot of fix for nuke

phpNuke integration forum

Alot of fix for nuke

Postby Rahtak » Tue Jul 18, 2006 6:36 am

You can download the php files here cause theres alot of change and i might not have noted them all

http://www.shadow-prophecy.com/download/Roster17.zip

Setting you have to set in config

Roster URL: modules.php?name=Roster
Interface Directory URL: modules/Roster/img/
Roster Images Directory URL: modules/Roster/img/

Working addon
Guildbank
Maxresist
Made By

Broken Addon
Siggen ( still having problem fixing it)

tradeskill.php char.php memberdetails.php
change form input "name" to "player" (nuke reserve "name" for modules name)

Post in more fix if you find any.

---------------------------------------

tradeskill.php
line 97
$nameid = '<a href="' . $roster_conf['roster_dir'] . '&op=char&char_name='.$row[0].'&amp;server='.$row[1].'&amp;action=recipes">'.$row[0].'</a>';

---------------------------------------------

membersinst.php
line 326
print '<a href="' . $roster_conf['roster_dir'] . '&op=char&player='.$row['name'].'&amp;server='.$roster_conf['server_name'].'">'.$row['name'].'</a><br />'.$row['class'].' ('.$row['level'].')</td>'."\n";

-----------------------------------

memberslist.php
line 286
$tableHeaderRow .= ' <th class="membersHeaderRight"><a href="' . $roster_conf['roster_dir'] . '&op=indexstat&s='.$field.$desc.'">'.$th_text."</a></th>\n";

line 290
$tableHeaderRow .= ' <th class="membersHeader"><a href="' . $roster_conf['roster_dir'] . '&op=indexstat&s='.$field.$desc.'">'.$th_text."</a></th>\n";

line 459
return $tooltip.'<a href="' . $roster_conf['roster_dir'] . '&op=char&player='.$row['name'].'&amp;server='.$row['server'].'">'.$row['name'].'</a></div>';

line 470
return '<a href="' . $roster_conf['roster_dir'] . '&op=char&player='.$row['name'].'&amp;server='.$row['server'].'">'.$row['name'].'</a>';

---------------------------------

hslist.php
line 72
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor">'.$wordings[$roster_conf['roster_lang']]['hslist1'].'</a></td>'."\n");

line 102
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lastweekRank">'.$wordings[$roster_conf['roster_lang']]['hslist2'].'</a></td>'."\n");

line 123
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lastweekHK">'.$wordings[$roster_conf['roster_lang']]['hslist3'].'</a></td>'."\n");

line 144
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lastweekDK">'.$wordings[$roster_conf['roster_lang']]['hslist4'].'</a></td>'."\n");

line 165
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lastweekContribution">'.$wordings[$roster_conf['roster_lang']]['hslist5'].'</a></td>'."\n");

line 186
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lifetimeRankName">'.$wordings[$roster_conf['roster_lang']]['hslist6'].'</a></td>'."\n");

line 214
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lifetimeHK">'.$wordings[$roster_conf['roster_lang']]['hslist7'].'</a></td>'."\n");

line 235
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor&s=lifetimeDK">'.$wordings[$roster_conf['roster_lang']]['hslist8'].'</a></td>'."\n");

line 265
print('<a href="' . $roster_conf['roster_dir'] . '&op=indexhonor">'.$wordings[$roster_conf['roster_lang']]['hslist9'].'</a></td>'."\n");

----------------------------------

questlist.php
line 80
$option_blockzones = selectQuery("`".ROSTER_QUESTSTABLE."` quests,`".ROSTER_MEMBERSTABLE."` members WHERE quests.member_id = members.member_id","DISTINCT quests.zone","zone",$zoneidsafe,"zone",$roster_conf['roster_dir'] . "&op=indexquests&zoneid");
$option_blockquests = selectQuery("`".ROSTER_QUESTSTABLE."` quests,`".ROSTER_MEMBERSTABLE."` members WHERE quests.member_id = members.member_id","DISTINCT quests.quest_name","quest_name",$questidsafe,"quest_name",$roster_conf['roster_dir'] . "&op=indexquests&questid");

line 194
'onclick="w = window.open(\'' . $roster_conf['roster_dir'] . '&op=char&player='.$row['name'].'&server='.$row['server'].'&action=character\',\'PopUp\',\'width=830,height=750,left=100,top=100,screenX=100,screenY=100,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no\'); return true;"'.

line 256
'onClick="w = window.open(\'' . $roster_conf['roster_dir'] . '&op=char&player='.$row['name'].'&server='.$row['server'].'&action=character\',\'PopUp\',\'width=650,height=750,left=200,top=200,screenX=200,screenY=200,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no\'); return true;"'.

--------------------------------

search.php
line 78
$char_url = $roster_conf['roster_dir'] . '&op=char&player='.$data['name'].'&server='.$data['server'];

line 174
$char_url = $roster_conf['roster_dir'] . '&op=char&player='.$data['name'].'&server='.$data['server'].'&action=recipes';

-------------------------------

/addons/maxres/trigger.php
line 32

require_once(ROSTER_BASE . '/addons/maxres/maxres.php');
require_once(ROSTER_BASE . '/lib/item.php');
include(ROSTER_BASE . '/addons/maxres/localization.php');

---------------------------------

/addons/guildbank/gbank.php
line 186
$muleurl = "<a href='" . $roster_conf['roster_dir'] . "&op=char&player=".$muleArray['member_name']."&server=".urlencode($muleArray['muleservername'])."'>";




edit:

install.php
line 542
$config_file .= '$module_name = basename(dirname(__FILE__));' . "\n";
Last edited by Rahtak on Tue Jul 18, 2006 10:44 pm, edited 1 time in total.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Alot of fix for nuke

Postby zang » Tue Jul 18, 2006 1:51 pm

I made a fresh install from your Dl and everything is fine but after the Installation finishes i get nothing in the page its just empty
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm

Alot of fix for nuke

Postby Bugilt » Tue Jul 18, 2006 8:23 pm

I did a fresh install per the download on this thread and I got this.


Code: Select all
Warning: main(/settings.php) [function.main]: failed to open stream: No such file or directory in /home/eotwow/public_html/modules/Roster/admin/config.php on line 20

Fatal error: main() [function.require]: Failed opening required '/settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eotwow/public_html/modules/Roster/admin/config.php on line 20


http://www.eotwow.com/modules/Roster/admin/config.php
Last edited by Bugilt on Tue Jul 18, 2006 9:07 pm, edited 2 times in total.
Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Re: Alot of fix for nuke

Postby Rahtak » Tue Jul 18, 2006 10:35 pm

make sure the roster_dir config is set to "modules.php?name=Roster"

also did you install it in "[root]/modules/Roster"?

try loading the config window with this ling

"[yoursite]/modules.php?name=Roster&op=config"

are you on a linux server or windows?



P.S ahh yes. i didn'T fix the install.php about this. go in your conf.php

the line that set $roster_dir = "basename(dirname(__FILE__))"; remove the " " around the basename ... code; then everythign should work fine.
Last edited by Rahtak on Tue Jul 18, 2006 10:41 pm, edited 2 times in total.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Alot of fix for nuke

Postby Bugilt » Tue Jul 18, 2006 11:06 pm

I have installded it in the propper dir. The module roster_dir in the config is corect. I removed the "" from the line mentioned with no result.



Operating system Linux
Service Status Click to View
Kernel version 2.6.17.3
Machine Type i686
Apache version 1.3.36 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 5.0.4
MySQL version 4.1.19-standard-log
cPanel Build 10.8.2-STABLE 120
Theme cPanel X v2.5.0
Documentation Click to View
Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Re: Alot of fix for nuke

Postby Rahtak » Tue Jul 18, 2006 11:29 pm

ok try using this config.php file. it's the config.php with an echo of the $roster_dir that fix the setting.php include.

if it's blank between the : it means thats the problem and we can start looking at fixing the problem.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Re: Alot of fix for nuke

Postby Rahtak » Tue Jul 18, 2006 11:32 pm

ok try using this config.php file. it's the config.php with an echo of the $roster_dir that fix the setting.php include.

if it's blank between the : it means thats the problem and we can start looking at fixing the problem.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Alot of fix for nuke

Postby Bugilt » Tue Jul 18, 2006 11:35 pm

http://www.eotwow.com/modules/Roster/admin/config.php

Warning: main(/settings.php) [function.main]: failed to open stream: No such file or directory in /home/eotwow/public_html/modules/Roster/admin/config.php on line 20

Fatal error: main() [function.require]: Failed opening required '/settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eotwow/public_html/modules/Roster/admin/config.php on line 20


Same thing
Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Re: Alot of fix for nuke

Postby Rahtak » Tue Jul 18, 2006 11:53 pm

rename the current config.php to config.old and put this one. it only output the roster_dir and doens't do anything your site probably config to die the page and show error message it'S why your not seeing the output.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Re: Alot of fix for nuke

Postby Bugilt » Wed Jul 19, 2006 12:02 am

Rahtak wrote:rename the current config.php to config.old and put this one. it only output the roster_dir and doens't do anything your site probably config to die the page and show error message it'S why your not seeing the output.


What do you want me to put in the config.php's place?
Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Re: Alot of fix for nuke

Postby Rahtak » Wed Jul 19, 2006 12:05 am

sorry this file
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Re: Alot of fix for nuke

Postby Rahtak » Wed Jul 19, 2006 12:06 am

sorry this file
Attachments
config.zip
had to zip can'T attach php file
(190 Bytes) Downloaded 271 times
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Alot of fix for nuke

Postby Bugilt » Wed Jul 19, 2006 12:10 am

Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Re: Alot of fix for nuke

Postby Rahtak » Wed Jul 19, 2006 12:20 am

well first you should alwase try to access Roster file in this form of link

http://www.eotwow.com/modules.php?name=Roster


for config it's

http://www.eotwow.com/modules.php?name=Roster&op=config

still seem to not show anything on your site. check your server error log maybe it show blank
Last edited by Rahtak on Wed Jul 19, 2006 12:24 am, edited 1 time in total.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Alot of fix for nuke

Postby Bugilt » Wed Jul 19, 2006 12:23 am

Bugilt
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Fri Jul 14, 2006 2:00 am

Next

Return to phpNuke

Who is online

Users browsing this forum: No registered users and 1 guest

cron