1
warfaa
Ex news theme
  • 2004/11/29 23:58

  • warfaa

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


I have tried to make new theme starting from exnews theme. I finished and uploaded to the site. then I went to Administration Menu -> System Administration -> Preferences -> General Settings and selected the new theme and Saved changes. But when i select the new theme then it opens an empty page. I used a dreamwaver. What can be wrong when you get an empty page.

I deleted all files from within the templates_c/ folder using an FTP client.

Thanks

2
brash
Re: Ex news theme
  • 2004/11/30 0:09

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Go into admin and turn on PHP debug. Most likely it will be a pathing issue in your theme.html file.

3
talunceford
Re: Ex news theme

can you post the theme.html code, I can take a look at it.

4
brash
Re: Ex news theme
  • 2004/11/30 0:10

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Beat you by the tip of my nose Tim

5
talunceford
Re: Ex news theme

haha, well it looks like we were thinking of the same solution though....

6
warfaa
Re: Ex news theme
  • 2004/11/30 11:07

  • warfaa

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


Thanks brash and talunceford and I turned on PHP debug and got :
Parse error: parse error in /pub/home/somalitr/htdocs/xoop/html/templates_c/tijaabo^theme.html on line 248

that line is the end of html


HTML code:

<!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}><meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">" 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}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>


<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>


</head>



<body>

<table class="exnews" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>

<td>


<table cellpadding="0">

<tr id="header">
<td colspan="3" id="headerbanner">

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>
<td id="headerbanner" align="center"><{$xoops_banner}> </td>
</tr>

</table>

</td>
</tr>

<tr>

<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0" valign="center">
<tr>
<td id="headerbarleft">empty</td>
<td id="headerbarcenter"><img align="center" img src="<{$xoops_url}>/themes/tijaabo/logo.jpg" /></td>
<td id="headerbarright">empty</td>
</tr>
</table>

</td>
</tr>

<tr>

<td width="266" bgcolor="#8C0003" colspan="2" height="8" border="0" cellspacing="0" cellpadding="1"></td>

</tr>

<tr>
<td align="center" colspan="2">
<table width="300px" border="0" cellspacing="0" cellpadding="0">
<tr align="center" width="300px">
<td width="0" bgcolor="#d7d7d7"></td>
<td id="headerbar">Home</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">archive</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">wfchannel</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">contacts</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">myalbum</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">advertising</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">classisied</td>
</tr>
</table>
</td>
</tr>


</table>
</td>
</tr>


<!-- starts left center right bloks -->
<tr>
<td><table cellpadding="0">
<tr>
<td id="leftcolumn">
<!-- starts left blok -->
<{foreach item=block from=$xoops_lblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="120" height="1" alt="" />
<{/foreach}>
<!-- End left blocks loop -->
</td>

<td id="centerCcolumn">
<div id="content"><div class="blockTitle">
<{$xoops_contents}>
</div>
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0" class="blok" align="center" cellpadding="3">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td id="centerLcolumn">

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>

<td id="centerRcolumn">

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-right blocks loop -->

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

</td>
<{if $xoops_showrblock == 1}>

<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="120" height="1" alt="" />
<{/foreach}>
<!-- End right blocks loop -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="footerbar"> Somalitribune.com</td>
</tr>

</table>

</body>
</html>

7
talunceford
Re: Ex news theme

I found the problem. Just cruise down to the bottom of the code that you supplied. You should see a couple lines of code that are bold. You had an "if" statement that wasn't closed. Just add the closing <{/if}> to the code like I have provided you, and it should work fine. It worked fine on my server at least.


Quote:

warfaa wrote:
Thanks brash and talunceford and I turned on PHP debug and got :
Parse error: parse error in /pub/home/somalitr/htdocs/xoop/html/templates_c/tijaabo^theme.html on line 248

that line is the end of html


HTML code:

<!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}><meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">" 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}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>


<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>


</head>



<body>

<table class="exnews" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>

<td>


<table cellpadding="0">

<tr id="header">
<td colspan="3" id="headerbanner">

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>
<td id="headerbanner" align="center"><{$xoops_banner}> </td>
</tr>

</table>

</td>
</tr>

<tr>

<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0" valign="center">
<tr>
<td id="headerbarleft">empty</td>
<td id="headerbarcenter"><img align="center" img src="<{$xoops_url}>/themes/tijaabo/logo.jpg" /></td>
<td id="headerbarright">empty</td>
</tr>
</table>

</td>
</tr>

<tr>

<td width="266" bgcolor="#8C0003" colspan="2" height="8" border="0" cellspacing="0" cellpadding="1"></td>

</tr>

<tr>
<td align="center" colspan="2">
<table width="300px" border="0" cellspacing="0" cellpadding="0">
<tr align="center" width="300px">
<td width="0" bgcolor="#d7d7d7"></td>
<td id="headerbar">Home</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">archive</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">wfchannel</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">contacts</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">myalbum</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">advertising</td>
<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar">classisied</td>
</tr>
</table>
</td>
</tr>


</table>
</td>
</tr>


<!-- starts left center right bloks -->
<tr>
<td><table cellpadding="0">
<tr>
<td id="leftcolumn">
<!-- starts left blok -->
<{foreach item=block from=$xoops_lblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="120" height="1" alt="" />
<{/foreach}>
<!-- End left blocks loop -->
</td>

<td id="centerCcolumn">
<div id="content"><div class="blockTitle">
<{$xoops_contents}>
</div>
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0" class="blok" align="center" cellpadding="3">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td id="centerLcolumn">

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>

<td id="centerRcolumn">

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End center-right blocks loop -->

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

</td>
<{if $xoops_showrblock == 1}>

<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<img src="<{$xoops_imageurl}>160.gif" width="120" height="1" alt="" />
<{/foreach}>
<!-- End right blocks loop -->
</td>
<{/if}>
</tr>
</table>
</td>
</tr>
<tr>
<td class="footerbar"> Somalitribune.com</td>
</tr>

</table>

</body>
</html>


Close the line that I have bolded up. It should work fine then.

8
warfaa
Re: Ex news theme
  • 2004/11/30 21:02

  • warfaa

  • Just popping in

  • Posts: 12

  • Since: 2004/11/10


Thanks talunceford, It worked

9
talunceford
Re: Ex news theme

Not a prob!

Login

Who's Online

239 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits