Gossamer Forum
Home : Products : Gossamer Links : Discussions :

AdSense for search - GLink3

Quote Reply
AdSense for search - GLink3
Well, I would like to include search results from Google (with AdSense program) when there is no results from our directory.

Is this possible and how?

Andy, can this be done with your plugin?

Regards.

UnReal Network
Quote Reply
Re: [deadroot] AdSense for search - GLink3 In reply to
Hi,

It depends really - which part of adsense are you talking about? :) There are quite a few sub-sections of it now.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] AdSense for search - GLink3 In reply to
Like it's in subject. AdSense for Search.

Regards.

UnReal Network
Quote Reply
Re: [deadroot] AdSense for search - GLink3 In reply to
Hi,

In that case, I don't think so.

You would need to just put something in search.html, like:

Code:
<%if error%>

show the adsense stuff here

<%endif%>

..ie for our site, would be something like this:

Code:
<%if error%>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/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>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.ultranerds.com"></input>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="white">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="www.ultranerds.com" id="ss1"></input>
<label for="ss1" title="Search www.ultranerds.com"><font size="-1" color="white">www.ultranerds.com</font></label></td>
</tr>
</table>
<input type="hidden" name="client" value="pub-3171934375285541"></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:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
<%endif%>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] AdSense for search - GLink3 In reply to
Well, this isn't quite what I have on mind.

I would like, when there is no search results in my directory, then to display search results from Google search (with AdSense).

A this only attach form to search google if there is no results as I could see in code.

UnReal Network
Quote Reply
Re: [deadroot] AdSense for search - GLink3 In reply to
Hi,

As far as I know, they don't offer an XML service of search results, so no - what you are asking for isn't possible Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!