Jump to content
bbh_blocked_dnftl
Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums

Welcome to Tiberium Technology® Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Tiberium Technology® Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Recommended Posts

Posted

Hi Donald,

 

Trying to replace IPB search on my site with google's and struggling a bit and noticed that you did it here. Hope you can help.

 

What I did was:

Option 1:

1. created a custom block and put the code that google gives in that block.

2. created a page with {parse block="google-cse"} in it.

 

Option 2:

Putting the code straight into a html page without a block.

 

This is the code for button:

 

<div id='search'>
<form action="http://mysite.com/google-search" id="cse-search-box">
<fieldset>
<label for='main_search' class='hide'>Search</label>
<input type="hidden" name="cx" value="partner-pub-000000000000:xxxxx-nci2" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type='text' id='main_search' name='q' class='text_input' size='25' />
<input type="submit" name="sa"  class='submit_input' value="Search" />
</fieldset>
</form>
<script type="text/javascript" src="http://www.google.co.uk/cse/brand?form=cse-search-box&lang=en"></script>
</div>

 

When I click on the button nothing happens.

  • Root Admin
Posted

Hello,

 

It's actually quite simple to setup. I've had other members ask me about this as well. Anyway... when you get the code from Google, it should give you two sets of code. One for your search box, and the other one for the HTML page to get the search results, if you chose a custom results page.

 

This code here is the search box, which you have above, but mine below is customized for my skins look on both IP.Board 3 and CleanCut. This code is setup when setting it up on the Google website.

				<div id='search'>
					<form action="http://www.tiberiumstudios.net/index.php/google-search" id='cse-search-box' >
						<fieldset>
							<label for='main_search' class='hide'>{$this->lang->words['sj_search']}</label>
							<input type="hidden" name="cx" value="partner-pub-4448238480142864:a822ju-7jig" />
							<input type="hidden" name="cof" value="FORID:10" />
							<input type="hidden" name="ie" value="ISO-8859-1" />
							<input type='text' id='main_search' name='q' class='text_input' size='25' />
							<input type='submit' name='sa' class='submit_input' value='{$this->lang->words['sj_search']}' />
						</fieldset>
					</form>
				</div>

 

And this code here is used for your HTML page that will display your search results. You should have received something similar to this one. This code does not need to be edited.

             <div id="cse-search-results"></div>
                  <script type="text/javascript">
                          var googleSearchIframeName = "cse-search-results";
                          var googleSearchFormName = "cse-search-box";
                          var googleSearchFrameWidth = 795;
                          var googleSearchDomain = "www.google.com";
                          var googleSearchPath = "/cse";
                  </script>
             <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

 

Also, if you chose a custom search results page, be sure to name the page exactly how it is on your site. For example, if you are using IP.Content1 1.x.x and your page's url is http://www.mysite.com/index.php/google-search, or you are using a regular HTML page such as http://www.mysite.com/google-search.html, then you have you put that in the box that Google asks for when setting it up. It must be accurate. I've also helped a few other people on the IPS forums with it, but they still can't seem to figure it out. I for one got it setup with just one try. I never had an issue with setting it up.

 

If you need further assistance with this, please let me know and I'll try to help. And if you would like me to set it up on your site, I'll need access to your forums ACP and also Google account as well to set it up.

 

Regards,

Donald

 

 


My Free Mods:
[NG23] News System v1.1.1 | Custom Pages v4.2 | (NG30) Google Adsense Ads v1.2.2
(NG30) Google Ads In Topic View v1.1.1 | (NG30) iClient Message In A Bottle v1.1.0 | (NG30) Forum Icon Legend v1.0.1
(NG30) Registration Notes v1.0.0 | (NG30) IP.Chat Message v1.0.0

My Paid Mods:
(NG33) Global Adverts v2.1.0 | (NG30) Rotating Banners v1.1.0 | (NG33) BuyNow BBCode v2.0.0
(NG33) Members Donate Button v1.0.8 | (NG33) Xbox/Psn Tags v1.0.3
(NG30) Image Align BBCode v1.0.0 | (NG30) Topic HTML v1.0.0 | (NG30) Google Checkout v1.0.0 | (NG30) LightBox Link BBCode v1.0.0

Mods In Development:
(NG33) Social Groups Addon - Group Payment Button | (NG33) Global Ads v2.2.0 Alpha 1

My Services:
Mod Installation Service | Skin Installation Service | Forum Upgrade Service

25d62e68d76cd7f75667a83cf86de91d.png571a3be8802342dcad9f07b714798cab.pngd650fe3d5d63fbbbab3604d6dc2414a0.png45b90d1ccf717d0a8f5d408051b94ef2.png
cacd42cb21d2574e269f68f0e79192dc.png62544e0b76b142e25661166266eb7944.png9fd72f98b8e65b7fb691407ee5d42391.png
b7abd2a44678e89c2bb3aa91e401ea99.png9687ca76387f2ede1fbb7df8d2508b3e.pngc8c57eb84a468892635126acaf75ff6f.png

---------------------------
For Support Questions About Your Hosting Account, Please Post Your Question In The HelpDesk System.
http://www.tiberiumstudios.net/Files/Sigs/sig.gif
---------------------------
My YouTube! Channel
The Price of War Clan.com
---------------------------

NXE:
NuclearGeneral.png
NewNXE:
NuclearGeneral.png
DarkSigBar:
NuclearGeneral.png
XboxOneSig:
NuclearGeneral.png
XboxOneSig2:
NuclearGeneral.png

Posted

Hey Donald,

 

Guess what..my code was spot on but you helped me when you said 'you got to be accurate'. In Google's site where you enter your URL, google puts a space at the begining after the forward slashes (e.g http://_mysite.com)so when you copy and paste, that space is carried over.

 

Cheers mate,

Abbs

  • Root Admin
Posted

Hello,

 

Glad you got your issue sorted out.

 

Regards,

Donald

 

 


My Free Mods:
[NG23] News System v1.1.1 | Custom Pages v4.2 | (NG30) Google Adsense Ads v1.2.2
(NG30) Google Ads In Topic View v1.1.1 | (NG30) iClient Message In A Bottle v1.1.0 | (NG30) Forum Icon Legend v1.0.1
(NG30) Registration Notes v1.0.0 | (NG30) IP.Chat Message v1.0.0

My Paid Mods:
(NG33) Global Adverts v2.1.0 | (NG30) Rotating Banners v1.1.0 | (NG33) BuyNow BBCode v2.0.0
(NG33) Members Donate Button v1.0.8 | (NG33) Xbox/Psn Tags v1.0.3
(NG30) Image Align BBCode v1.0.0 | (NG30) Topic HTML v1.0.0 | (NG30) Google Checkout v1.0.0 | (NG30) LightBox Link BBCode v1.0.0

Mods In Development:
(NG33) Social Groups Addon - Group Payment Button | (NG33) Global Ads v2.2.0 Alpha 1

My Services:
Mod Installation Service | Skin Installation Service | Forum Upgrade Service

25d62e68d76cd7f75667a83cf86de91d.png571a3be8802342dcad9f07b714798cab.pngd650fe3d5d63fbbbab3604d6dc2414a0.png45b90d1ccf717d0a8f5d408051b94ef2.png
cacd42cb21d2574e269f68f0e79192dc.png62544e0b76b142e25661166266eb7944.png9fd72f98b8e65b7fb691407ee5d42391.png
b7abd2a44678e89c2bb3aa91e401ea99.png9687ca76387f2ede1fbb7df8d2508b3e.pngc8c57eb84a468892635126acaf75ff6f.png

---------------------------
For Support Questions About Your Hosting Account, Please Post Your Question In The HelpDesk System.
http://www.tiberiumstudios.net/Files/Sigs/sig.gif
---------------------------
My YouTube! Channel
The Price of War Clan.com
---------------------------

NXE:
NuclearGeneral.png
NewNXE:
NuclearGeneral.png
DarkSigBar:
NuclearGeneral.png
XboxOneSig:
NuclearGeneral.png
XboxOneSig2:
NuclearGeneral.png

  • Root Admin
Posted

This issue has been resolved! :)

 

 


My Free Mods:
[NG23] News System v1.1.1 | Custom Pages v4.2 | (NG30) Google Adsense Ads v1.2.2
(NG30) Google Ads In Topic View v1.1.1 | (NG30) iClient Message In A Bottle v1.1.0 | (NG30) Forum Icon Legend v1.0.1
(NG30) Registration Notes v1.0.0 | (NG30) IP.Chat Message v1.0.0

My Paid Mods:
(NG33) Global Adverts v2.1.0 | (NG30) Rotating Banners v1.1.0 | (NG33) BuyNow BBCode v2.0.0
(NG33) Members Donate Button v1.0.8 | (NG33) Xbox/Psn Tags v1.0.3
(NG30) Image Align BBCode v1.0.0 | (NG30) Topic HTML v1.0.0 | (NG30) Google Checkout v1.0.0 | (NG30) LightBox Link BBCode v1.0.0

Mods In Development:
(NG33) Social Groups Addon - Group Payment Button | (NG33) Global Ads v2.2.0 Alpha 1

My Services:
Mod Installation Service | Skin Installation Service | Forum Upgrade Service

25d62e68d76cd7f75667a83cf86de91d.png571a3be8802342dcad9f07b714798cab.pngd650fe3d5d63fbbbab3604d6dc2414a0.png45b90d1ccf717d0a8f5d408051b94ef2.png
cacd42cb21d2574e269f68f0e79192dc.png62544e0b76b142e25661166266eb7944.png9fd72f98b8e65b7fb691407ee5d42391.png
b7abd2a44678e89c2bb3aa91e401ea99.png9687ca76387f2ede1fbb7df8d2508b3e.pngc8c57eb84a468892635126acaf75ff6f.png

---------------------------
For Support Questions About Your Hosting Account, Please Post Your Question In The HelpDesk System.
http://www.tiberiumstudios.net/Files/Sigs/sig.gif
---------------------------
My YouTube! Channel
The Price of War Clan.com
---------------------------

NXE:
NuclearGeneral.png
NewNXE:
NuclearGeneral.png
DarkSigBar:
NuclearGeneral.png
XboxOneSig:
NuclearGeneral.png
XboxOneSig2:
NuclearGeneral.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, & Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.