• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

GUID Suche Einbinden

riedlchamp

Neues Mitglied
Hallo würde gerade von http://www.ggc-stream.com/search/server/guid/ die Suche auf der rechten seite auf meine HP einbinden.
Habe auf der Seite schon nachgefragt es darf eingebunden werden nur ein vermerk von welches seite muss dabei sein. An diesem soll es ja nicht scheitern.

Ich habe schon einiges probiert komme aber nicht weiter.
So weit bin ich momentan.

<div class="cms_widget content" style="padding-bottom: 0.5em;">
<div class="block">
<div class="cms_widget_header">
<h3><img src="http://www.ggc-stream.com/icon/fugue_icon/folder-horizontal.png" class="icon" alt="" width="16" height="16" />&nbsp;GUID Suche</h3>
</div>
<div align="center" class="cms_widget_content" style="float: left; width: 98.5%;">
<form method="post" action="http://www.cdn.ggc-stream.com/search/server/guid"> ---> da stand vorher /search/server/guid
<table style="width: 35%; float: left;">
<thead>
<tr>
<td class="thead" colspan="2">&nbsp;</td>
</tr>
</thead>
<tbody>
<tr>
<td class="even"><label for="guid" class="required">GUID</label>
</td>
<td class="odd"><input type="text" name="guid" id="guid" value="" size="40" maxlength="60" />
<div style="color: gray;">Kurze (8 Zeichen) oder volle GUIDs (32 Zeichen) erlaubt</div></td>
</tr>
<tr>
<td class="submit" colspan="2"><input type="submit" name="submit" id="submit" value="Senden" /></td>
</tr>



</tbody>
</table>
</form>
</div>


Wen ich das mache komme ich immer wieder auf die seite zurück.
Mit Iframe habe ich es auch getestet auch nicht der Erfolg.

Möchte ja nur die suche anzeigen und dan daneben das Ergebniss. Möchte damit auch meiner seite bleiben.
Hoffe das last sich irgenwie machen bin am verzweifeln.

Lg Philipp
 
Wenn Du damit deine Seite durchsuchen lassen willst, musst Du auch die Serverkomponenten der Suche auf deinen Server kopieren und darfst die URL im <form>-Element nicht anpassen. Wenn Du die Serverkomponenten nicht hast, wirst Du dein Vorhaben gleich wieder aufgeben müssen.

Da Du nachgefragt hast, nehmen die Inhaber der Seite wohl an Du willst nur die Oberfläche kopieren. Was Du und die dabei aber nicht bedacht haben ist, dass da weit mehr als nur der HTML-Code dazu gehört.
 
Danke mal für Die Info :)
Also gibt es sozusagen da gar keine chanze "Irgenwie" das einzubinden oder zu verbinden ?
lg
 
Hallo,
Habe nun die API
Aber da ich selber damit nicht auskenne muss ich nochmal fragen.
Danke euch schon mal.
lg philipp
<?php
// ************************************
// Name: banlist_export.txt
// Version: 1.0.0
// Date: 2011-07-21
// ************************************
// Enter the game handle:
$game = 'bfp4f';
// Enter the output format (json / xml / text):
// Info: For large banlists (e.g. bf2) you should use the text format due to memory limitations
$format = 'json';
// Enter your given API ID:
$apiId = 123456;
// Enter your given API Key:
$apiKey = '';

// ************************************
// * DON'T CHANGE THE FOLLOWING LINES *
// * IF YOU DON'T KNOW WHAT YOU DO *
// ************************************
// create an unique ID
$uniqueId = uniqid();
// create key (example of result: 123456_883d3cfe271401436f31891108ca7d12e44ad5ce_4e25cb77c99ce)
$key = $apiId.'_'.sha1($apiKey.$uniqueId).'_'.$uniqueId;
// convert ip to datatype "long"
$serverIp = ip2long($serverIp);
// use CURL to get the content
$url = "http://api.ggc-stream.com/banlist/export/index/game/{$game}/format/{$format}/key/{$key}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$outputRaw = curl_exec($ch);
curl_close($ch);
// switch for the right format
switch($format)
{
case 'json':
header('Content-type: application/json');
$output = json_decode($outputRaw, true);
// check for errors
if(!is_array($output))
{
echo $outputRaw;
die();
}
echo json_encode($output);
break;
case 'text':
header('Content-type: text/plain');
echo $outputRaw;
break;
case 'xml':
header('Content-type: text/xml');
echo $outputRaw;
break;
}
?>
 
2te API


<?php// ************************************// Name: guid.txt// Version: 1.0.1// Date: 2012-07-16// ************************************// Enter the game handle:$game = 'bf3';// Enter the full guid (32 chars):$guid = '1234567890123456789012345678901';// Enter the output format (xml / json / text):$format = 'xml';// Enter your given API ID:$apiId = 123456;// Enter your given API Key:$apiKey = '';// ************************************// * DON'T CHANGE THE FOLLOWING LINES *// * IF YOU DON'T KNOW WHAT YOU DO *// ************************************// create an unique ID$uniqueId = uniqid();// create key (example of result: 123456_883d3cfe271401436f31891108ca7d12e44ad5ce_4e25cb77c99ce)$key = $apiId.'_'.sha1($apiKey.$uniqueId).'_'.$uniqueId;// use CURL to get the content$url = "http://api.ggc-stream.com/banlist/search/guid/game/{$game}/gid/{$guid}/format/{$format}/key/{$key}";$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);$outputRaw = curl_exec($ch);curl_close($ch);// switch for the right formatswitch($format){ case 'json': header('Content-type: application/json'); $output = json_decode($outputRaw, true); // check for errors if(!is_array($output)) { echo $outputRaw; die(); } echo json_encode($output); break; case 'text': header('Content-type: text/plain'); echo $outputRaw; break; case 'xml': header('Content-type: text/xml'); echo $outputRaw; break;}?>



Mein Ziel wäre durch eigabe der GUID nummer einen eitrag zu finden oder nicht .

lg
 
Zurück
Oben