Ich habe nach einem im Forum beschriebenen Verfahren bereits "AdSense für Content-Seiten" eingepflegt.
Nun möchte ich ein weiteres Goole Feature einbauen: AdSense für Suchergebnisseiten. Meine Lösung geht mit einem neuen Modul. hier der Code (OUTPUT):
Code: Alles auswählen
<?php
if(!(strstr($REQUEST_URI,"changeview=edit") || $submit=="editcontent" || strstr($REQUEST_URI,"area=con_editcontent"))) // Überprüfen, ob im Editiermodus aufgerufen
{
echo '
<div align=center>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.de/custom" target="_top">
<table border="0" bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="hidden" name="domains" value="www.rv-rauxel.de"></input>
<label for="sbi" style="display: none">Geben Sie Ihre Suchbegriffe ein</label>
<input type="text" name="q" size="25" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Web-Suche"><font size="-1" color="#ffffff">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="www.rv-rauxel.de" id="ss1"></input>
<label for="ss1" title="Suchen www.rv-rauxel.de"><font size="-1" color="#ffffff">www.rv-rauxel.de</font></label></td>
</tr>
</table>
<label for="sbb" style="display: none">Suchformular senden</label>
<input type="submit" name="sa" value="Suchen" id="sbb"></input>
<input type="hidden" name="client" value="pub-9779163682174347"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#E9382F;GL:1;DIV:#CCCCCC;VLC:7E3939;AH:center;BGC:FFFFFF;LBGC:FF3333;ALC:E9382F;LC:E9382F;T:000000;GFNT:7E3939;GIMP:7E3939;FORID:1"></input>
<input type="hidden" name="hl" value="de"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</div>
'; }
?>
Was habe ich nicht beachtet bzw. vergessen?Fatal error: Cannot instantiate non-existent class: capiclient in /homepages/17/d118844875/htdocs/contenido/includes/include.con_editcontent.php(644) : eval()'d code on line 799
Gruß, Ho