Support Forums

Center Banner Placement

This is a discussion on Center Banner Placement within the Technical Support forums, part of the Technical Support Forums category; Hi, I'm full of questions today. I wanted to know exactly where in the layout.tpl (i'm assuming) would I place ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-22-2008, 09:46 PM   #1
Senior Member
 
outlook's Avatar
 
Join Date: May 2008
Location: California
Posts: 120
Rep Power: 18
outlook is on a distinguished road
Default Center Banner Placement

Hi, I'm full of questions today. I wanted to know exactly where in the layout.tpl (i'm assuming) would I place Google code to appear in the header centered?

Thx for the help.
outlook is offline  
Old 05-22-2008, 10:08 PM   #2
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 26
cwp is a jewel in the rough
Default

layout.tpl is correct. You will just need to sort through the code and find the header. Then place the code before or after the header.
__________________
Version 4.0.3 Developer
cwp is offline  
Old 05-23-2008, 02:29 AM   #3
Senior Member
 
outlook's Avatar
 
Join Date: May 2008
Location: California
Posts: 120
Rep Power: 18
outlook is on a distinguished road
Default

Thanks for the help. I'll give it a try.
outlook is offline  
Old 05-23-2008, 04:39 AM   #4
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 26
cwp is a jewel in the rough
Default

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)
__________________
Version 4.0.3 Developer
cwp is offline  
Old 05-23-2008, 01:34 PM   #5
Senior Member
 
outlook's Avatar
 
Join Date: May 2008
Location: California
Posts: 120
Rep Power: 18
outlook is on a distinguished road
Default

Quote:
Originally Posted by cwp View Post
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> &middot;
				<a href="{$smarty.const.URL}/search.php">{$smarty.const.LANG_TPL_SEARCH}</a> &middot;
				<a href="{$smarty.const.URL}/category.php">{$smarty.const.LANG_TPL_BROWSE}</a> &middot;
				<a href="{$smarty.const.URL}/toplistings.php?pg=featured">{$smarty.const.LANG_TPL_FEATURED}</a> &middot;
				<a href="{$smarty.const.URL}/toplistings.php?pg=new">{$smarty.const.LANG_TPL_NEW}</a> &middot;
				<a href="{$smarty.const.URL}/toplistings.php?pg=top">{$smarty.const.LANG_TPL_TOP}</a> &middot;
				{foreach from=$templatepages item="entry"}
				<a href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle}</a> &middot;
				{/foreach}
				<a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a> &middot;
				<a href="{$smarty.const.URL}/contactus.php">{$smarty.const.LANG_TPL_CONTACT}</a> &middot;
{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 />
			&copy; Copyright 2008 <a href="index.php">mysite</a></p>
		</div>
	</div>
{modulehook function="tpl_layout_footer" options=""}
</body>
</html>
Thanks again for the help.
outlook is offline  
Old 05-25-2008, 03:31 AM   #6
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 26
cwp is a jewel in the rough
Default

Can you post your css file too and I'll see what I can do.
__________________
Version 4.0.3 Developer
cwp is offline  
Old 05-29-2008, 02:32 PM   #7
Senior Member
 
outlook's Avatar
 
Join Date: May 2008
Location: California
Posts: 120
Rep Power: 18
outlook is on a distinguished road
Default

Thanks, I found another area that works fine.
outlook is offline  
Old 12-21-2008, 12:10 PM   #8
Junior Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
smgristi is on a distinguished road
Default

Where did you end up putting the ad? I am trying to put a similar ad on my site, and I do now know where to insert the code.
smgristi is offline  
Old 12-21-2008, 03:11 PM   #9
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default Quick Message

Hi,

For adsense we placve it here on this site. it works well. It also depends upon what template you are using.

Boats For Sale

We sell these templates as well.

68 Classifieds Templates

Regards

David
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 12:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0