You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 51 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Google search box block, need help [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
EarthAngel
Sergeant
Sergeant


Joined: Sep 05, 2004
Posts: 87

Location: Denmark

PostPosted: Tue Aug 22, 2006 1:01 pm Reply with quoteBack to top

Hi everyone,

I need the following code into a google search box (with adwords)... Can you guys help me?

Code:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.dk/custom" target="google_window">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="text" name="q" size="15" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Søg"></input>
<input type="hidden" name="client" value="pub-1420901654446160"></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:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:186;L:http://www.XXX.COM/XXX.jpg;S:http://www.singlemom.dk;FORID:1"></input>
<input type="hidden" name="hl" value="da"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->


Thanks Very Happy
Find all posts by EarthAngelView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Tue Aug 22, 2006 2:06 pm Reply with quoteBack to top

Code:
<?php
if (eregi("block-SearchGoogle.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
}

$content = "";

$stuff = <<< End_Stuff
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.dk/custom" target="google_window">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="text" name="q" size="15" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Søg"></input>
<input type="hidden" name="client" value="pub-1420901654446160"></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:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:186;L:http://www.XXX.COM/XXX.jpg;S:http://www.singlemom.dk;FORID:1"></input>
<input type="hidden" name="hl" value="da"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->



End_Stuff;

$content .= $stuff;
?>


Save as block-SearchGoogle.php and upload to the blocks directory of your site. Go to admin.php .... blocks and create the block by scrolling down and giving it a Title then select SearchGoogle from the dropdown filename menu. click create.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
EarthAngel
Sergeant
Sergeant


Joined: Sep 05, 2004
Posts: 87

Location: Denmark

PostPosted: Wed Aug 23, 2006 10:22 am Reply with quoteBack to top

Agh, it didn't work... Syntax error on line 8 Confused ??
Find all posts by EarthAngelView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Thu Aug 24, 2006 2:16 am Reply with quoteBack to top

Works perfectly on my Patched Nuke 7.9 site.
Image

Its a Danish search.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
EarthAngel
Sergeant
Sergeant


Joined: Sep 05, 2004
Posts: 87

Location: Denmark

PostPosted: Thu Aug 24, 2006 4:13 am Reply with quoteBack to top

Yeah, I'm from Denmark Wink

I'm running phpnuke 7.1 - could that be the reason?

Perhaps you can try and send me the php file through email? mortilen@ofir.dk Very Happy
Find all posts by EarthAngelView user's profileSend private message
chris-au
Elite Nuker
Elite Nuker


Joined: Jan 31, 2003
Posts: 717


PostPosted: Tue Sep 05, 2006 11:58 pm Reply with quoteBack to top

DId you have the following correct?

$content = "";

_________________
Chris
Find all posts by chris-auView user's profileSend private messageVisit poster's website
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Wed Sep 06, 2006 4:46 am Reply with quoteBack to top

Also make sure you use a decent text editor. Do not use notepad or wordpad.

I cant remember if I sent you this or not. If I didnt then please remind me.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.372 Seconds - 369 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::