PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

Does anyone happen to have a working NukeProjects? Or know of any one that is working to get a compatable version for RN?
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

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: 3143
Location: Germany:Moderator German NukeSentinel Support

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

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 Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

I just saw that.
View user's profile Send private message Send e-mail Visit poster's website
Tizwit
Involved
Involved


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

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

I did all the suggested Fixes listed in the Forums and none have corrected the issue with the newest RN.
View user's profile Send private message Visit poster's website
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

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

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 Back to top

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.
View user's profile Send private message Visit poster's website
Tizwit
Involved
Involved


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

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

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 to the forums!


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

Thank you all for the help.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


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

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

I'll download it now and take a look at it.
View user's profile Send private message
Tizwit
Involved
Involved


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

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

Thank you Palbin
View user's profile Send private message Visit poster's website
Palbin
Site Admin


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

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

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 to the forums!
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";
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


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

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

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
View user's profile Send private message
Palbin
Site Admin


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

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

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 to the forums!


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");
?>
View user's profile Send private message
Palbin
Site Admin


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

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

Let me know if that fixes it.
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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.
View user's profile Send private message Visit poster's website
Palbin
Site Admin


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

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

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.
View user's profile Send private message
Palbin
Site Admin


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

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

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.
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

Thank you, Palbin. I have made these changes for you, Brian. Please post here the results when you test the site.
View user's profile Send private message Visit poster's website
Tizwit
Involved
Involved


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

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

Thank you Jaded. I have been gone and away from the computer for most of the weekend. I will test now.
View user's profile Send private message Visit poster's website
Tizwit
Involved
Involved


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

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

It looks like this has fixed everything.

Thank you so much Palbin and Jaded.
View user's profile Send private message Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

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.
View user's profile Send private message Visit poster's website
jakec
Site Admin


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

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

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
Site Admin


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

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

Oh yeah, this error is displayed when trying to access the Nuke Project admin area.
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

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

We are not getting any errors on Tizwit's site after these edits. What version of RN are you using?
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum