1
tatane
Editing a theme
  • 2009/2/8 9:43

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1



hello
I would like to change this theme to display an advertisement in adsence Home, forum, article, etc. as below

this a site
Resized Image


I tried to place it in class="headmenu" <td height="14"> </ td> but it distorts my theme!

Here is my theme

Quote:
<!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="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="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<!-- START HEADER-->
<table cellspacing="0" id="Main" align="center">
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Header">
<tr>
<td class="Logo"><img src="<{$xoops_imageurl}>images/logo.gif" alt="" width="191" height="31" /></td>
<td class="Search"><form style="margin: 0px;" action="<{$xoops_url}>/search.php" method="get">
<input class="SearchBox" type="text" name="query" size="14" />
<input type="hidden" name="action" value="results" />
<input class="SearchButton" name="submit" type="image" value="Search" src="<{$xoops_imageurl}>images/search.gif" />
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" class="HeaderRed">&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Menu" height="33">
<tr>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>">
Accueil</a></td>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>/modules/newbbex/">
Forum</a> </td>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>/modules/news/">
Article</a></td>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>/modules/userpage/">
Témoinage</a></td>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>/modules/myalbum/">
Galerie photo</a></td>
<td class="headmenu" height="19" align="center"><a class="menuHead" href="<{$xoops_url}>/modules/contact/">
Contact</a> </td>
</tr>
<tr>
<td class="headmenu" height="14"> </td>
<td class="headmenu" height="14"> </td>
<td class="headmenu" height="14"> </td>
<td class="headmenu" height="14"> </td>
<td class="headmenu" height="14"> </td>
<td class="headmenu" height="14"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<{include file="$xoops_theme/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->

</td>

<td id="centercolumn">
<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>
<table cellspacing="0" class="centercol">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}> <{include file="$xoops_theme/theme_blockcenter_c.html"}> <{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}> <{include file="$xoops_theme/theme_blockcenter_l.html"}> <{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn">
<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}> <{include file="$xoops_theme/theme_blockcenter_r.html"}> <{/foreach}>
<!-- End center-right blocks loop -->
</td>
</tr>
</table>
<{/if}>
<!-- End display center blocks -->
<div id="content"> <{$xoops_contents}> </div>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0" class="centercol">
<{if $xoBlocks.page_bottomcenter}>
<tr>
<td id="bottomCcolumn" colspan="2"> <{foreach from=$xoBlocks.page_bottomcenter item=block}><{include file="$xoops_theme/theme_blockcenter_c.html"}><{/foreach}> </td>
</tr>
<{/if}> <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn"> <{foreach from=$xoBlocks.page_bottomleft item=block}><{include file="$xoops_theme/theme_blockcenter_l.html"}><{/foreach}> </td>
<td id="bottomRcolumn"> <{foreach from=$xoBlocks.page_bottomright item=block}><{include file="$xoops_theme/theme_blockcenter_r.html"}><{/foreach}> </td>
</tr>
<{/if}>
</table>
<{/if}> </td>
<{if $xoops_showrblock == 1}>
<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<{include file="$xoops_theme/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
</td>

<{/if}>

</tr>
<tr>
<td colspan="3" class="footer">Copyright © 2006. All rights reserved. Your Company. Theme by <a href="http://www.xoopsdesign.com">XOOPSDesign.com</a></td>
</tr>
</table>
<div id="xo-footer">
<!-- infos sur le designer -->
<div class="design"></div>
<!-- fin des infos designer -->
<!-- infos 'pied de page' défini dans les préférences du site -->
<div class="copyright"><{$xoops_footer}></div>
<!-- fin des infos 'pied de page' défini dans les préférences du site -->
</div>
</body>
</html>

2
Bleekk
Re: Editing a theme
  • 2009/2/8 20:27

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


after this
<tr>
<
td class="headmenu" height="14"> </td
<
td class="headmenu" height="14"> </td
<
td class="headmenu" height="14"> </td
<
td class="headmenu" height="14"> </td
<
td class="headmenu" height="14"> </td
<
td class="headmenu" height="14"> </td
</
tr>

add:
<tr>
<
td colspan="6">your text</td>
</
tr>


OR
instead of the lines above:
<tr>
<
td class="headmenu" height="14" colspan="6">your text</td
</
tr>

Login

Who's Online

249 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 249


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