![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 218.2.29.112
|
|||
|
|||
|
This mod will show Google Adsense under the "Featured Links" as "Sponsored Links". You can see what I mean on the site in my sig.
This mod was inspired from a thread of "seothatworks", Thank you! In main.tpl just before "{* Links heading and sorting*}" add: Code:
{if $category.ID != 0}
{include file="googlead.tpl"}
{/if}
Code:
<h3>{l}Sponsored Links{/l}</h3>
<DIV STYLE="text-align:center;margin-bottom:-10px;">
<script type="text/javascript"><!--
google_ad_client = "XXXXXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="XXXXXXXXXXXXX";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</DIV>
|
|
#2
IP: 218.2.29.112
|
|||
|
|||
|
How do I get adsense to appear on the search pages as well?
to make adsense appear in the search page as well, just use the following code: Code:
{if $category.ID gt 0 or $qu}
{include file="googlead.tpl"}
{/if}
Code:
{if $category.ID != 0}
{include file="googlead.tpl"}
{/if}
|
|
#3
IP: 218.2.29.112
|
|||
|
|||
|
你也可以这么做:在main.tpl中加入
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|