vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=266449

AusPhotography Google Custom Search
by AusPhotography
08 Jul 2011 04:27

1 Attachment(s)
www.AusPhotography.net.au Google Custom Search

This product provides a simple way to integrate Google Custom Search into vBulletin V4.1.x.

It is advisable to get the XML site map working and adjust your robots.txt file accordingly.
Don't ask me how to do this, you need to do a little research of your own.

This product is a simple framework for connecting an external function with its own menu tab,
not just Google CSE, i.e. you could easily adapt it for Yahoo or some other function.


Features:
1. Configurable Google CSE code
2. Online/Offline option
3. Only works for logged in users


Requires:
1. A Google CSE for the site (see: http://www.google.com/cse/ )
2. [optional] apnavenhance - AP Navigation Enhancements (if not installed it is ignored)
NB: apneavenhance has not and will not be released to the general public.


Installation:
1. [Important] First!
Create a Google CSE for the site and configure it with the Full-width option in Look & feel
- You need a Google account to do this :)
2. Copy the Google CSE Javascript and CSS code ready to insert via AdminCP
3. Upload the apgoogle.php file to the forum directory
4. Install the product file
5. Configure your google search via AdminCP/Settings/Options
- You need to put your CSE code into the option to make it work
- See the sample below
- Turn it on (installed in off mode by default)

Done!

Enjoy! It will probably work on all vB4.0+ as well.

Kym

Sample Google CSE javascript:
888888888888888888888:kgkgkgkgkgk being the key from your Google CSE
I also changed the width in the first line to 60%, it's 100% from Google.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Screen shots
by AusPhotography
08 Jul 2011 04:30

1 Attachment(s)
As it looks on our site...

Attachment 130816

MudRacing 06 Aug 2011 17:11

Good works!!


One question: How I can get a box like on the site "AusPhotography"?
(You are unregistered (or not logged in). Australian Photography offers so much more! Please note that much of the site is invisible when logged out. To enjoy the full site experience, please register or log in.)

AusPhotography 09 Aug 2011 01:25

Quote:

Originally Posted by MudRacing (Post 2230130)
Good works!!

Thanks!

Quote:

One question: How I can get a box like on the site "AusPhotography"?
(You are unregistered (or not logged in). Australian Photography offers so much more! Please note that much of the site is invisible when logged out. To enjoy the full site experience, please register or log in.)
Use a notice and some funky javascript :D

MudRacing 09 Aug 2011 20:46

Quote:

Originally Posted by snoopytas (Post 2231092)
Use a notice and some funky javascript :D

I not found a similar JavaScript, can you help me?
pls

AusPhotography 10 Aug 2011 04:24

Quote:

Originally Posted by MudRacing (Post 2231458)
I not found a similar JavaScript, can you help me?
pls

Right click, view source, and borrow the code from our site :)

MudRacing 10 Aug 2011 09:28

Quote:

Originally Posted by snoopytas (Post 2231620)
Right click, view source, and borrow the code from our site :)

With the permit, but patience please, I'm not very good at these things ...

I'll just take this piece?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then I put it in "template \ FORUMHOME" or else?

AusPhotography 10 Aug 2011 11:14

No, I'll PM the code to put in a notice


All times are GMT. The time now is 15:56.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.