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
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Thu Oct 26, 2006 9:55 pm Reply with quote Back to top

Ok, I purchased NSN prizes, installed, but when I make the necessary changes to mainfile.php
Code:
#
#-----[ OPEN ]------------------------------------------
#
mainfile.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#

Patched 2.9 upto some patched 3.1
if(defined('FORUM_ADMIN')) {
  include_once("../../../includes/nsnpz_func.php");
} elseif(defined('INSIDE_MOD')) {
  include_once("../../includes/nsnpz_func.php");
} else {
  include_once("includes/nsnpz_func.php");
}


but all I get is a white page. The whole site will not work.
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2853

PostPosted: Thu Oct 26, 2006 11:18 pm Reply with quote Back to top

If you have copied this line into mainfile.php, delete it
Code:

Patched 2.9 upto some patched 3.1
View user's profile Send private message Visit poster's website
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Fri Oct 27, 2006 4:42 pm Reply with quote Back to top

No, I've only placed the code.
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Fri Oct 27, 2006 7:16 pm Reply with quote Back to top

The whole site will not work? This means everything is blank?

That would sudjest that either the file is not there, or is not scripted properly,

Try this.

In ftp, rename the file( nsnpz_func.php) to nsnpz_func1.php.

Then open in a text editor a blank file.

Paste Just this:

<?php
?>

No blanks before or after the ending of the file.

Now save that and name it: nsnpz_func.php.
Upload that to your includes/ folder.
If your site now works with that, then its a script error, if not, then you are either not editing the correct file, patches are not upto date, or your uploading to the wrong folder.

Let us know the results.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Fri Oct 27, 2006 7:34 pm Reply with quote Back to top

Site worked and was viewable. Module did not of course. Must be a coding error in the nsnpz_func.php. Bob emailed me like 2 months ago and said he would fix it, but I haven't heard from him since after repeated attempts.

Any ideas?
View user's profile Send private message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 210

PostPosted: Sat Oct 28, 2006 7:44 pm Reply with quote Back to top

How about keeping the original changes and turning on error reporting in your config.php and reporting the error on the blank page here? It could help.

Another option:

Code:
if ($forum_admin == 1) {
  include_once("../../../includes/nsnpz_func.php");
} elseif ($inside_mod == 1) {
  include_once("../../includes/nsnpz_func.php");
} else {
  include_once("includes/nsnpz_func.php");
}
View user's profile Send private message Visit poster's website
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Sun Oct 29, 2006 1:14 pm Reply with quote Back to top

Here is what I get:

Parse error: syntax error, unexpected '.' in /home/edit/public_html/includes/nsnpz_func.php on line 298
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Sun Oct 29, 2006 1:58 pm Reply with quote Back to top

Ahh Now that shows something, Could you paste the code of lines 295 to 302?

That should give enough to look at to see if there are any coding errors in the syntax.

Thanks.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Sun Oct 29, 2006 3:07 pm Reply with quote Back to top

Code:
      $message .= .": ".stripslashes($cinfo['email'])."\n";
      $message .= .": ".stripslashes(str_replace("<br>", "\n", $cinfo['address']))."\n";
      $message .= .": ".stripslashes($cinfo['phone'])."\n";
      $from  = "From: ".stripslashes($cinfo['email'])."\r\n";
      $from .= "Reply-To: ".stripslashes($cinfo['email'])."\r\n";
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Sun Oct 29, 2006 10:25 pm Reply with quote Back to top

Ok which lines are those, beginning to the end, If I was at my home computer, Id load it up to see any syntax errors, but right now I cannot.

I have only one theory but right now you need solutions not theories.

I doubt Ill be able to fix this in my current place, but as soon as I return, Ill give it my full attention.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Sun Oct 29, 2006 10:30 pm Reply with quote Back to top

Those are the lines you requested 295-302
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2853

PostPosted: Sun Oct 29, 2006 10:31 pm Reply with quote Back to top

Because these lines already use a .= - you don't need a . after the = sign

Code:

      $message .= ": ".stripslashes($cinfo['email'])."\n";
      $message .= ": ".stripslashes(str_replace("<br>", "\n", $cinfo['address']))."\n";
      $message .= ": ".stripslashes($cinfo['phone'])."\n";
View user's profile Send private message Visit poster's website
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 15

PostPosted: Sun Oct 29, 2006 11:18 pm Reply with quote Back to top

That did it! It works! Woohoo!

Thanks to all that helped me resolve this.
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1472
Location: In front of a screen....HELP! lol

PostPosted: Mon Oct 30, 2006 7:14 pm Reply with quote Back to top

Evaders, thanks I was thinking the same thing, except for some reason, Just saw it going haywire if those lines were echod and it wasnt properly syntaxed, Thats why I asked for more, perhaps see the beginning of the $message variable.

I guess it really wouldnt matter considering php wouldnt see a variable if it wasnt the correct syntax when called.

Little unsure of myself there, Thanks for clearing it up for greg01 and myself.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum