Open main menu

User talk:MHart

Active discussions

Google SearchEdit

Hi there!

Im getting this error when trying to use your Google extension:

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/tabar3/public_html/Wiki/extensions/GoogleSearch.php on line 32
Warning: file_get_contents(http://googlesearchurl.yoursite.com/search?q=rubin&output=xml&site=ext_name&client=name&as_sitesearch=www.tabardag.com%2FWiki&start=) [function.file-get-contents]: failed to open stream: Success in /home/tabar3/public_html/Wiki/extensions/GoogleSearch.php on line 32


Do you have any idea what I might have done wrong? Using 1.9.1 Thanks a ton!

Cheers,Ryan


Tekstenr

at gmail.com tekstenr at gmail.com

Response That appears to be the PHP file_get_contents() function failing because there's missing functionality - it is unable to download the contents of a URL. That would be a question for PHP folks - how to resolve that error message. --MHart 21:30, 16 January 2008 (UTC)

Part 1-ClassEdit

Hi

Im getting this error when trying to use your Google extension:

Fatal error: Class 'SpecialSearch' not found in /home/neilgrav/public_html/wiki/extensions/GoogleSearch.php on line 13

Do you have any idea what I might have done wrong? Using 1.6.7.

cheers

neilgravir

at gmail.com neil.macinnes at gmail.com

Response Looks like it can't find that class. You can force it to find it by adding include("../includes/SpecialSearch.php"); above the function wfGoogleSearch line. --MHart 15:28, 14 August 2006 (UTC)

Does this extension work without the Google Appliance?Edit

Hi,

Just wondering, does this extension work without the Google Appliance installed on our network ? We share hosting our wiki (like many) and found that we cannot change a PHP/mySQL index setting so that searches will work with words that that are less than 4 characters.

Appreciate it Cheers, Chris

Response

The extension will work only if Google can crawl your Wiki. For a public wiki using the Google website, you would need a developer's API key from Google and you would be limited to 1,000 searches per day. --MHart 15:51, 18 August 2006 (UTC)

PDF_doc_searchEdit

Hi, the code of SpecialUpload.php has changed since the time you wrote the code and I didn't manage to make it run under 1.9.0. Is there a way to run this as an extension without having to modify "locked" files? Is there a way that the function finds pdftotext independant of the path it is located? Thanks for your help. --Ikiwaner 20:49, 5 February 2007 (UTC)

Response I haven't looked at whether or not later versions allow you to insert custom handlers during the upload, but I doubt if they do, so you'd still have to modify where the upload is inserted into the db. --MHart 20:36, 4 May 2007 (UTC)

ThanksEdit

Just wanted to thank you for posting your Google search extension. Appreciate you taking the time to write it up and make it available!

Current VersionsEdit

Anyone have an example of the Google Search-2 code that works for current mediawiki version 1.12? Seems a few things have changed since the old 1.7.x version.

Thanks


Updated version now works with 1.12.0: Google Search 2 MW 1.12 --MHart 14:13, 25 April 2008 (UTC)

Problem with hide refererEdit

Hello, Matt! I have a problem with your hidereferer solution (http://meta.wikimedia.org/wiki/Hiding_Referers) Where should I put call to HideReferer function? (There is no $url = Sanitizer::decodeCharReferences( $url ); in my Parser.php file) I'am using 1.13.3 Thanks!

Your untagged imagesEdit

Return to the user page of "MHart".