You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 371 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error when I add setup lines to mainfile.php [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
7777777s
Nuke Cadet
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3


PostPosted: Sun Jan 16, 2005 8:37 am Reply with quoteBack to top

When I add:
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
to the mailfile.php and attemp to access my home page I get the following error:

Parse error: parse error, unexpected T_ELSE in /... /mainfile.php on line 444

I edited the javascript.php and header.php files already.

I am using phpnuke 76 and nuke sentinel 213

I am a beginner and could use some suggestions.


Question
Find all posts by 7777777sView user's profileSend private messageVisit poster's website
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Sun Jan 16, 2005 9:21 am Reply with quoteBack to top

Have you added these lines right after the opening "<?" ?

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
7777777s
Nuke Cadet
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3


PostPosted: Sun Jan 16, 2005 9:33 am Reply with quoteBack to top

The edited file looks like this:

<?php
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}

/************************************************************************/
Find all posts by 7777777sView user's profileSend private messageVisit poster's website
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Sun Jan 16, 2005 9:26 pm Reply with quoteBack to top

Looks OK to me. What's around line 444? Post a few lines above and below that line and we'll check it out.

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
7777777s
Nuke Cadet
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3


PostPosted: Mon Jan 17, 2005 1:23 am Reply with quoteBack to top

Thanks for the help, I was using notepad to edit the files; it caused problems with the file. I used DreamWeaver to edit a clean file and that solved it.
Find all posts by 7777777sView user's profileSend private messageVisit poster's website
vojo
Nuke Cadet
Nuke Cadet


Joined: Aug 18, 2004
Posts: 2


PostPosted: Sat May 28, 2005 1:14 pm Reply with quoteBack to top

Hi all!
I have problem in forum admin

Parse error: parse error, unexpected $ in /home/balkanbe/public_html/muzika/modules/Forums/admin/index.php on line 630



line 629 in index.php is end with this code: <b>?></b>


please help me!

Thank's
Find all posts by vojoView user's profileSend private message
CaptDD
Corporal
Corporal


Joined: Jan 02, 2005
Posts: 51

Location: Manistee, MI, USA

PostPosted: Sat May 28, 2005 7:21 pm Reply with quoteBack to top

Did you edit the index.php file? Seems to me that there is a bad line of code somewhere in the file. The error at the end just indicates that the code did not finish a set command and the server reached the end of code before it could complete the task.

_________________
Image
Find all posts by CaptDDView user's profileSend private messageVisit poster's websiteAIM AddressMSN Messenger
vojo
Nuke Cadet
Nuke Cadet


Joined: Aug 18, 2004
Posts: 2


PostPosted: Sat May 28, 2005 10:16 pm Reply with quoteBack to top

Hi CaptDD

I think index.php have edit server administration because Wurm Net-Worm.Perl.Santy, bad support is bad from my server Crying or Very sad

I have original file, but with original file i have again error Crying or Very sad
Find all posts by vojoView user's profileSend private message
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.printer-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.039 Seconds - 258 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::