Required google custom search update
| From: | Philip Olson | Date: | Mon, 11 Sep 2017 18:41:47 +0000 |
| Subject: | Required google custom search update | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26381@lists.php.net to get a copy of this message | ||
Hello everyone,
The "Full website search" here is powered by a custom google search I created long ago. It
uses an API that expires on December 4, 2017, so we have two options:
1. Update it using the new API
2. Use something else
The new API code would look similar to this:
<script>
(function() {
var cx = '011570197911755000456:fip9wopfz_u';
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>
However, the version on php.net includes several customizations and I'm not familiar enough
with this topic to update it now without fear of breaking something. If nobody volunteers then
I'll give it a try, though.
Current google search code:
https://github.com/php/web-php/blob/master/include/prepend.inc#L206
Regards,
Philip