- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- March 2004
- Status:
- offline
- last visit:
- 23.10.04
- Posts:
- 19
I've installed Xanthia and pnRender and I've added the PiterpanV2 theme. It works fine, but I uploaded pnDefault to the themes folder and when I click "add theme" I get this error message:
Fatal error: Call to undefined function: phpdefine() in /www/a/adriancc/htdocs/themes/pnDefault/lang/eng/xaninit.php on line 1
Any ideas on how to fix this?
Danny -
- rank:
-
Helper
- registered:
- January 2003
- Status:
- offline
- last visit:
- 09.09.08
- Posts:
- 138
Ive been messing with it for a while tonight trying to figure this one out...
go check out that file xaninit.php it needs a space after the PHP call
Code
<?phpdefine("_SELECTHEME", "Select color you want for your theme :");define("_THEMECOLOR1", "Grey");define("_THEMECOLOR2", "Red");define("_THEMECOLOR3", "Blue");define("_THEMECOLOR4", "Green");define("_THEMECOLOR5", "Brown");define("_THEMECOLOR6", "Orange");define("_THEMECOLOR7", "Violet");define("_SETTHEME", "Select");define("_STYLEBUT","Buttons Style");define("_TITLESIZ","Title Size");define("_TEXTSIZ","Text Size");define("_LITTLESIZ","Litle Text Size");define("_XA_HEADERMENU","Header Menu");define("_XA_TOPLINKS","Toplinks");define("_XA_FOOTERMENU","Footer Menu");
// Themes Configdefine("_TM","");define("_TMBUTTONSTYLE","Buttons Style");define("_TMSIZETITLE","Title Size");define("_TMSIZETEXT","Text Size");define("_TMSIZESMALL","Small Size");define("_TMWIDTHPAGE","Page Width");define("_TMWIDTHLCOL","Left Column Width");define("_TMWIDTHRCOL","Right Column Width");define("_TMWIDTHINBLOCK","Inner Block Width");define("_TMINDEXCOL","Index Column");define("_TMRIGHTCOLON","Right Column");
?>
and change it to
Code
<?php
define("_SELECTHEME", "Select color you want for your theme :");
define("_THEMECOLOR1", "Grey");
define("_THEMECOLOR2", "Red");
define("_THEMECOLOR3", "Blue");
define("_THEMECOLOR4", "Green");
define("_THEMECOLOR5", "Brown");
define("_THEMECOLOR6", "Orange");
define("_THEMECOLOR7", "Violet");
define("_SETTHEME", "Select");
define("_STYLEBUT","Buttons Style");
define("_TITLESIZ","Title Size");
define("_TEXTSIZ","Text Size");
define("_LITTLESIZ","Litle Text Size");
define("_XA_HEADERMENU","Header Menu");
define("_XA_TOPLINKS","Toplinks");
define("_XA_FOOTERMENU","Footer Menu"); // Themes Config
define("_TM","");
define("_TMBUTTONSTYLE","Buttons Style");
define("_TMSIZETITLE","Title Size");
define("_TMSIZETEXT","Text Size");
define("_TMSIZESMALL","Small Size");
define("_TMWIDTHPAGE","Page Width");
define("_TMWIDTHLCOL","Left Column Width");
define("_TMWIDTHRCOL","Right Column Width");
define("_TMWIDTHINBLOCK","Inner Block Width");
define("_TMINDEXCOL","Index Column");
define("_TMRIGHTCOLON","Right Column");
?>
then try and install your theme ;)
--
Yo motha fucka! WEEEEEEEEEEEEEEEEE! -
- rank:
-
Freshman
- registered:
- March 2004
- Status:
- offline
- last visit:
- 23.10.04
- Posts:
- 19
No, wait. That was the problem. There was already a return after <PHP, but I added a space and another return and now it works. I'm not sure why that made a difference, but thanks for the help! -
- rank:
-
Helper
- registered:
- January 2003
- Status:
- offline
- last visit:
- 09.09.08
- Posts:
- 138
personman2
Fatal error: Call to undefined function: phpdefine() in /www/a/adriancc/htdocs/themes/pnDefault/lang/eng/xaninit.php on line 1
this why i guess the space was your problem too? glad you got it to work though :D
--
Yo motha fucka! WEEEEEEEEEEEEEEEEE! -
- rank:
-
Helper
- registered:
- January 2003
- Status:
- offline
- last visit:
- 09.09.08
- Posts:
- 138
jn
The original language file doesn't look this way.
I think the file messed up when we uploaded it... what I get for letting cuteftp do auto-detect instead of telling it to do ascii. I changed it to what it should look like
--
Yo motha fucka! WEEEEEEEEEEEEEEEEE! -
- rank:
-
Professional
- registered:
- April 2002
- Status:
- offline
- last visit:
- 24.11.08
- Posts:
- 716
That might be the cause.Pharaoh
I think the file messed up when we uploaded it...
Hint: I'm very satisfied with filezilla FTP Client
Jörg -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
I too can recommend filezilla as the best ftp client around. It's open source which is even better - http://filezilla.sourceforge.net.
-Mark
