1
dfzor
Theme.html being re-written upon server-side execution?
  • 2004/5/6 17:20

  • dfzor

  • Just popping in

  • Posts: 9

  • Since: 2004/5/6 0


So I'm trying to edit the phpkaox theme.html file, I go in and replace the current file with my edited one, which is as follows:

Quote:

<BASE CPTAG=1 HREF="http://bluesummers.com/">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="shortcut icon" />

<link rel="stylesheet" href="img/css.css">
<style type="text/css">
@import url(img/css.css);
</style>

</head>
<body>
<div id="body">

<div id="body">
<div id="text">
<{$xoops_contents}>
</div>
</div>
<div id="footer"><img src="img/foot.png">
</div>
</div>

<div id="top">
<img src="img/top.png">
</div>
<div id="nav">
<a href="#" class="navtxt">home</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">articles</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">reviews</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">forums</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">about</a>
</div>
<div id="gad">
<img src="img/placeholder.gif">
</div>
</body>
</html>


Now the changes are uploaded, file is overwritten, then I go to view my new page and the code is gimped, as is it in the theme.html file, it gets turned into this:

Quote:

<BASE CPTAG=1 HREF="http://bluesummers.com/">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body><BASE CPTAG=1 HREF="http://bluesummers.com/">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="shortcut icon" />

<link rel="stylesheet" href="img/css.css">
<style type="text/css">
@import url(img/css.css);
</style>

</head>
<body>
<div id="body">

<div id="body">
<div id="text">
<{$xoops_contents}>
</div>
</div>
<div id="footer"><img src="img/foot.png">
</div>
</div>

<div id="top">
<img src="img/top.png">
</div>
<div id="nav">
<a href="#" class="navtxt">home</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">articles</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">reviews</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">forums</a>
<img src="img/spacer.png">
<a href="#" class="navtxt">about</a>
</div>
<div id="gad">
<img src="img/placeholder.gif">
</div>
</body>
</html></body></html></body></html>

</body></html></body></html>


Take note that the javascript reference I had removed is now back, there are way too many <body> tags, <html> tags, basically it's ignoring everything I just changed and reverting back to its old self with my changes appended at the very bottom - doing all of nothing.

Now why is XOOPS re-coding the theme file?

2
Herko
Re: Theme.html being re-written upon server-side execution?
  • 2004/5/6 17:40

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


XOOPS can't rewrite the theme.html file (by default, that file isn't even writable by the system). I think you're looking at another theme, or a cached version of it. Make sure your theme is selectable from the themes list, and that you update the template files (both settings can be found at system admin -> preferences -> general settings).

Herko

3
Mithrandir
Re: Theme.html being re-written upon server-side execution?

right - when you change the theme.html file, you need to turn on the "Update module templates from themes/yourtheme folder" setting in general preferences.

Once the theme.html is to your liking, turn the setting off again.

4
dfzor
Re: Theme.html being re-written upon server-side execution?
  • 2004/5/6 21:00

  • dfzor

  • Just popping in

  • Posts: 9

  • Since: 2004/5/6 0


Ohhh - much appreciated.

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!