Advertisement:

Author Topic: Arama Sonuçlarına Google Reklamı Eklemek  (Read 44249 times)

Offline doem

  • Jr. Member
  • **
  • Posts: 120
  • Gender: Male
    • Avon
Re: Arama Sonuçlarına Google Reklamı Eklemek
« Reply #20 on: November 02, 2008, 07:46:57 AM »
<SCRIPT language=JavaScript>
// <!--
function MM_jumpMenu(selObj,restore){
eval("location.href='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
element="<a href='http://www.siteadresi.com/' target='_blank'><img src='http://resim adresi . gif' border='0'></a>"
el_width=0
el_height=50
ns4=document.layers
ie4=document.all
ns6=document.getElementById&&!document.all
if (ns4){document.write('<layer name="element" top='+el_height+' right='+el_width+'>'+element+'</layer>')}
else{document.write('<div id="element" style="position:absolute;top:'+el_height+';right:' +el_width+'">'+element+'</div>')}
el_width_start=el_height_start=0
function el_move(){
if(ie4){ydiff=el_height_start-document.body.scrollTop; xdiff=el_width_start-document.body.scrollLeft}
else{ydiff=el_height_start-pageYOffset; xdiff=el_width_start-pageXOffset}
if(ydiff!=0){movey=Math.round(ydiff/10);el_height_start-=movey}
if(xdiff!=0){movex=Math.round(xdiff/10);el_width_start-=movex}
if(ns4){document.layers.element.top=el_height_star t+el_height;document.layers.element.right=el_width _start+el_width}
if(ie4){document.all.element.style.top=el_height_s tart+el_height;document.all.element.style.right=el _width_start+el_width}
if(ns6){document.getElementById("element").style.t op=el_height_start+el_height;document.getElementBy Id("element").style.right=el_width_start+el_width } }
elmove=setInterval("el_move()",15)
//-->
</SCRIPT>

Offline doem

  • Jr. Member
  • **
  • Posts: 120
  • Gender: Male
    • Avon
Re: Arama Sonuçlarına Google Reklamı Eklemek
« Reply #21 on: November 02, 2008, 08:12:21 AM »
Quote
Default : 1.1.6

Search.template.php
Bul:

Kod: [Seç]
// Quick moderation set to checkboxes? Oh, how fun :/.
Öncesine ekle:

Kod: [Seç]
      echo '<table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
      <td>';
Bul:

Kod: [Seç]
      if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
         echo '
         <input type="hidden" name="sc" value="' . $context['session_id'] . '" />
      </form>';
Öncesine ekle:

Kod: [Seç]
      echo '</td><td>&nbsp;&nbsp;</td>
      <td valign="top" align="center">GOOGLE REKLAMLARI</td>
      </tr></table>';
Erhan ben senin bu dediğini yaptım gayette güzel oldu. Bazı sitelerde ben şunu görüyorum yanda reklam çıkıyor adam sayfanın alt taraflarına bakmak isterse farenin tekerleği döndürüyor ve yandaki reklamda sayfayla aynı hizada ilerliyor.
Acaba bu yapılabilir mi?

Arkadaşım senin için çok güzel bir kod bu kodlarla google adsense koyabiliyorsun

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Ads by google</title>
</head>

<body>
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>

<layer id="divStayTopLeft">

<!--Reklam kodu giriş-->
<table border="1" width="160" cellspacing="0" cellpadding="0">
  <tr>
    <td width="160" bgcolor="#FFFFFF">
      <p align="left">
      <script type="text/javascript"><!--
google_ad_client = "pub-Numaranı Yaz";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000080";
google_color_url = "999999";
google_color_text = "000001";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script>
     
      </td>
  </tr>
</table>
<!--Reklam kodu bitiş-->

</layer>


<script type="text/javascript">

/*
http://www.webmasteryeri.com/
*/

//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"

if (!document.layers)
document.write('</div>')

function JSFX_FloatTopDiv()
{
   var startX = 3,
   startY = 600;
   var ns = (navigator.appName.indexOf("Netscape") != -1);
   var d = document;
   function ml(id)
   {
      var el=d.getElementById?d.getElementById(id):d.all?

d.all[id]:d.layers[id];
      if(d.layers)el.style=el;
      el.sP=function(x,y)

{this.style.left=x;this.style.top=y;};
      el.x = startX;
      if (verticalpos=="fromtop")
      el.y = startY;
      else{
      el.y = ns ? pageYOffset + innerHeight :

document.body.scrollTop + document.body.clientHeight;
      el.y -= startY;
      }
      return el;
   }
   window.stayTopLeft=function()
   {
      if (verticalpos=="fromtop"){
      var pY = ns ? pageYOffset : document.body.scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
      }
      else{
      var pY = ns ? pageYOffset + innerHeight :

document.body.scrollTop + document.body.clientHeight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
      }
      ftlObj.sP(ftlObj.x, ftlObj.y);
      setTimeout("stayTopLeft()", 10);
   }
   ftlObj = ml("divStayTopLeft");
   stayTopLeft();
}
JSFX_FloatTopDiv();
</script>

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: Arama Sonuçlarına Google Reklamı Eklemek
« Reply #22 on: November 02, 2008, 08:15:33 AM »
Ufak bir hatirlatma yapayim,bu tarz reklam yerleri yani popup seklinde olan reklamlar googleda yasak haberiniz olsun,sonra neden banlandim diye dert yanmayin...
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein