Some nuke Roster fix

phpNuke integration forum

Some nuke Roster fix

Postby Rahtak » Sat Jul 15, 2006 4:25 am

Find in conf.php
Code: Select all
$module_name = "basename(dirname(__FILE__))";
$roster_dir = "modules/";



Replace to:
Code: Select all
$module_name = basename(dirname(__FILE__));
$roster_dir = "modules/".$module_name;



you can now use $roster_dir to fix path in include and such


Find in roster_header.tpl
Code: Select all
  <link rel="stylesheet" type="text/css" href="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['stylesheet'] ?>">
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['overlib']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_conf['roster_dir']; ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>


replace to:
Code: Select all
  <link rel="stylesheet" type="text/css" href="<?php echo $roster_dir ?>/<?php echo $roster_conf['stylesheet'] ?>">
  <script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['roster_js']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['overlib']; ?>"></script>
  <script type="text/javascript" src="<?php echo $roster_dir ?>/<?php echo $roster_conf['overlib_hide']; ?>"></script>


this will fix the .js include in roster

More to come
Last edited by Rahtak on Sat Jul 15, 2006 4:26 am, edited 1 time in total.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Some nuke Roster fix

Postby zang » Sat Jul 15, 2006 7:06 pm

Thanx alot that helped So much i think we need to put the 2 Fixes For install.php and the conf.php and the roster_header.php

there is one Fixe that is missing upgrade.php i am still reading through it but i dont seem too see any spelling or Directory error

thanks alot again
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm

Re: Some nuke Roster fix

Postby Rahtak » Sat Jul 15, 2006 9:27 pm

also go around the other php file to find at the begining

Find in many php file
Code: Select all
require_once('settings.php');


Replace by:
Code: Select all
require_once($roster_dir .  '/settings.php');



this fix alot of page not loading

find in roster_footer.tpl
Code: Select all
      <img src="<?php print $roster_conf['roster_dir']; ?>/img/valid-html40.gif" alt="Valid HTML 4.0 Transitional" height="15" width="119"></a>


replace with
Code: Select all
      <img src="<?php print $roster_dir; ?>/img/valid-html40.gif" alt="Valid HTML 4.0 Transitional" height="15" width="119"></a>


this fix the image link in the footer. if you have more broken image it might be the $roster_conf['roster_dir']; since it's pointing to "modules.php?name=Roster" we need a variable that countain "modules/Roster/" not sure if we should put an other variable in the roster config table like roster_raw_dir rather then changing them to $roster_dir , it could be $roster_conf['roster_raw_dir'];.
Last edited by Rahtak on Sat Jul 15, 2006 9:34 pm, edited 1 time in total.
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Re: Some nuke Roster fix

Postby Bludshank » Sun Jul 16, 2006 12:44 am

zang wrote:Thanx alot that helped So much i think we need to put the 2 Fixes For install.php and the conf.php and the roster_header.php

there is one Fixe that is missing upgrade.php i am still reading through it but i dont seem too see any spelling or Directory error

thanks alot again


I don't know anything about PHP...but I was looking at Update.php and noticed that around line 345 there are the same lines as in the changes needed for install.php. I've changed them and got a little farther. Now I'm just getting a white page with the text "You can't access this file directly...."

Hope this helps some.....
Bludshank
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Sat Jul 15, 2006 4:15 am

Some nuke Roster fix

Postby zang » Sun Jul 16, 2006 11:04 am

hmm ok after i did the fixes everything is ok but when i try to use the upload link i get this

Sorry, such file doesn't exist...
Last edited by zang on Sun Jul 16, 2006 2:27 pm, edited 1 time in total.
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm

Re: Some nuke Roster fix

Postby Rahtak » Sun Jul 16, 2006 12:08 pm

any form that use the input "name" need to be changed to soemthing else.

name is reserved by phpnuke for modules name
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Some nuke Roster fix

Postby zang » Sun Jul 16, 2006 2:29 pm

but which file :P
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm

Re: Some nuke Roster fix

Postby Rahtak » Mon Jul 17, 2006 8:36 am

my version is semi working so i'v spto a little my work on it since i been raiding all weekend. i'll resume work.

i think theres a problem with the trigger when you update profile
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Some nuke Roster fix

Postby zang » Mon Jul 17, 2006 3:36 pm

the problem is its going to the right Directory and File it is Calling Roster/admin/update but then in the browser it says that it Doesnt Exist

and when i used 1.6 there was a roster Icon in the Php nuke Roster now it has dissapeared
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm


Return to phpNuke

Who is online

Users browsing this forum: No registered users and 0 guests

cron