Ejemplo n.º 1
0
                                </div>
                                <div class="rb-column">
                                <h3>By ID</h3>
                                    <form action="" method="GET">
                                        Network: <select name="NetworkPlatform"><option value="tw">Twitter</option></select><br />
                                        User: <input type="text" name="NetworkUserID" value="13044" /><br />
                                        <input type="submit" value="Get Klout ID" />
                                    </form>
                                </div>
                                <div class="clear"></div>

                            <?php 
// Is there a Screen name or ID to use?
if (isset($screenname)) {
    //echo "<p>Klout ID for <strong>$screenname</strong> on <strong>$network</strong> is: ";
    $kloutid = $klout->KloutIDLookupByName($network, $screenname);
    //echo "<strong>". $kloutid ."</strong>";
} elseif (isset($userid)) {
    //echo "<p>Klout ID for <strong>$userid</strong> on <strong>$network</strong> is: ";
    $kloutid = $klout->KloutIDLookupByID($network, $userid);
    //echo "<strong>". $kloutid ."</strong>";
}
// Is there a Klout ID to be found?
if (isset($kloutid)) {
    echo "<h2>Klout ID: " . $kloutid . "</h2>\n";
    $KloutScore = ceil($klout->KloutScore($kloutid));
    ?>
                                    <hr />

									<div id="score">
										<div class="large-flag kscore">