Quote:
Originally Posted by cwp
It shouldn't be hard. If you have trouble just post your entire layout.tpl here and tell me where exactly you want to code (before or after header)
|
Thanks, I couldn't get it to do what I would like. Here's a snapshot of the site's header. I want to place an Adsense banner under the login area and change the regular search to Google search.
A0.PNG
and here's the code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="author" content="Luka Cvrk (www.solucija.com)" />
<title>{$sitetitle}</title>
<meta name="Keywords" content="{$sitekeywords}" />
<meta name="Description" content="{$sitedescription}" />
{if $smarty.server.SERVER_PORT == '443'}
<base href="{$smarty.const.URLS}/" />
{else}
<base href="{$smarty.const.URL}/" />
{/if}
<link rel="stylesheet" href="templates/{$smarty.const.MAIN_TEMPLATE}/css/style.css" type="text/css" />
<script type="text/javaScript">
{literal}
<!--
function MM_openBrWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}
//-->
{/literal}
</script>
{$header}
<script type="text/javascript" src="javascript/toggle.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="javascript/calendar/calendar-blue.css" title="winter" />
<script type="text/javascript" src="javascript/calendar/calendar.js"></script>
<script type="text/javascript" src="javascript/calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="javascript/calendar/calendar-setup.js"></script>
{modulehook function="tpl_layout_head" options=""}
</head>
<body>
<div id="wrapper">
<div id="header">
<p id="top_info">
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
Welcome {$smarty.session.username}
{if $pmon=="Y"}
<br />
<a href="private.php">{$smarty.const.LANG_PRIVATE_MESSAGES}:</a> {$smarty.const.LANG_UNREAD} {$unreadpms}, {$smarty.const.LANG_TOTAL} {$totalpms}.
{/if}
{else}
{$smarty.const.LANG_WELCOME_GUEST} <br />[<a href="login.php">{$smarty.const.LANG_USER_LOGIN}</a>, <a href="userjoin.php">{$smarty.const.LANG_USER_REGISTER}</a>]
{/if}
</p>
<div id="header">
<div id="logo">
<a href="index.php" title="mysite"><img src="images/logo_white.gif" height="140" width="155" border="0"/></a></td>
</div>
</div>
<div id="tabs">
<ul>
<li><a href="{$smarty.const.URL}/index.php">{$smarty.const.LANG_TPL_HOME}</a></li>
<li><a href="{$smarty.const.URL}/search.php">{$smarty.const.LANG_TPL_SEARCH}</a></li>
<li><a href="{$smarty.const.URL}/category.php">{$smarty.const.LANG_TPL_BROWSE}</a></li>
<li><a href="{$smarty.const.URL}/toplistings.php?pg=featured">{$smarty.const.LANG_TPL_FEATURED}</a></li>
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
<li><a href="{$smarty.const.URL}/contactus.php">{$smarty.const.LANG_TPL_CONTACT}</a></li>
</ul>
<div id="search">
<form method="get" action="searchresults.php">
<p><input type="text" name="searchtext" class="search" value="{$smarty.get.searchtext}" /> <input type="submit" value="{$smarty.const.LANG_SEARCH}" class="button" /></p>
</form>
</div>
</div>
<div class="clear"></div>
<table width="100%">
<tr>
<td valign="top" width="200">
<!-- // Right Side // -->
<div id="sidebar">
<h1>{$smarty.const.LANG_MEMBER_NAVIGATION}</h1>
<div class="left-box">
<ul class="sidemenu">
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
<li><a href="{$smarty.const.URL}/userindex.php">{$smarty.const.LANG_MY_ACCOUNT}</a></li>
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
{if $canSaveFavorites=="Y"}
<li><a href="{$smarty.const.URLS}/userfavorites.php">{$smarty.const.LANG_TPL_VIEW_FAVORITES}</a></li>
{/if}
<li><a href="{$smarty.const.URLS}/userbrowselistings.php">{$smarty.const.LANG_TPL_MODIFY_AD}</a></li>
<li><a href="logout.php">{$smarty.const.LANG_TPL_LOGOUT}</a></li>
{else}
<li><a href="login.php">{$smarty.const.LANG_TPL_LOGIN}</a></li>
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
{/if}
</ul>
</div>
<h1>{$smarty.const.LANG_TPL_NAVIGATION}</h1>
<div class="left-box">
<ul class="sidemenu">
<li><a href="{$smarty.const.URL}/index.php">{$smarty.const.LANG_TPL_HOME}</a></li>
<li><a href="{$smarty.const.URL}/search.php">{$smarty.const.LANG_TPL_SEARCH}</a></li>
{foreach from=$templatepages item="entry"}
<li><a href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle}</a></li>
{/foreach}
<li><a href="{$smarty.const.URL}/contactus.php">{$smarty.const.LANG_TPL_CONTACT}</a></li>
<li><a href="{$smarty.const.URL}/forums">Classified Plus</a></li>
</ul>
</div>
</div>
</td>
<td valign="top">
<div id="content">
<!-- // Content // -->
<br /><br />
{* This includes the content portion *}
{include file=$body}
<!-- // End Content // -->
</div>
</td>
</tr>
</table>
<div class="footer">
<p>
<a href="{$smarty.const.URL}/index.php">{$smarty.const.LANG_TPL_HOME}</a> ·
<a href="{$smarty.const.URL}/search.php">{$smarty.const.LANG_TPL_SEARCH}</a> ·
<a href="{$smarty.const.URL}/category.php">{$smarty.const.LANG_TPL_BROWSE}</a> ·
<a href="{$smarty.const.URL}/toplistings.php?pg=featured">{$smarty.const.LANG_TPL_FEATURED}</a> ·
<a href="{$smarty.const.URL}/toplistings.php?pg=new">{$smarty.const.LANG_TPL_NEW}</a> ·
<a href="{$smarty.const.URL}/toplistings.php?pg=top">{$smarty.const.LANG_TPL_TOP}</a> ·
{foreach from=$templatepages item="entry"}
<a href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle}</a> ·
{/foreach}
<a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a> ·
<a href="{$smarty.const.URL}/contactus.php">{$smarty.const.LANG_TPL_CONTACT}</a> ·
{if $smarty.session.userlevel==1}<a href="http://www.mysite.com/administration">Admin</a>{/if}
<script type="text/javascript"><!--
google_ad_client = "pub-2649689363950192";
/* Link */
google_ad_slot = "0469850149";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
© Copyright 2008 <a href="index.php">mysite</a></p>
</div>
</div>
{modulehook function="tpl_layout_footer" options=""}
</body>
</html>
Thanks again for the help.