The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Solved] Google Custom Search Engine (HTTPS)
Hi! I was wondering if someone has Google Custom Search Engine as replaced of vb?
I used one here for years but after I changed to https it does not work well. Firefox does not show anything of results, some other browsers I must click there it says "Show only secure content" every time. * This I used https://vborg.vbsupport.ru/showthread.php?t=263440 Checked and test others to, but only the above opens in same page with the CCS of forum skin. Any suggestions will be appreciated Thanks... |
#2
|
||||
|
||||
In the google template change:-
Code:
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> Code:
<script type="text/javascript" src="https://www.google.com/afsonline/show_afs_search.js"></script> and in the navbar Template change:- Code:
<form action="http://www.yourforum.com/google.php" id="cse-search-box"> Code:
<form action="https://www.yourforum.com/google.php" id="cse-search-box"> Code:
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> Code:
<script type="text/javascript" src="https://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> |
#3
|
||||
|
||||
Thank you very muck for your answer.
All http was changed to https (This was the first I did) First very odd that does not work in FireFox and IE11, in Chrome and Edge I must click the button I mentioned. I do not know why this? Do you use it as https to? |
#5
|
||||
|
||||
To close this thread, i did not manage to make Google Custom Search Engine as i had it before, but at least is ok as i managed it know.
What i did for some one else needs: Find "ad_navbar_below" template Than copy-paste code that google gives you in the template. Where 'xxxxxxxxxxxxxxxxxxxxxx' change with your code. Example: Code:
<script> (function() { var cx = 'xxxxxxxxxxxxxxxxxxxxxx'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:search></gcse:search> Attachment 156362 Thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|