1
chefry
Exnews v2.0
  • 2010/1/13 13:32

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


The top of this theme shows two empty cells on the left and the right.

Does anyone know how to insert a block into the empty cells?

or at least remove the words "Empty Cell"?


TIA!

2
Burning
Re: Exnews v2.0
  • 2010/1/13 14:11

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

You have to edit theme.html, header part

<!-- Header -->
<
table cellspacing="0" class="main" align="center">
  <
tr>
    <
td  id="headerbarleft">EMPTY CELL</td>
    <
td id="headerbarcenter"><a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/logo.jpg}>" alt="" border="0" /></a></td>
    <
td id="headerbarright">EMPTY CELL</td>
  </
tr>
  <
tr>
    <
td colspan="3">
            <
table cellspacing="0" id="topMenu" >
              <
tr>
                <
td><a href="<{xoAppUrl /}>">home</a></td>
                <
td><a href="<{xoAppUrl /modules/news}>">news</a></td>
                <
td><a href="<{xoAppUrl /modules/article}>">articles</a></td>
                <
td><a href="<{xoAppUrl /modules/newbb}>">forum</a></td>
                <
td><a href="<{xoAppUrl /modules/extgallery}>">gallery</a></td>
                <
td><a href="<{xoAppUrl /modules/extcal}>">events</a></td>
                <
td><a href="<{xoAppUrl /modules/formulaire}>">contact</a></td>
              </
tr>
            </
table>
    </
td>
  </
tr>
  <
tr>
    <
td colspan="3" id="userSection"><{$smarty.now|date_format:"%A, %B %e, %Y"}> | <{if $xoops_isuser}>  Hello <a href="<{xoAppUrl /user.php}>"><{$xoops_uname}></a> |  
        <
a href="<{xoAppUrl /user.php?op=logout}>">logout</a
       <{else}> <
a href="<{xoAppUrl /user.php}>">Login</a
       <{/if}>    </
td>
  </
tr>
</
table>


Like this (not tested)
<!-- Header -->
<
table cellspacing="0" class="main" align="center">
  <
tr>

    <
td id="headerbarcenter"><a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/logo.jpg}>" alt="" border="0" /></a></td>

  </
tr>
  <
tr>
    <
td>
            <
table cellspacing="0" id="topMenu" >
              <
tr>
                <
td><a href="<{xoAppUrl /}>">home</a></td>
                <
td><a href="<{xoAppUrl /modules/news}>">news</a></td>
                <
td><a href="<{xoAppUrl /modules/article}>">articles</a></td>
                <
td><a href="<{xoAppUrl /modules/newbb}>">forum</a></td>
                <
td><a href="<{xoAppUrl /modules/extgallery}>">gallery</a></td>
                <
td><a href="<{xoAppUrl /modules/extcal}>">events</a></td>
                <
td><a href="<{xoAppUrl /modules/formulaire}>">contact</a></td>
              </
tr>
            </
table>
    </
td>
  </
tr>
  <
tr>
    <
td id="userSection"><{$smarty.now|date_format:"%A, %B %e, %Y"}> | <{if $xoops_isuser}>  Hello <a href="<{xoAppUrl /user.php}>"><{$xoops_uname}></a> |  
        <
a href="<{xoAppUrl /user.php?op=logout}>">logout</a
       <{else}> <
a href="<{xoAppUrl /user.php}>">Login</a
       <{/if}>    </
td>
  </
tr>
</
table>

3
chefry
Re: Exnews v2.0
  • 2010/1/13 19:38

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Well, that's unfortunate if you cqan only insert images

I was hoping it coul display random images or excal minical there

4
Burning
Re: Exnews v2.0
  • 2010/1/13 21:27

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Yes, only for static content.

If it was a morphogenesis theme, with a little trick, I believe it would be possible to put 2 blocs.

You could use Boox module to make false blocks (= content handled with a form in back office)

5
luthermartin
Re: Exnews v2.0

I tried to modify Exnews theme using the code listed in the threads. It did not remove the empty cells text. Has anyone managed to get the empty cells text removed? I made the modifications as indicated below:


<!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><body bgcolor="#FFFFFF">
<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="Microsoft FrontPage 5.0" />
<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>
<body bgcolor="#FFFFFF">

<!-- changes start here -->
<!-- Header -->
<table cellspacing="0" class="main" align="center">
<tr>

<td id="headerbarcenter"><a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/logo.jpg}>" alt="" border="0" /></a></td>

</tr>
<tr>
<td>
<table cellspacing="0" id="topMenu" >
<tr>
<td><a href="<{xoAppUrl /}>">home</a></td>
<td><a href="<{xoAppUrl /modules/news}>">news</a></td>
<td><a href="<{xoAppUrl /modules/article}>">articles</a></td>
<td><a href="<{xoAppUrl /modules/newbb}>">forum</a></td>
<td><a href="<{xoAppUrl /modules/extgallery}>">gallery</a></td>
<td><a href="<{xoAppUrl /modules/extcal}>">events</a></td>
<td><a href="<{xoAppUrl /modules/formulaire}>">contact</a></td>
</tr>
</table>
<!-- changes end here -->
</td>
</tr>
<tr>
<td id="userSection"><{$smarty.now|date_format:"%A, %B %e, %Y"}> | <{if $xoops_isuser}> Hello <a href="<{xoAppUrl /user.php}>"><{$xoops_uname}></a> |
<a href="<{xoAppUrl /user.php?op=logout}>">logout</a>
<{else}> <a href="<{xoAppUrl /user.php}>">Login</a>
<{/if}> </td>
</tr>
</table>

</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 cellspacing="0" cellpadding="0" width="300px" border="0">
<tr align="center" width="300px">


<td width="0" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/index.php">HOME</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuhead"
href="<{$xoops_url}>/modules/news/archive.php">ARCHIVES</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/modules/wfchannel/index.php?pagenum=2">WFCHANNEL</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/modules/contact/">CONTACT</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/modules/myalbum/">MYALBUM</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/modules/wfchannel/index.php?pagenum=3">ADVERTISING</a></td>

<td width="1" bgcolor="#d7d7d7"></td>
<td id="headerbar"><a class="menuHead"
href="<{$xoops_url}>/modules/myAds/">CLASSIFIEDS</a></td>


<td width="1" bgcolor="#d7d7d7"></td>


</tr>
</table><tr><td id="headerbar_vrijeme"> <span id="clock"></span>
<script language="JavaScript" type="text/javascript" src="<{$xoops_url}>
/themes/exnews/clock.js">
</script>&nbsp; |<{if $xoops_isuser}>  Hello <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a> <{/if}></span> <span class="right">
<{if $xoops_isuser}> <a href="<{$xoops_url}>/user.php?op=logout"></a>
<{else}> &nbsp;&nbsp;&nbsp; <a href="<{$xoops_url}>/user.php">Login</a>
<{/if}>
</td> </td>

<table cellspacing="0">
<tr>
<td id="leftcolumn">

<!-- Start left blocks loop -->
<br>
<{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 -->

<br>
<br />
</td>

<td id="centerLcolumn">

<!-- Start center-left blocks loop -->

<{foreach item=block from=$xoops_clblocks}>
<table class="blok" align="center" cellpadding="3" cellspacing="2">
<tr>
<td> <div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>

<!-- End center-left blocks loop -->
<td id="centercolumn">

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

</div>
<{/foreach}>
<!-- End center-right blocks loop -->
<div id="content"><div class="blockTitle">
<{$xoops_contents}>

</div></div>


<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0">
<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>

</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 -->

<br />
<br />
</td>
<td id="centerRcolumn">



<{/if}>


</tr>
</table>

<table width="1200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="footerbar">
| 2004 | EXNEWS | </a>
</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

<td id="footerbar" width="125"><p align="center">
| <a target='_blank' title='joomla templates' href='http://www.themesbase.com/Joomla-Templates/'>themesbase</a>
<br><img border="0" src="<{$xoops_url}>/images/poweredby.gif"><br>
<br>Powered by <a target="_blank" href="https://xoops.org/">Xoops</a> CMS</td>
</html>


Login

Who's Online

140 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 140


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