Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
LadySyren
Regular
Regular



Joined: Sep 03, 2004
Posts: 56
Location: Iowa

PostPosted: Fri Dec 10, 2004 7:45 pm Reply with quote

Ok, I've done a clean install of nuke 7.5 and the only thing I did was to add the code required for the Nuke Sentinel in the mainfile, javascript, header files.

WHen logging out, this is what I get:

Parse error: parse error, unexpected $ in /home/xxxx/public_html/xxxx/modules/Your_Account/index.php on line 1383

Now, I'm thinking that some of the other problems I had stem from this area too because I had other error messages involving that file. Can I pm the file to someone to look over and possibly help me fix it?

_________________
| RPG Network | 
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Dec 10, 2004 8:20 pm Reply with quote

Can you just post lines 1380 to 1390?
 
View user's profile Send private message
LadySyren







PostPosted: Fri Dec 10, 2004 8:43 pm Reply with quote

Sure. But this entire file looks like a huge mess! If I had to fix anything, I wouldn't know where to begin and I have no idea how it got this way.
Code:
echo "<tr><td bgcolor='$bgcolor2'><b>Select Avatar from gallery:</b></td>"

       ."<td bgcolor='$bgcolor3'><b>Gallery Avatars Currently Disabled</b></td></tr>";
            }
       if ($board_config['allow_avatar_upload']) {
       echo "<tr><td bgcolor='$bgcolor2'><b>Upload Avatar from your machine:</b></td>"
       ."<td bgcolor='$bgcolor3'><a href=\"forums.html?file=profile&mode=editprofile\"><b>Upload Through Forum Profile</b></a></td></tr>"
       ."<tr><td bgcolor='$bgcolor2'><b>Upload Avatar from a URL:</b><br><SPAN class=gensmall>Enter the URL of the location containing the Avatar image and click on the submit button below, the Avatar image will be copied to this site.</SPAN></td>"
 
Raven







PostPosted: Fri Dec 10, 2004 9:01 pm Reply with quote

Zip it up and email it to me.
 
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Fri Dec 10, 2004 9:37 pm Reply with quote

While Gaylen (the Master) checks that file for you, may I inquire as to what text editor you use to add/subtract things from your php files? It may very well be that whatever you're using is adding character controls or other 'hidden' things into the php file when you re-save the edits. That would explain an awful lot of these mysterious errors...

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
LadySyren







PostPosted: Fri Dec 10, 2004 10:26 pm Reply with quote

I don't use a text editor. I just access the file directly from the domain and edit it there then save it.

Zipped file sent, Raven. Thanks so much!
 
Raven







PostPosted: Fri Dec 10, 2004 10:36 pm Reply with quote

line 1383 is this
Code:
    <input type="text" name="commentmax" value="<?php echo $userinfo[commentmax] "size=11 maxlength=11>

It should be thi
Code:
    <input type="text" name="commentmax" value="<?php echo $userinfo[commentmax]?> "size=11 maxlength=11>

Who's been messin' Laughing ?
 
LadySyren







PostPosted: Sat Dec 11, 2004 12:27 am Reply with quote

Towards the bottom of that file, last paragraph or so, are all of those ?> <?php tags suppose to be there?

I can't figure out how any of it got changed. I don't have anything on the site that requires anything to be added or altered in that file in order to work. Strange.
 
Raven







PostPosted: Sat Dec 11, 2004 1:41 am Reply with quote

Yes they are. You were just missing a closing tag.
 
LadySyren







PostPosted: Sat Dec 11, 2004 8:18 am Reply with quote

Ahh ok.

Here's the oddest thing that I didn't think to check at all last night. Somehow, when I was transferring the files for 7.5 over, it didn't transfer all of the index file for the Your Account module. I just noticed this today when looking things over that the file uploaded to the domain was over 20,000 kb less than what the size of the original file said it was!

I re-uploaded the index file and things seem to be fine again.

Boy, do I feel stupid now.

Thank y'all so much for the help!
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

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 ©