User talk:Noverflow

From MediaWiki.org

Jump to: navigation, search

Hey Adam,
I made a change to your 'Search Suggest' page, so it searches for the whole word (and not drops the last character). I don't know if that was a bug or that you did it on purpose. If you did it on purpose, then just rollback the last change ;-)
TheDevilOnLine 14:23, 13 March 2008 (UTC)

[edit] Hello Adam,

I started to use your extension 'Search Suggest', and I had to include some fix to reduce the overload (now, each time you press a key, one search is launched to the database). If I write five letters, I send five selects to the database.

I included a few lines of code to implement a delay pattern. This way you will send only one select, 1 second after the user finishes to write. If you like you could implement a php switch to alternate the two ways (immediate search or delay search, and a variable for the delay).

Thanks for all, I hope you like it, best regards,

//
// INCLUDE THIS FUNCTION IN <"searchsuggest.js">
//
// Delay Pattern for searchsuggest extension
var id=0;

function SearchCallTimed() {
	clearTimeout (id);
	id = setTimeout("SearchCall();",1000);
}
// end Delay Pattern

//
// LOCATE THIS FUNCTION AT THE END OF THE FILE AND CHANGE THE CALL TO <"SearchCall();"> to <"SearchCallTimed();">
//
function ss_ajax_onload(){
    var x = document.getElementById('searchInput');
    x.onkeyup = function(){
        SearchCallTimed();  // CHANGE THIS LINE
    };
}


Nino dafonte 09:38, 10 April 2008 (UTC)

[edit] AddUploadImage

Hi, I have seen your Link Suggest extension and it looks very promising so far. At your website http://risdpedia.net I have seen another "add image" button and I think that the functionality to find and select or upload an image would be really useful for many people. Didn't you think about posting it as an extension as well? Thanks. Milan.


Sadly, that is such a hack right now that It cant just be installed. The popup window is not part of mediawiki, it queries the database directly and must be configured with the username and password for the database. To top it all off, the part where you can upload an image uses a bot to doit. It automatically names the image after the article (if it already exists, adds a number to the end of it). It resizes the image to a max size of 800px, and again it is uploaded by a bot so the user does not need to be logged in.

It is all because my user group often has a hard time not uploading dc206.jpg that is 6MP (too big, not descriptive). Also the idea of having to create an account is enough for them to walk away. But I agree, something like this needs to be an extension. The 7-8 steps to upload or find an image and add it to an article is ridiculous.

--Noverflow 12:13, 21 April 2008 (UTC)

Personal tools