1
mgcube
theme.html problem!
  • 2003/11/17 20:59

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Ok I need to edit my theme.html file to put some HTML in for my host. I have edited it to my liking and it gives me a dumb error. The error is as follows:
Quote:
This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.


I am simply adding this code to my theme.html file. This i add to the header section:
<link rel="stylesheet" type="text/css" href="http://www.nettendo.com/nav/nBar.css">




And this i am adding bellow the body tag:



<!-- HOST STUFF -->
<
table width="100%" height="18" cellpadding="0" cellspacing="0"><tr><td>

<
script language="JavaScript" src="http://www.nettendo.com/nav/nBar.js"></script>

<
script language="JavaScript">
/* MAIN */
var Home = new nbItem ("Home""http://www.nettendo.com");

var 
neTTendoMenu = new nbInitMenu ("neTTendoMenu"Home);
var 
neTTendo = new nbMenuButton ('neTTendo'neTTendoMenu);



/* HOSTED SITES */
var ACTK = new nbItem ("Animal Crossing Textures Kiosk""http://www.nintendocubed.com/~actk");
var 
ACUK =  new nbItem ("Animal Crossing UK""http://www.animal-crossing.co.uk");
var 
CODF = new nbItem ("Call Of Duty Files""http://www.cod-files.co.uk");
var 
FFUK = new nbItem ("Final Fantasy UK""http://ffuk.nettendo.com");
var 
HD = new nbItem ("Hutch-Designs""http://www.nintendocubed.com/~hutch-designs");
var 
moc = new nbItem ("Masters of Camping""http://moc.nettendo.com");
var 
MGC = new nbItem ("Mega GameCube""http://www.nintendocubed.com/~mgcube");
var 
nCubed = new nbItem ("nCubed""http://www.nintendocubed.com");
var 
ndiff = new nbItem ("The Nintendo Difference""http://n-difference.nettendo.com");

var 
NetworkMenu = new nbInitMenu ("NetworkMenu"ACTKACUKCODFFFUKHDmocMGCnCubedndiff);
var 
Network = new nbMenuButton ('The Nintendo Network'NetworkMenu);


// Affiliates
var DesignAlpha = new nbItem ("Design Alpha""http://www.designalpha.com");

var 
AffiliatesMenu = new nbInitMenu ("AffiliatesMenu"DesignAlpha);
var 
Affiliates = new nbMenuButton ('Network Affiliates'AffiliatesMenu);


// Display
var navBar = new nbBody (neTTendoNetworkAffiliates);
nbInit (navBar);</script>
<
img src="http://www.nettendo.com/nav/images/hr.jpg" width="100%"></td></tr></table>
<!-- 
END HOST STUFF -->



I am using the blueish theme. I have XOOPS 2.0.5. Am I doing anything wrong? I go to say to upadte the theme.html and such and it gets all mad at me.

2
mvandam
Re: theme.html problem!
  • 2003/11/17 21:18

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Have you turned on PHP warnings?... maybe we can get an error to see what is wrong.

I'm not sure it's your problem, but I am wondering about your structures like <img src="<a href... Is this valid HTML? I could be wrong, but I think it should be something like:

<a href="blahblah" target="_blank"><img src="blahblah" /></a>

3
Herko
Re: theme.html problem!
  • 2003/11/17 21:24

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


mvandam: that's XOOPS that detects links, and adds the a href code to it in the [ code] text mode. Reply, and use the 'quote' option to see the real code he pasted...

Herko

4
mvandam
Re: theme.html problem!
  • 2003/11/17 22:37

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Herko, yes, you are right. Anyways, I don't think it would be the source of those errors because I believe that error page should only come up if there is a PHP error, not something wrong in the HTML.

5
mgcube
Re: theme.html problem!
  • 2003/11/18 11:44

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Ok here is the code again:

Quote:
<!-- Top bar thing required by host -->
<table width="100%" height="18" cellpadding="0" cellspacing="0">
<tr>
<td>
<link rel="stylesheet" type="text/css" href="http://www.nettendo.com/nav/nBar.css">
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<script language="JavaScript" src="http://www.nettendo.com/nav/nBar.js"></script>
<script language="JavaScript">
/* MAIN */
var Home = new nbItem ("Home", "http://www.nettendo.com");
var neTTendoMenu = new nbInitMenu ("neTTendoMenu", Home);
var neTTendo = new nbMenuButton ('neTTendo', neTTendoMenu);
/* HOSTED SITES */
var ACTK = new nbItem ("Animal Crossing Textures Kiosk", "http://www.nintendocubed.com/~actk");
var ACUK = new nbItem ("Animal Crossing UK", "http://www.animal-crossing.co.uk");
var CODF = new nbItem ("Call Of Duty Files", "http://www.cod-files.co.uk");
var FFUK = new nbItem ("Final Fantasy UK", "http://ffuk.nettendo.com");
var HD = new nbItem ("Hutch-Designs", "http://www.nintendocubed.com/~hutch-designs");
var moc = new nbItem ("Masters of Camping", "http://moc.nettendo.com");
var MGC = new nbItem ("Mega GameCube", "http://www.nintendocubed.com/~mgcube");
var nCubed = new nbItem ("nCubed", "http://www.nintendocubed.com");
var NetworkMenu = new nbInitMenu ("NetworkMenu", ACTK, ACUK, CODF, FFUK, HD, moc, MGC, nCubed);
var Network = new nbMenuButton ('The Nintendo Network', NetworkMenu);
// Affiliates
var DesignAlpha = new nbItem ("Design Alpha", "http://www.designalpha.com");
var AffiliatesMenu = new nbInitMenu ("AffiliatesMenu", DesignAlpha);
var Affiliates = new nbMenuButton ('Network Affiliates', AffiliatesMenu);
// Display
var navBar = new nbBody (neTTendo, Network, Affiliates);
nbInit (navBar);</script>
<img src="http://www.nettendo.com/nav/images/hr.jpg" width="100%">
</td>
</tr>
</table>
<!-- End Top bar thing required by host -->



I Turned on Debug and here is what it said:

Quote:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: xoops_rblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: xoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: fadeImage in file templates_c/db%3Axoopspartners_block_site.html line 6
Notice [PHP]: Undefined index: partners in file templates_c/db%3Axoopspartners_block_site.html line 40
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: items in file class/smarty/Smarty.class.php line 649
Notice [PHP]: Undefined index: image in file templates_c/file%3A^home^virtual^site17^fst^home^mgcube^public_html^modules^xoopsheadline^blocks^headline_block.html line 7
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: xoops_ccblocks in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 23
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 77
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: stories in file class/smarty/Smarty.class.php line 626
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 17
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 20
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 71
Notice [PHP]: Undefined index: default_theme in file class/smarty/plugins/resource.db.php line 74
Notice [PHP]: Undefined variable: file_path in file class/smarty/plugins/resource.db.php line 96
Notice [PHP]: Undefined index: lang_activenotifications in file templates_c/db%3Asystem_notification_select.html line 7
Error [Xoops]: Smarty: [in blueish/theme.html line 102]: syntax error: unidentified token '}>' (Smarty_Compiler.class.php, line 1228) in file class/smarty/Smarty_Compiler.class.php line 1824





Can you help me?

6
ackbarr
Re: theme.html problem!

Ok - that problem (the last error listed) is caused by an invalid smarty declaration within the theme. In taking a closer look at your intended theme I see the following on line 101:
$xoops_isuser}&amp;gt;

replace this with:
$xoops_isuser}>


On a side note, the html declaration in your theme file is also broken. Change this:
<html xmlns="http: //www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}><meta http-equiv="Content-Type" content="text/htmlcharset=iso-8859-1">
lang="<{$xoops_langcode}>">
<
head>

to this:
<html xmlns="http: //www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

7
mgcube
Re: theme.html problem!
  • 2003/11/18 21:36

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Thanks alot dude! That did it! I am so happy and thnakful.

8
mgcube
Re: theme.html problem!
  • 2003/11/18 22:02

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Ok everything is working fine. I just want to say: "XOOPS ALL THE WAY! DOWN WITH PHPNUKE!!"

Login

Who's Online

166 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits