Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury
Author Message
spiritwulf
New Member
New Member



Joined: Feb 10, 2006
Posts: 18

PostPosted: Sat Sep 10, 2011 8:51 pm Reply with quote

So its been an epic journey as usual lol....
Recently i decided to bring my websire back to life after alowing it to stagnate for several years. One of the 1st things i decided to do of course is to put in a nice new fresh instal of the latest RN: RavenNuke(tm) v2.40.01 Cool
Sadly i found that many of my old blocks and modules would no longer work no matter how much i tinkered with them Crying or Very sad
Happily with much research and tinkering i did get Nuke Treasury 1.1 (the one found in the downloads section of this site) functioning perfectly again.
The folowing is a list of code changes you will need to make to get it functioning correctly again.


1. this resolves a pathing issue
open the file /modules/Donations/ipn/ipnppd.php
on line 25 make the following change
find:
Code:
 include("../config.php");


replace with:
Code:
 include("../config.inc.php");



2. this resolves an issue with listed donations
open the file /blocks/block-Donat_o_Meter.php
on line 137 make the following change
Find:
Code:
// List all the donators 

    $l = 0;
    while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($i != $tr_config[dm_num_don]) )


replace with:
Code:
// List all the donators 

    $l = 0;
    while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($l != $tr_config[dm_num_don]) )



3. this resolves an issue with blank Treasury admin page
open the file /admin/modules/treasury.php
on line 25 make the following change
find:
Code:
$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);

 list($radminsuper) = sql_fetch_row($result, $dbi);


replace with:
Code:
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");

 list($radminsuper) = $db->sql_fetchrow($result);



Now you should be all set and Nuke Treasury should be working as intended.
 
View user's profile Send private message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Sep 23, 2011 3:37 pm Reply with quote

Thanks !
Thats what I found in my block:
Code:
// List all the donators

      $l = 0;
      while ( ($row_Recordset3 = mysql_fetch_assoc($Recordset3)) && ($i != $tr_config['dm_num_don']) )


I didn´t notice a difference in your changed posted code Nr. 2 ?
However, I remember I had to fix a lot of validation errors with this.
Mine isn´t active anymore but it worked in a previous version of RN.
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Sep 23, 2011 3:51 pm Reply with quote

The corrected code is at && ($l
The counter uses the variable $l (lowercase L) but the WHILE loop code uses $i (lower case I ) but should be using the lowercase L
 
View user's profile Send private message Send e-mail
Susann







PostPosted: Fri Sep 23, 2011 4:34 pm Reply with quote

Thanks Guadriad. Now I see it. I believe I need better glasses. Im blind from all the language translations I made today. Razz
 
tourniqu3t
Regular
Regular



Joined: Jan 16, 2009
Posts: 91

PostPosted: Fri Apr 19, 2013 3:34 pm Reply with quote

What about RavenNuke v2.51.0? Is it the same?
 
View user's profile Send private message
Guardian2003







PostPosted: Tue Apr 23, 2013 3:54 am Reply with quote

I don't think 1.1 will work with RavenNuke 2.5 but I no longer support that free version - sorry.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©