Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old November 22nd, 2002   #1 (permalink)
Learning PHP
 
Gamer-X's Avatar
 
Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
PHP Error !!!

I'm just using PHP-Nuke.
When I'm changing the Themes, it gives me an error.
1st Error: Parse error: parse error, expecting `','' or `';'' in /users/coolfreepage.com/smukara/themes/Slash/theme.php on line 246
2nd error: Fatal error: Call to undefined function: themesidebox() in /users/coolfreepage.com/smukara/mainfile.php on line 328
What're those means?
how to count the lines in php? can i use MSWord facility to count the lines?
Thanks
__________________
Learning PHP and Designing a Website
PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card

NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7
Gamer-X is offline   Reply With Quote
Old November 22nd, 2002   #2 (permalink)
Registered User
 
zukeft's Avatar
 
Join Date: Sep 2002
Location: Bogota, Colombia
Posts: 1,157
1) You're probably missing a ; somewhere. The easy way is to download <a href="http://www.ultraedit.com">UltraEdit</a> which is the best editor out there IMO.
2) You're trying to use a function that hasn't been declared, i.e. PHP doesn't know what themeinsidebox() does so it cannot use it in the code. Either it hasn't been included from an external file or it doesn't exist.
__________________
Flaretech.biz web hosting
zukeft is offline   Reply With Quote
Old November 22nd, 2002   #3 (permalink)
.:: PHP King ::.
 
Mohd's Avatar
 
Join Date: Mar 2002
Location: Bahrain
Posts: 580
hey gamer-x send the file to me and I will try to fix this error for you
Mohd is offline   Reply With Quote
Old November 23rd, 2002   #4 (permalink)
Learning PHP
 
Gamer-X's Avatar
 
Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
squall84: 1.The Theme file is Slash Theme from PHPNuke Package (theme.php)
2. The problem is the mainfile.php from PHPNuke package. You can get it there (sorry can't upload it coz i'm currently playing on cybernet)
__________________
Learning PHP and Designing a Website
PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card

NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7
Gamer-X is offline   Reply With Quote
Old November 23rd, 2002   #5 (permalink)
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
The second error is most likely a follow up error to the first one. If the function has been declared in the theme.php, I'm pretty sure the only thing you need to do is to fix the first error and the second will be gone, too.
Could you post line 246 and some lines before and after, we might be able to find the error. (I'm too lazy to download it myself )
__________________
Bred for its skills in magic
Nezzar is offline   Reply With Quote
Old November 24th, 2002   #6 (permalink)
.:: PHP King ::.
 
Mohd's Avatar
 
Join Date: Mar 2002
Location: Bahrain
Posts: 580
If you fix the first error the second one will not apear, because the error in the function it self
Mohd is offline   Reply With Quote
Old November 30th, 2002   #7 (permalink)
Learning PHP
 
Gamer-X's Avatar
 
Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
Talking Here's the files

btw, here's the files (theme.php and mainfile.php)

and i dont have ultraedit yet
Attached Files
File Type: zip error.zip (10.5 KB, 16 views)
__________________
Learning PHP and Designing a Website
PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card

NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7
Gamer-X is offline   Reply With Quote
Old December 1st, 2002   #8 (permalink)
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
Change line 246 in theme.php to this:
PHP Code:
<?php echo "Contributed by <a href=\"modules.php?name=Your_Account&amp;op=userinfo&uname=$informant\">$informant</a>"?>
There was a second opening php-tag and another echo.
__________________
Bred for its skills in magic
Nezzar is offline   Reply With Quote
Old December 2nd, 2002   #9 (permalink)
Learning PHP
 
Gamer-X's Avatar
 
Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
Nezzar: Thanks for your solution.

Now,
How to Change this PHPNuke Logo to our logo?
I've searched the option but can't find a hint

<Gamer-X>
__________________
Learning PHP and Designing a Website
PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card

NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7
Gamer-X is offline   Reply With Quote
Old December 2nd, 2002   #10 (permalink)
NSBQ nut
 
Nezzar's Avatar
 
Join Date: Aug 2001
Location: .de
Posts: 1,208
Why not just overwrite the old one using FTP?
__________________
Bred for its skills in magic
Nezzar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 23:13.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5