View Full Version : Adding Advertising
anguspm
06-05-2007, 12:46 PM
Hi All,
1, On my site www.farflungshores.com I´m using the Thematic template and would like to add an advertising banner for a hotel affiliate to the left hand side below the statistics. Can anyone advise how I do this?
2, I notice that some sites have adsense on the left and right hand sides using the Thematic blue template and this would also be interesting for my other site www.businessespana.com
Thanks in advance for any assistance.
Cheers,
Angus
Tilek E.
06-05-2007, 02:00 PM
Hi anguspm,
Please first of all add your custom banners on Admin Panel » Manage Banners page. While creating new banners choose position left and right.
On default left and right hand banners are placed at the top of the column. If you want to place them below statistics box please make the following instructions:
#1. Open header.tpl file of your Thematic template and find the following code: (* this is a code of left banner *)
{if $config.banners and $left_banner}
<!-- left banner start -->
{dynamic}
{include file="banner.tpl" banner=$left_banner}
{/dynamic}
<!-- left banner end -->
{/if}
#2. Move this code below statistics box. You will have the following:
{if $tab eq 'home'}
<!-- statistics box start -->
{include file="box-header.tpl" caption=$lang.statistics style="column"}
<table cellpadding="2" cellspacing="2" style="font-size: 0.85em; ">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
{include file="box-footer.tpl"}
<!-- statistics box end -->
{/if}
{if $config.banners and $left_banner}
<!-- left banner start -->
{dynamic}
{include file="banner.tpl" banner=$left_banner}
{/dynamic}
<!-- left banner end -->
{/if}
#3. Save changes and close the file.
#4. Make the same instructions for right column. Open footer.tpl file and move the code of right banner to the bottom of the right column as follows:
{if $partner_links}
. . .
</div>
{include file="box-footer.tpl"}
<!-- partner links box end -->
{/if}
{if $config.banners and $right_banner}
<!-- right banner start -->
{dynamic}
{include file="banner.tpl" banner=$right_banner}
{/dynamic}
<!-- right banner end -->
{/if}
</td>
</tr>
</table>
</div>
<!-- footer start -->
. . .
Speaking of adsense on left and right columns you should insert highlighted code of {$adsense} into header.tpl and footer.tpl as follows:
header.tpl:
<div class="content">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10%" class="column">
<div class="adsense">{$adsense}</div>
footer.tpl:
</td>
<td valign="top" height="10%" class="column">
<div class="adsense">{$adsense}</div>
Also set the width of adsense to match the width of columns on Admin Panel » Configuration » Financial Configuration page Your Google Adsense code.
In case you have problems while implementing this feel free to contact us.
anguspm
06-05-2007, 04:11 PM
Many many thanks David!
Worked like a charm!:good:
I´ll try implementing the adsense later.
Cheers,
Angus
Tilek E.
06-06-2007, 12:15 PM
You're welcome, Angus! :)
fibonacc1
06-08-2007, 11:15 PM
What if i want to display more than 1 banner in each location (left and right). I would like to display 4 banners at the same time, one under the others.
What can i do? I use the last paid version.
rbishnoi
06-28-2007, 08:52 PM
Regarding adding adsense banner on the right column I've couple of questions about your earlier comment in this thread:
1. What change do I make to the center banner in order to make it work for right column. I believe the following lines will need changes:
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
i.e. how do I know the width of right column (I'm also using Thematic blue).
2. there was a google adsense code in the default thematic blue template
google_ad_client = "pub-0312343481970197"
Whose code is this? I applied for adsense code for me, but Google hasn't responded yet may be because my site doesn't have good traffic yet. Can I
continue to use the above code?
3. How do I replace the text "EDITORS" with "MEMBERS" everywhere in the site?
Regards,
- Rajeev
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.