ResponsiveImagesCG / meta

Repository for media, tools, etc.
7 stars 3 forks source link

Way to search IRC logs #9

Closed marcoscaceres closed 11 years ago

marcoscaceres commented 11 years ago

It would be nice to have a way to search for IRC logs. For example, using a google search box.

Below is a sample from google that can be used right now. But if Drupal supports something else that is cool.

<!-- Put the following javascript before the closing </head> tag. -->
<script>
  (function() {
    var cx = '014646753165310474669:sepbxawpsmi';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>

<!-- Place this tag where you want both of the search box and the search results to render -->
<gcse:search></gcse:search>
attiks commented 11 years ago

See http://ircbot.responsiveimages.org/search/botlog/search

marcoscaceres commented 11 years ago

Oh, not sure how we missed that - and the search at the top of the page :sweat: (cc. @nwtn ). Thanks @attiks!