Alot of fix for nuke

phpNuke integration forum

Alot of fix for nuke

Postby zang » Wed Jul 19, 2006 10:04 am

hi rahtak ok after the changes i did in conf.php the roster worked but i got 2 problems

1. overlib 4.10 or later is required for the hideform
2. when i click on the upload to upload the guild profile and character profile it still says file doesnt exists

this is how it shows the link
http://Domain.com/modules.php?name=Rost ... update.php
Last edited by zang on Wed Jul 19, 2006 10:06 am, edited 1 time in total.
zang
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Wed Jul 05, 2006 12:57 pm

Re: Alot of fix for nuke

Postby darkbones » Wed Jul 19, 2006 11:27 am

I did a new intall.
First on the 4th step I get this error:
Notice: Undefined variable: module_name in /srv/www/www.darkbones.de/modules/Roster/install.php on line 543

after clicking on >Continue to Roster Config< I get a blank page with the following message:
debug output: : end of output

I used the fixed and attached config.php from rahtek.
life is notfair sometimes...
but the root password helps!
User avatar
darkbones
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Tue Jul 04, 2006 10:16 pm
Location: Frankfurt / Germany

Re: Alot of fix for nuke

Postby undood » Wed Jul 19, 2006 12:30 pm

Darkbones

If you're willing to reinstall you could try what I had to do to get results...

>Install 1.7 standalone
>FTP and move all of Roster from the site root to /modules
>copy over the files with the large zip that Rahtak included here

this got my site running somewhat, though I still had to make some minor adjustments (cosmetic) and I'm trying to track down some bugs like the sorting of any type linking to Itemstats.php :scratch:

once I get that and the siggen fixed I'll be golden

nice work btw Rahtak :thumleft:
User avatar
undood
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Tue Jul 04, 2006 1:29 pm

Re: Alot of fix for nuke

Postby Rahtak » Wed Jul 19, 2006 1:07 pm

I'll try to fix the install.php so the install actualy work right. i didn'T realy test the install since i use the original nuked version and just debugged my wait up to the point it worked right for me. for the overlib make sure the overlib is included in char.php

char.php
line 32
<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>
<script type="text/javascript" src="<?php echo $roster_dir; ?>/<?php echo $roster_conf['profile']; ?>"></script>

changed $roster_conf['roster_dir']; to $roster_dir; so make sure $roster_dir is set and have the right value. should be something like modules/Roster/
Rahtak
WR.net Journeyman
WR.net Journeyman
 
Posts: 78
Joined: Fri Jul 14, 2006 11:54 am

Re: Alot of fix for nuke

Postby darkbones » Wed Jul 19, 2006 3:39 pm

k I tried undoods advice.

I'm getting a blank screen now!

So I used the attached config and now I got this case mentioned from rahtak:

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.


thanks in advance
Last edited by darkbones on Thu Jul 20, 2006 2:00 am, edited 1 time in total.
life is notfair sometimes...
but the root password helps!
User avatar
darkbones
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Tue Jul 04, 2006 10:16 pm
Location: Frankfurt / Germany

Re: Alot of fix for nuke

Postby zxaltan » Wed Aug 09, 2006 3:44 am

Code: Select all
Warning: main(settings.php) [function.main]: failed to open stream: No such file or directory in /home/steelsta/public_html/asy/char.php on line 19

Fatal error: main() [function.require]: Failed opening required 'settings.php' (include_path='.:/usr/lib/php') in /home/steelsta/public_html/asy/char.php on line 19

I am getting this error and i ran the file you posted and this is the out put i get

debug output: : end of output
Fatal error: Class 'sql_db' not found in /home/steelsta/public_html/asy/db/db.php on line 94
Last edited by zxaltan on Wed Aug 09, 2006 3:46 am, edited 1 time in total.
User avatar
zxaltan
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 62
Joined: Mon Jul 10, 2006 1:09 am

Alot of fix for nuke

Postby Ethon1 » Fri Sep 08, 2006 4:59 am

debug output: : end of output


is it not defining $roster_dir then?
Ethon1
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Fri Sep 08, 2006 4:50 am

Re: Alot of fix for nuke

Postby tkhawaja » Mon Sep 11, 2006 8:39 am

Thanks for your effort on this port guys. I have Roster installed and peopole are starting to upload their stats. I've tried messing around a lot with the siggen code but can't get it to "trigger" and mass create the entire guild's signatures and avatars. Also there was a bit of tweaking required for it to point at the correct sig / avatar images.

Is there some way I can manually trigger the full guild sig create initially until the update triggers are worked out?
tkhawaja
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Sep 10, 2006 2:26 pm

Re: Alot of fix for nuke

Postby tkhawaja » Tue Sep 12, 2006 10:29 am

So I wanted to get update.php working with UniUploader.

In update.php find:

require_once( $roster_dir . '/settings.php' );

Just above it add the full path to your roster directory. mine looks like this, yours will be different:

$roster_dir = '/www/somedirectory/modules/Roster';


then find:

include_once( ROSTER_BASE.'lib'.DIR_SEP.'phpbb.php' );

change phpbb.php to nukebb.php to look like this:

include_once( ROSTER_BASE.'lib'.DIR_SEP.'nukebb.php' );


This got automatic updates working via UniUploader. But I still cant get the siggen trigger to work properly. When I call the sig generator directly it works just fine. Outputs a picture to the browser as well as saving it in the proper directory:

http://my.domain.name/modules/Roster/ad ... ayer=Molvi

That works in my browser but from trigger.php I set it up properly:

$etag = 0
$player = urldecodecrap($member_name);
chdir('full path to siggen');
include 'sig.php';

This produces an error in the combineImage function where $im is "not an image resource". $etag and $player are properly available to siggen.php which is no different than being called from the browser going directly to sig.php. So any more clues would be helpful.
tkhawaja
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Sep 10, 2006 2:26 pm

Siggen trigger now working on auto UniUploader upates

Postby tkhawaja » Tue Sep 12, 2006 12:37 pm

After you make the above mentioned change in update.php find trigger.php in the siggen directory. You MUST have save to server enabled and set up properly for this to work ofcoures. Find $mode == 'char' and make the following changes. You can essentially copy paste the exact same code into the $mode == 'guild' statement block just below the 'char' statement block.

if( $mode == 'char' )
{
if( $SigGenConfig['signature']['trigger'] )
{
print 'Saving Sig-[ '.utf8_decode($member_name).' ]';
$player = utf8_decode($member_name);
$url = "http://your.domain.name/modules/Roster/addons/siggen/si
g.php?etag=0&player=".$player;
$html_data = file_get_contents($url);
}

if( $SigGenConfig['avatar']['trigger'] )
{
print ' Saving Avatar-[ '.utf8_decode($member_name).' ]';
$player = utf8_decode($member_name);
$url = "http://your.domain.name/modules/Roster/addons/siggen/av
.php?etag=0&player=".$player;
$html_data = file_get_contents($url);
}
}


Thanks to the people who did the initial work for the phpnuke port. I now have everything I want working. Once last piece of code coming your way in a little bit to actually display the sigs and avatars properly.
tkhawaja
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Sep 10, 2006 2:26 pm

Re: Siggen trigger now working on auto UniUploader upates

Postby tkhawaja » Tue Sep 12, 2006 1:02 pm

The last thing is in memberdetails.php. If you're using .png as your generated sig and avatar pictures than you are fine. Because it is hard coded in there. If you use .gif or .jpg like I do you have to change some minor code.

So open up memberdetails.php and do a search and replace on ALL instances of .png => .whatever-file-extionsion-you want. For myself I had to change all the .png to .jpg since that is the pictures I set up siggen to generate.
tkhawaja
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Sep 10, 2006 2:26 pm

Previous

Return to phpNuke

Who is online

Users browsing this forum: No registered users and 0 guests