Shoutbox

[REQ] GoogleFight plugin - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: [REQ] GoogleFight plugin (/showthread.php?tid=53521)

[REQ] GoogleFight plugin by laurenz on 12-02-2005 at 03:38 PM

a rather useless, but fun plugin. a GoogleFight plugin, the IRC channel of Web2Messenger has the function to say '!gf MSN:msgplus' and then googlefight.com  searches the answers, and the IRC channel shows the answers of MSN vs Plus!
bit useless, but like i said, great fun!
and it shouldn't be to hard i guess


RE: [REQ] GoogleFight plugin by linx05 on 12-02-2005 at 03:50 PM

I am guessing this can be made as a "parser" for the MEWS plugin.

Someone would have to make that one for ya.


RE: [REQ] GoogleFight plugin by laurenz on 12-07-2005 at 04:04 PM

so is anyone able to make one, seperate or with the MEWS plugin?


RE: [REQ] GoogleFight plugin by J-Thread on 12-10-2005 at 11:21 AM

Here it is, place it in your parsers dir of MEWS. Maybe Juzzi can add this parser to the database...?
It is easy to use, just say:

/xmews gf myword vs anotherword

And see the results ;-). Does also work with spaces in the name(Y)

Edit: I cannot attach a parser file here. I'll contact Juzzi so he can add it to his database

Edit2: Juzzi has got the plugin, he'll test it and will add it to the database:)


RE: [REQ] GoogleFight plugin by zach on 12-11-2005 at 12:13 PM

EasySearch Plus! has GoogleFight as an "easter egg" search engine. It opens the results in your browser, but you could send the link to your contact...


RE: [REQ] GoogleFight plugin by Tobiaz on 12-11-2005 at 04:33 PM

quote:
Originally posted by zach
but you could send the link to your contact...

Nice idea zach! Would it be useful, if the link will be send to your contact automatically?

Greeeez Tobiaz
RE: [REQ] GoogleFight plugin by zach on 12-11-2005 at 11:25 PM

quote:
Originally posted by Tobiaz

Nice idea zach! Would it be useful, if the link will be send to your contact automatically?

Greeeez Tobiaz
That could be useful, or if it showed who won in the conversation window. BUT I think that "MEWS" is going to beat you to it so maybe just leave it how it is.
RE: [REQ] GoogleFight plugin by J-Thread on 12-12-2005 at 08:55 AM

Yeah my MEWS plugin is nice. An example:

When you type:
/xmews gf J-Thread vs Juzzi

You see in the conversation window (both users see it off course):
Google fight J-Thread vs Juzzi

J-Thread: 16,600 results
Juzzi: 14,800 results

:P

But i'm still waiting for Juzzi to add it to his parser database. I can off course attach it here in a zip or so, but I like it when everybody downloads it from his database, better for the statistics etc.;). So just wait a few days....


RE: [REQ] GoogleFight plugin by linx05 on 12-12-2005 at 09:03 AM

Very nice. Will have to download it when it comes out :P


RE: [REQ] GoogleFight plugin by Tobiaz on 12-12-2005 at 11:13 AM

quote:
Originally posted by zach
That could be useful, or if it showed who won in the conversation window. BUT I think that "MEWS" is going to beat you to it so maybe just leave it how it is.

Yes, you're right :D
When I read was J-Thread wrote, then I think that his plugin works more better then mine :D

I will it download too ... :P

Greeeez Tobiaz
RE: [REQ] GoogleFight plugin by laurenz on 12-12-2005 at 06:34 PM

maybe you are able to post the winner?
so it show the result, and then on the final line it says:
winner: Googlefightresult with 150.000


RE: [REQ] GoogleFight plugin by J-Thread on 12-13-2005 at 08:58 PM

And there we go:
http://www.msgweb.nl/en/MSN_Projects/MEWS/Details/?parser=26


RE: [REQ] GoogleFight plugin by linx05 on 12-14-2005 at 02:29 AM

I am getting two errors.

'89', <scr> not recognised!

'Internet Services', XML document must have a top level element.

I've got the latest version of MEWS (doesn't have a version number :S). All the others work fine.


RE: [REQ] GoogleFight plugin by J-Thread on 12-14-2005 at 10:18 AM

Strange... It does work perfect on my computer...

I've also got the latest version of MEWS. Anyone else who's having those errors?


RE: [REQ] GoogleFight plugin by Tobiaz on 12-14-2005 at 12:41 PM

quote:
Originally posted by J-Thread
Anyone else who's having those errors?

I've got another error: Oject missing: 'xml. getElementsByTagName (...)'

I've got the lates MEWS version too...

Greeeeeez Tobiaz
RE: [REQ] GoogleFight plugin by John Anderton on 12-14-2005 at 12:42 PM

Nice idea (Y)
I want it ;)


RE: [REQ] GoogleFight plugin by J-Thread on 12-14-2005 at 03:14 PM

That's weird, at my computer it all works properly:S

Can any of you who has got problems please post (or PM me) the html code of the following page:

http://googlefight.com/query.php?lang=en_GB&word1=word1&word2=word2

Maybe that depends on where you live or something.... I can't imagine what else could make the difference, because the same input with the same code should give the same output...


RE: [REQ] GoogleFight plugin by Veggie on 12-14-2005 at 05:56 PM

code:
<html>
<head>
    <title>Results</title>
    <link rel="stylesheet" type="text/css" href="resultats.css" />
    <style>
        body {
            overflow : hidden;
        }
        .lien {
            position : absolute;
            visibility : hidden;
            display : none;
            right : -1px;
            top : -1px;
            height : 27px;
            width : 150px;
            text-align:center;
            overflow : hidden;
        }
        a {
            display : block;
            padding : 6px;
            text-decoration : none;
            background-image : url(images/fond_a.gif);
            background-repeat : no-repeat;
            color : black;
        }
        a:hover {
            background-image : url(images/fond_a_over.gif);
        }
    </style>
</head>
<body scroll="no">
<div id="waiter">
    <OBJECT width=359
            height=178
            classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"
            codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0">
            <param name=movie value="images/003.swf">

            <param name=quality value=high>
      <EMBED src="images/003.swf"
             width=359
             height=178
             quality=high
             pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
             type="application/x-shockwave-flash">
      </EMBED>
    </OBJECT>
</div>
<script language="javascript" type="text/javascript">
    function hide_loader() {
        progress();
        document.getElementById("waiter").style.display = "none";
    }
    function progress() {
        if(result1) {
            if(!result1 || !result2) return false
           
            if(i <= result1) histo1.style.height = i+"px";
            if(i <= result2) histo2.style.height = i+"px";
            i++;
            if(i<=100) setTimeout("progress()", 2);
            else {
                a = document.getElementsByTagName("SPAN")
                for(j=0; j<a.length; j++) {
                    a[j].style.display = "inline";
                }
                histo1.style.padding="3px";
                histo2.style.padding="3px";
                if(parseInt(histo1.style.height) < 22) histo1.style.height = "22px";
                if(parseInt(histo2.style.height) < 22) histo2.style.height = "22px";
                if(winner) winner.style.color = "#82D7E3";
            }
        }
    }   
    setTimeout('hide_loader()', 5000);
</script><div class='lien'>
    <a href="http://www.googlefight.com/v3/?word1=word1&word2=word2" target="_top">Direct fight</a>
</div>
<table cellspacing="0">

    <caption>
        Results on Google : 
     </caption>
    <tr>
        <td valign="bottom" id="result1" class="resultat">
            <b>word1</b>
            <div id="histo1" class="histo">
                <span>273,000 results</span>

             </div>
         </td>
        <td valign="bottom" id="result2" class="resultat">
            <b>word2</b><br />
            <div id="histo2" class="histo">
                <span>261,000 results</span>
            </div>
         </td>

     </tr>
</table>
<script language="javascript" type="text/javascript">
    var result1 = '77';
    var result2 = '73';
    var histo1 = document.getElementById('histo1');
    var histo2 = document.getElementById('histo2');
    var winner = 'result1';
    if(winner!="") var winner = document.getElementById(winner);
    var i = 0;
</script>
</body>
</html>

RE: [REQ] GoogleFight plugin by J-Thread on 12-14-2005 at 06:07 PM

Too bad, that's exactly what I see...

Anybody who sees the problem??:S


RE: [REQ] GoogleFight plugin by linx05 on 12-15-2005 at 08:32 AM

code:
<html>
<head>
    <title>Results</title>
    <link rel="stylesheet" type="text/css" href="resultats.css" />
    <style>
        body {
            overflow : hidden;
        }
        .lien {
            position : absolute;
            visibility : hidden;
            display : none;
            right : -1px;
            top : -1px;
            height : 27px;
            width : 150px;
            text-align:center;
            overflow : hidden;
        }
        a {
            display : block;
            padding : 6px;
            text-decoration : none;
            background-image : url(images/fond_a.gif);
            background-repeat : no-repeat;
            color : black;
        }
        a:hover {
            background-image : url(images/fond_a_over.gif);
        }
    </style>
</head>
<body scroll="no">
<div id="waiter">
    <OBJECT width=359
            height=178
            classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"
            codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0">
            <param name=movie value="images/003.swf">
            <param name=quality value=high>
      <EMBED src="images/003.swf"
             width=359
             height=178
             quality=high
             pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
             type="application/x-shockwave-flash">
      </EMBED>
    </OBJECT>
</div>
<script language="javascript" type="text/javascript">
    function hide_loader() {
        progress();
        document.getElementById("waiter").style.display = "none";
    }
    function progress() {
        if(result1) {
            if(!result1 || !result2) return false
           
            if(i <= result1) histo1.style.height = i+"px";
            if(i <= result2) histo2.style.height = i+"px";
            i++;
            if(i<=100) setTimeout("progress()", 2);
            else {
                a = document.getElementsByTagName("SPAN")
                for(j=0; j<a.length; j++) {
                    a[j].style.display = "inline";
                }
                histo1.style.padding="3px";
                histo2.style.padding="3px";
                if(parseInt(histo1.style.height) < 22) histo1.style.height = "22px";
                if(parseInt(histo2.style.height) < 22) histo2.style.height = "22px";
                if(winner) winner.style.color = "#82D7E3";
            }
        }
    }   
    setTimeout('hide_loader()', 5000);
</script><div class='lien'>
    <a href="http://www.googlefight.com/v3/?word1=word1&word2=word2" target="_top">Direct fight</a>
</div>
<table cellspacing="0">
    <caption>
        Results on Google : 
     </caption>
    <tr>
        <td valign="bottom" id="result1" class="resultat">
            <b>word1</b>
            <div id="histo1" class="histo">
                <span>272,000 results</span>
             </div>
         </td>
        <td valign="bottom" id="result2" class="resultat">
            <b>word2</b><br />
            <div id="histo2" class="histo">
                <span>259,000 results</span>
            </div>
         </td>
     </tr>
</table>
<script language="javascript" type="text/javascript">
    var result1 = '77';
    var result2 = '73';
    var histo1 = document.getElementById('histo1');
    var histo2 = document.getElementById('histo2');
    var winner = 'result1';
    if(winner!="") var winner = document.getElementById(winner);
    var i = 0;
</script>
</body>
</html>