vWar Module help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   vWar Module help
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
I added a hack for the vWar module and it has an error showing up. What the hack is is a content page just like in the normal Nuke.

The first part of the page.php follows:

<?php
/* #####################################################################################
*
* $Id: page.php,v 1.00 2004/06/17 18:43:01 IronMaiden Exp $
*
* This notice must remain untouched at all times.
*
* Modifications to the script, except the official addons or hacks,
* without the owners permission are prohibited.
* All rights reserved to their proper authors.
*
* ---------------------------------------------
* http://www.vwar.de || Copyright (C) 2001-2004
* ---------------------------------------------
*
* #####################################################################################
*/

// get common functions
$vwar_root = "./";

require($vwar_root . "includes/functions_common.php");
require($vwar_root . "includes/functions_front.php");

// do the quickjump
doQuickjump($GPC['quickjumptarget']);
$quickjump = loadQuickjump($GPC["PURE_PHP_SELF"]);

//template-cache, standard-templates will be added by   script:
   $vwartpllist="content_page";
   $vwartpl->cache($vwartpllist);
   
// header.php
include ($vwar_root . "includes/get_header.php");


This the the part of the function_front the error refferences:

## -------------------------------------------------------------------------------------------------------------- ##

// include language files
if (isset($userlanguage))
{
   if (@file_exists($vwar_root . "includes/language/" . $userlanguage . ".inc.php"))
   {
      require($vwar_root . "includes/language/" . $userlanguage . ".inc.php");
   } else {
      die("Error: File ".$vwar_root . "'includes/language/<b>" . $userlanguage . ".inc.php</b>' is missing!");
   }
}
else if(!empty($GPC['vwarlanguage']))
{
   if (@file_exists($vwar_root . "includes/language/" . $GPC['vwarlanguage'] . ".inc.php"))
   {
      require("modules/vwar/includes/language/".$GPC['vwarlanguage'].".inc.php");
   }   else {
      die("Error: File ".$vwar_root . "'includes/language/<b>" . $GPC['vwarlanguage'] . ".inc.php</b>' is missing!");
   }
}
else
{
   if (@file_exists($vwar_root . "includes/language/" . $vwarlanguage . ".inc.php"))
   {
      require($vwar_root . "includes/language/" . $vwarlanguage . ".inc.php");
   }   else {
      die("Error: File ".$vwar_root . "'includes/language/<b>" . $vwarlanguage . ".inc.php</b>' is missing!");
   }
}

## -------------------------------------------------------------------------------------------------------------- ##


Here is the error message itself:




Warning: main(modules/vwar/includes/language/english.inc.php): failed to open stream: No such file or directory in /home/i3rd-inf/public_html/modules/vwar/includes/functions_front.php on line 47

Fatal error: main(): Failed opening required 'modules/vwar/includes/language/english.inc.php' (include_path='.:/usr/local/lib/php') in /home/i3rd-inf/public_html/modules/vwar/includes/functions_front.php on line 47


I can't get any answers at the vWar site. Even the author of the hack says I have something wrong with my Nuke, which I think is BS.

As always ...any help is mucho apprieciated.


Back to top Reply with quote
#2   re: vWar Module help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
am not familir with vWar however that error normally says either of several things

1. The file is really not there, something went wrong with the installation - in which case you try and reinstal the files againl.
2. The file is there but the web server does not have the right to open it - check your permissions.
3. There is a .htaccess file somewhere in the directory hierarchy that denies access.
4. There is something wrong with the include path of the PHP interpreter.

one of those conditions or maybe even 2 could be causing it. Sorry I cant be more certain...until you run an analyzer



Back to top Reply with quote
#3   re: vWar Module help
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Well the hack was for vWar standalone, and not for the ported version of vWar for Nuke. Most of the posts were in German and I didn't see anywhere what flavor of vWar this hack was for.

Now my next question is how can I get this hack written for the standalone vWar to work on the vWar 1.5 for PHPNuke?

Is there a tut with clear steps on what it takes to port something written in PHP to Nuke?



Back to top Reply with quote
#4   re: vWar Module help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
I've seen several sites that use vWar....have you checked the vWar site to see if they have one already ported? You have a better chance of posting it there since that is their product and they should at least offer support for it



Back to top Reply with quote
#5   re: vWar Module help
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
When I asked the author of the hack how hard it would be to port to Nuke, here was his responce:



i dont know to code nuke, but i wont code it for nuke. but has nuke no a such function or a plugin/block to download?


The guy is German.

So no tutorials on porting to Nuke?



Back to top Reply with quote
#6   re: vWar Module help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
I am not familiar with vWar so I don't know if there is a tut or not.....have you tried doing a google for it?

also, you may want to see if they cna provide you with a list of other sites that have vWar. You can then see if they have what you need



Back to top Reply with quote
#7   re: vWar Module help
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
I am not asking specifically about vWar anymore. Do you know where I can find a good tutorial on porting a php application to PHPNuke?



Back to top Reply with quote
#8   re: vWar Module help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
I have not seen any tuts for porting. You can read the Nuke-How-To and the PHP Manual in the web tools section icon_sad.gif but that's about it



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum