Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
Tizwit
Involved
Involved



Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Fri Jan 23, 2009 1:51 pm Reply with quote

Does anyone happen to have a working NukeProjects? Or know of any one that is working to get a compatable version for RN?

_________________
Brian [ Only registered users can see links on this board! Get registered or login! ]
Helping the Children in the NM Children's Hospital 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Jan 23, 2009 2:47 pm Reply with quote

I just installed Nuke Projects 2.0 on a test site running RN 2.30.00 and it seems to work correctly.
 
View user's profile Send private message Send e-mail Visit poster's website
Susann
Moderator



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

PostPosted: Fri Jan 23, 2009 2:54 pm Reply with quote

You need to test weblinks and other modules and add there e.g. a new catgory: Php-Nuke Developers
 
View user's profile Send private message
nuken







PostPosted: Fri Jan 23, 2009 3:33 pm Reply with quote

I just saw that.
 
Tizwit







PostPosted: Fri Jan 23, 2009 4:26 pm Reply with quote

I did all the suggested Fixes listed in the Forums and none have corrected the issue with the newest RN.
 
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Sat Jan 24, 2009 1:23 am Reply with quote

what is the problem exactly.....

Also make sure in file: modules/Projects/admin/index.php

Find:

Code:


$modname = basename(str_replace("/admin", "", dirname(__FILE__)));


Change To:

Code:


$modname = 'Projects';
 
View user's profile Send private message
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sat Jan 24, 2009 8:45 am Reply with quote

I have just implimented this change that testy1 mentioned, Brian. See if that helps. If it does not, please post a detailed description about what is happening as I do not believe that people understand it completely. Perhaps this change will fix it.

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Tizwit







PostPosted: Sat Jan 24, 2009 1:34 pm Reply with quote

I have retested and tried to modify the category in the weblinks that was changed to "Projects" to what it should be.

After doing the modification I tried to create another category in the admin menu and this appears:

ERROR: The Category Projects already exist!

Somehow the NukeProjects is overriding the weblinks categories, as well as the Weblinks name.

If you go to this site:
[ Only registered users can see links on this board! Get registered or login! ]

and go to the weblinks section you can see what I mean.

Thank you all for the help.
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jan 24, 2009 1:51 pm Reply with quote

I'll download it now and take a look at it.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Tizwit







PostPosted: Sat Jan 24, 2009 2:06 pm Reply with quote

Thank you Palbin
 
Palbin







PostPosted: Sat Jan 24, 2009 4:42 pm Reply with quote

I am still looking into the weblinks issue, but I have cleaned up a few warnings and notices. It is not neccessary to make these changes unless you want too. I am just posting them for posterity's sake.

************************************

Ok I am going to include all fixes found here on the forums here and recommended by me. Sorry to anyone if I forget to reference a post of mention a name.

The fixes below are just related to installation so they really are not necessary as the installation still works, but I do not like warning/notices at all Smile.

This fix is proposed here [ Only registered users can see links on this board! Get registered or login! ] by testy1.
Do a search and replace with the following in /nsnpj_installer/install.php:
Code:


if(in_array($prefix."

replace with:
Code:


if(isset($nsnwb) && in_array($prefix."


In /nsnpj_installer/index.php:
Find:
Code:


$pagetitle = $pagename;

After add:
Code:


if (!isset($oldname)) $oldname = '';


In /includes/nsnpj_func.php:
Find:
Code:


function pjget_configs(){
  global $prefix, $db;

After add:
Code:


  $config = array();



Ok that should take care of the "unnecessary" changes! Any changes below this should be done.

In /modules/Projects/admin/links.php:
Find:
Code:


global $admin_file;

Change to:
Code:


global $admin_file, $pj_config;


/modules/Projects/admin/PJProjectAdd.php on line 32
Code:


echo "<td><select name='allowrequests'><option value='0'$reqn>"._PJ_NO."</option>\n";

Change to:
Code:


echo "<td><select name='allowrequests'><option value='0'>"._PJ_NO."</option>\n";


In /language/nukeprojects/lang_english.php:
Find:
Code:


define("_PJ_DOWN","Down one");

After add:
Code:


define("_PJDOWN","Down one");


Find:
Code:


define("_PJ_UP","Up one");

After add:
Code:


define("_PJUP","Up one");

Probably would be better to replace all references to _PJDOWN and _PJUP, but this is much faster and we won't miss any Smile.

There are three files that you need to edit here.
/modules/Projects/admin/PJReportList.php
/modules/Projects/admin/PJRequestList.php
/modules/Projects/admin/PJTaskList.php
Find:
Code:


if(!$page) $page = 1;
if(!$per_page) $per_page = 25;
if(!$column) $column = "project_id";
if(!$direction) $direction = "desc";

Change to:
Code:


if(empty($page)) $page = 1;
if(empty($per_page)) $per_page = 25;
if(empty($column)) $column = "project_id";
if(empty($direction)) $direction = "desc";
 
jaded







PostPosted: Sat Jan 24, 2009 4:59 pm Reply with quote

Brian,

I have implimented these changes. Thank you very much, Palbin. Please do let us know what you find about the weblinks and any changes that need to be made.
 
Palbin







PostPosted: Sat Jan 24, 2009 11:38 pm Reply with quote

Here are some additional fixes.

In /modules/Projects/public/PJProject.php:
Find line 94-95:
Code:


if(!$column1) $column1 = "task_name";
if(!$direction1) $direction1 = "asc";

Change to:
Code:


if(empty($column1)) $column1 = "task_name";
if(empty($direction1)) $direction1 = "asc";


Find line 154-15:
Code:


  if(!$column2) $column2 = "report_name";
  if(!$direction2) $direction2 = "asc";

Change to:
Code:


  if(empty($column2)) $column2 = "report_name";
  if(empty($direction2)) $direction2 = "asc";


Find line 214-215:
Code:


  if(!$column3) $column3 = "request_name";
  if(!$direction3) $direction3 = "asc";

Change to:
Code:


  if(empty($column3)) $column3 = "request_name";
  if(empty($direction3)) $direction3 = "asc";


That should take care of all the "visible" notices there are others, but I don't want to waste anymore time on them.


Last edited by Palbin on Sun Jan 25, 2009 11:43 am; edited 1 time in total 
Palbin







PostPosted: Sat Jan 24, 2009 11:45 pm Reply with quote

This should solve the problems with weblinks and any other module.

This fix came partially from this topic. [ Only registered users can see links on this board! Get registered or login! ]

The problem is with the case.php and links.php. They have a bunch of code at the top of them that is supposed to check for admin status and stuff. None of this is needed. The index.php already does this and there is no need to hide the link in the admin because the core takes care of this already.

open /modules/Projects/admin/case.php and replace the entire file with this
Code:


<?php

/********************************************************/
/* NukeProject(tm)                                      */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/
if (!defined('ADMIN_FILE')) {
   die ('Access Denied');
}

global $pj_config;

$module_name = 'Projects';
$modname = $pj_config['location'];

switch ($op) {
    case "PJConfig":
    case "PJConfigUpdate":
    case "PJLoadError":
    case "PJMain":
    case "PJMemberAdd":
    case "PJMemberDelete":
    case "PJMemberEdit":
    case "PJMemberInsert":
    case "PJMemberList":
    case "PJMemberPositionAdd":
    case "PJMemberPositionDelete":
    case "PJMemberPositionEdit":
    case "PJMemberPositionFix":
    case "PJMemberPositionInsert":
    case "PJMemberPositionList":
    case "PJMemberPositionOrder":
    case "PJMemberPositionRemove":
    case "PJMemberPositionUpdate":
    case "PJMemberRemove":
    case "PJMemberUpdate":
    case "PJProjectAdd":
    case "PJProjectConfig":
    case "PJProjectConfigUpdate":
    case "PJProjectDelete":
    case "PJProjectEdit":
    case "PJProjectFix":
    case "PJProjectInsert":
    case "PJProjectList":
    case "PJProjectMembers":
    case "PJProjectOrder":
    case "PJProjectPriorityAdd":
    case "PJProjectPriorityDelete":
    case "PJProjectPriorityEdit":
    case "PJProjectPriorityFix":
    case "PJProjectPriorityInsert":
    case "PJProjectPriorityList":
    case "PJProjectPriorityOrder":
    case "PJProjectPriorityRemove":
    case "PJProjectPriorityUpdate":
    case "PJProjectRemove":
    case "PJProjectReports":
    case "PJProjectRequests":
    case "PJProjectStatusAdd":
    case "PJProjectStatusDelete":
    case "PJProjectStatusEdit":
    case "PJProjectStatusFix":
    case "PJProjectStatusInsert":
    case "PJProjectStatusList":
    case "PJProjectStatusOrder":
    case "PJProjectStatusRemove":
    case "PJProjectStatusUpdate":
    case "PJProjectTasks":
    case "PJProjectUpdate":
    case "PJReportCommentDelete":
    case "PJReportCommentEdit":
    case "PJReportCommentRemove":
    case "PJReportCommentUpdate":
    case "PJReportConfig":
    case "PJReportConfigUpdate":
    case "PJReportDelete":
    case "PJReportEdit":
    case "PJReportImport":
    case "PJReportImportInsert":
    case "PJReportList":
    case "PJReportMembers":
    case "PJReportPrint":
    case "PJReportRemove":
    case "PJReportStatusAdd":
    case "PJReportStatusDelete":
    case "PJReportStatusEdit":
    case "PJReportStatusFix":
    case "PJReportStatusInsert":
    case "PJReportStatusList":
    case "PJReportStatusOrder":
    case "PJReportStatusRemove":
    case "PJReportStatusUpdate":
    case "PJReportTypeAdd":
    case "PJReportTypeDelete":
    case "PJReportTypeEdit":
    case "PJReportTypeFix":
    case "PJReportTypeInsert":
    case "PJReportTypeList":
    case "PJReportTypeOrder":
    case "PJReportTypeRemove":
    case "PJReportTypeUpdate":
    case "PJReportUpdate":
    case "PJRequestCommentDelete":
    case "PJRequestCommentEdit":
    case "PJRequestCommentRemove":
    case "PJRequestCommentUpdate":
    case "PJRequestConfig":
    case "PJRequestConfigUpdate":
    case "PJRequestDelete":
    case "PJRequestEdit":
    case "PJRequestImport":
    case "PJRequestImportInsert":
    case "PJRequestList":
    case "PJRequestMembers":
    case "PJRequestPrint":
    case "PJRequestRemove":
    case "PJRequestStatusAdd":
    case "PJRequestStatusDelete":
    case "PJRequestStatusEdit":
    case "PJRequestStatusFix":
    case "PJRequestStatusInsert":
    case "PJRequestStatusList":
    case "PJRequestStatusOrder":
    case "PJRequestStatusRemove":
    case "PJRequestStatusUpdate":
    case "PJRequestTypeAdd":
    case "PJRequestTypeDelete":
    case "PJRequestTypeEdit":
    case "PJRequestTypeFix":
    case "PJRequestTypeInsert":
    case "PJRequestTypeList":
    case "PJRequestTypeOrder":
    case "PJRequestTypeRemove":
    case "PJRequestTypeUpdate":
    case "PJRequestUpdate":
    case "PJTaskAdd":
    case "PJTaskConfig":
    case "PJTaskConfigUpdate":
    case "PJTaskDelete":
    case "PJTaskEdit":
    case "PJTaskInsert":
    case "PJTaskList":
    case "PJTaskMembers":
    case "PJTaskPriorityAdd":
    case "PJTaskPriorityDelete":
    case "PJTaskPriorityEdit":
    case "PJTaskPriorityFix":
    case "PJTaskPriorityInsert":
    case "PJTaskPriorityList":
    case "PJTaskPriorityOrder":
    case "PJTaskPriorityRemove":
    case "PJTaskPriorityUpdate":
    case "PJTaskRemove":
    case "PJTaskStatusAdd":
    case "PJTaskStatusDelete":
    case "PJTaskStatusEdit":
    case "PJTaskStatusFix":
    case "PJTaskStatusInsert":
    case "PJTaskStatusList":
    case "PJTaskStatusOrder":
    case "PJTaskStatusRemove":
    case "PJTaskStatusUpdate":
    case "PJTaskUpdate":
    include("modules/".$modname."/admin/index.php");
    break;
}
?>


open /modules/Projects/admin/links.php and replace the entire file with this
Code:


<?php

/********************************************************/
/* NukeProject(tm)                                      */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/
if (!defined('ADMIN_FILE')) {
   die ('Access Denied');
}

global $admin_file, $pj_config;

$module_name = 'Projects';
$modname = $pj_config['location'];

adminmenu($admin_file.".php?op=PJMain", _PJ_TITLE, "nukeproject.png");
?>
 
Palbin







PostPosted: Sat Jan 24, 2009 11:48 pm Reply with quote

Let me know if that fixes it.
 
jaded







PostPosted: Sun Jan 25, 2009 8:47 am Reply with quote

Palbin,

I was implimenting these changes for him. However, in your post here

Posted: Sun Jan 25, 2009 1:38 am

--------------------------------------------------------------------------------
Here are some additional fixes.

In /modules/Projects/admin/links.php:


None of those lines are in his modules/Projects/admin/links file nor are they in the replacement file that you gave in the next post. Did you intend for those changes to be made to a different file and not admin/links by mistake?

I will have him test the weblinks, etc now and get back to you about the status.

Thank you so much for all of your hard work with this.
 
Palbin







PostPosted: Sun Jan 25, 2009 11:43 am Reply with quote

jaded wrote:
Palbin,

I was implimenting these changes for him. However, in your post here

Posted: Sun Jan 25, 2009 1:38 am

--------------------------------------------------------------------------------
Here are some additional fixes.

In /modules/Projects/admin/links.php:


None of those lines are in his modules/Projects/admin/links file nor are they in the replacement file that you gave in the next post. Did you intend for those changes to be made to a different file and not admin/links by mistake?

I will have him test the weblinks, etc now and get back to you about the status.

Thank you so much for all of your hard work with this.


Sorry about that. It should have read /modules/Projects/public/PJProject.php.

I have edited my post above.
 
Palbin







PostPosted: Sun Jan 25, 2009 11:46 am Reply with quote

Just so everyone knows. the only edits that are really needed are the case.php and the links.php edits. The others are purely optional. They will stop errors from being entered into your error log.
 
jaded







PostPosted: Sun Jan 25, 2009 11:49 am Reply with quote

Thank you, Palbin. I have made these changes for you, Brian. Please post here the results when you test the site.
 
Tizwit







PostPosted: Sun Jan 25, 2009 2:26 pm Reply with quote

Thank you Jaded. I have been gone and away from the computer for most of the weekend. I will test now.
 
Tizwit







PostPosted: Sun Jan 25, 2009 2:29 pm Reply with quote

It looks like this has fixed everything.

Thank you so much Palbin and Jaded.
 
jaded







PostPosted: Sun Jan 25, 2009 2:55 pm Reply with quote

That is excellent, again thank you Palbin. I have recomplied the module and given it to Raven to add to this site's download section. I am also placing it in mine. This way others can easily impliment this module.
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Jan 25, 2009 3:14 pm Reply with quote

Palbin, I am getting the following error after making the above edits:

Warning: include(modules/admin/admin/PJMain.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\RN\modules\Projects\admin\index.php on line 35

Warning: include() [function.include]: Failed opening 'modules/admin/admin/PJMain.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\RN\modules\Projects\admin\index.php on line 35

The good news Web Links appears to be OK now. Good job. Very Happy
 
View user's profile Send private message
jakec







PostPosted: Sun Jan 25, 2009 3:15 pm Reply with quote

Oh yeah, this error is displayed when trying to access the Nuke Project admin area.
 
jaded







PostPosted: Sun Jan 25, 2009 3:16 pm Reply with quote

We are not getting any errors on Tizwit's site after these edits. What version of RN are you using?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

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 ©