Skip to content


A Scroogle search box example code

During the last months, we’ve been using Scroogle to power the site search on Wiki4Games. We’ll soon be moving to something even better: a really different search engine, DuckDuckGo (Scroogle is “just” a nice man-in-the-middle between you and Google).
Scroogle provide some sample search box codes here, but they’re not exactly polished nor XHTML/HTML 5-compliant. So here’s the box we’ve been using on Wiki4Games, as well as the graphics (the Scroogle logo wasn’t that easy to find). Note that this version will use the SSL version of Scroogle (did I forget to mention that Scroogle was offering SSL search way before Google did?).

You can see the code and the result down there 😉 (NB: due to a bug in WordPress there’s a line break between the 2 radio buttons, which is not supposed to happen in the final design)
You can also download all this (HTML code + logo + “secure search” picture) in this archive.



<form method="post" action="https://ssl.scroogle.org/cgi-bin/nbbwssl.cgi " target="scroogle_window">
<div>
<div style="text-align:center;"><label for="Gw"><img src="/0custom/scroogle_logo.png" width="95" height="32" alt="Google search via Scroogle"/></label></div>
<input type="text" name="Gw" id="Gw" size="10" maxlength="225" value="wiki4games"/>
<input type="image" name="sa" alt="Search" width="41" height="22" vspace="2" align="top" border="0" src="/0custom/secure_search.png"/>
<input type="hidden" name="n" value="2"/>
<div style="text-align:left;font-size:x-small;">
<input type="radio" name="d" id="but_web2" value="www.wiki4games.com" checked="checked"/><label for="but_web2">Wiki4Games   </label>
<input type="radio" name="d" id="but_web1" value="*"/><label for="but_web1">Web</label><br/>
</div>
<!--<input type="submit" name="sa" value="Search"/>-->
</div>
</form>

A final note: if you want to insert that box into MediaWiki, the easiest way is probably to use the PCR GUI Inserts extension. The configuration would then be something like:

require_once( $IP."/extensions/PCR GUI Inserts/pcr_guii.php");
$wgPCRguii_Inserts['SkinBuildSidebar']['on'] = true;
$wgPCRguii_Inserts['SkinBuildSidebar']['content'] = array
    (
    array('Search box',
	'<form method="post" action="https://ssl.scroogle.org/cgi-bin/nbbwssl.cgi " target="scroogle_window">
<div>
<div style="text-align:center;"><label for="Gw"><img src="/0custom/scroogle_logo.png" width="95" height="32" alt="Google search via Scroogle"/></label></div>
<input type="text" name="Gw" id="Gw" size="10" maxlength="225" value="wiki4games"/>
<input type="image" name="sa" alt="Search" width="41" height="22" vspace="2" align="top" border="0" src="/0custom/secure_search.png"/>
<input type="hidden" name="n" value="2"/>
<div style="text-align:left;font-size:x-small;">
<input type="radio" name="d" id="but_web2" value="www.wiki4games.com" checked="checked"/><label for="but_web2">Wiki4Games   </label>
<input type="radio" name="d" id="but_web1" value="*"/><label for="but_web1">Web</label><br/>
</div>
<!--<input type="submit" name="sa" value="Search"/>-->
</div>
</form>)
    );

Posted in Google, privacy, web development.


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Rui says

    hi,
    i know, i’m not in a right place, and i try to see were is it,
    i need to know, how you do this modification http://www.wiki4games.com/File:Airline_Tycoon_Evolution_-_plane_making.jpg
    can you tell me?
    many thanks in advance
    best regards
    hugs

  2. patheticcockroach says

    Indeed, the right place would have been http://bbs.wiki4games.com 😀
    Anyway, as far as I remember (this was really a long while ago), that plane was realized using the modified build.csv file presented here: http://www.wiki4games.com/Airline_Tycoon_Evolution#HiTech_Design_Corp_-_get_better_parts

  3. Rui says

    Many thanks 🙂



Some HTML is OK

or, reply to this post via trackback.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA