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



Joined: Mar 07, 2005
Posts: 19

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

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
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

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

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


Patched 2.9 upto some patched 3.1

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
greg01







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

No, I've only placed the code.
 
gregexp
The Mouse Is Extension Of Arm



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

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

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.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greg01







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

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?
 
Dauthus
Worker
Worker



Joined: Oct 07, 2003
Posts: 211

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

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");
}

_________________
Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
greg01







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

Here is what I get:

Parse error: syntax error, unexpected '.' in /home/edit/public_html/includes/nsnpz_func.php on line 298
 
gregexp







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

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.
 
greg01







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

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";
 
gregexp







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

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.
 
greg01







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

Those are the lines you requested 295-302
 
evaders99







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

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";
 
greg01







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

That did it! It works! Woohoo!

Thanks to all that helped me resolve this.
 
gregexp







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

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