Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
AusPhotography Google Custom Search Details »»
AusPhotography Google Custom Search
Version: 1.0.1, by AusPhotography AusPhotography is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.1.0 Rating:
Released: 07-07-2011 Last Update: Never Installs: 8
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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.

Code:
<div id="cse" style="width: 60%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'en', style : google.loader.themes.GREENSKY});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('888888888888888888888:kgkgkgkgkgk');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>

Download Now

File Type: zip APgoogle1.0.1.zip (4.5 KB, 74 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Jasem

Comments
  #2  
Old 07-08-2011, 02:30 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As it looks on our site...

Attachment 130816
Reply With Quote
  #3  
Old 08-06-2011, 03:11 PM
MudRacing MudRacing is offline
 
Join Date: Apr 2010
Location: Italy
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #4  
Old 08-08-2011, 11:25 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MudRacing View Post
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
Reply With Quote
  #5  
Old 08-09-2011, 06:46 PM
MudRacing MudRacing is offline
 
Join Date: Apr 2010
Location: Italy
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snoopytas View Post
Use a notice and some funky javascript
I not found a similar JavaScript, can you help me?
pls
Reply With Quote
  #6  
Old 08-10-2011, 02:24 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MudRacing View Post
I not found a similar JavaScript, can you help me?
pls
Right click, view source, and borrow the code from our site
Reply With Quote
  #7  
Old 08-10-2011, 07:28 AM
MudRacing MudRacing is offline
 
Join Date: Apr 2010
Location: Italy
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snoopytas View Post
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?
Code:
<div id="aptopbar">

	<table width="100%" class="page" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td width="99%">
					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 <a href="http://www.ausphotography.net.au/forum/register.php"><b>register</b></a> or log in.</td>
					<td width="1%"><a onclick="closebar(); return false" href="http://www.ausphotography.net.au/forum">
					<img style="float: left" src="http://www.ausphotography.net.au//forum/images/misc/close.gif" border="0"></a>
			</td>

		</tr>
	</table>
</div>
Then I put it in "template \ FORUMHOME" or else?
Reply With Quote
  #8  
Old 08-10-2011, 09:14 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04438 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete