• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[GESIOR AAC] Live Streams

Korrex

Intermediate OT User
Joined
Jan 19, 2008
Messages
2,748
Reaction score
109
Streamlist for Gesior by Korrex
List provided by SlurpDerp

Presenting a livestream list making use of the SlurpDerp Livestream API.
It functions by fetching the list from Slurpderp's API.
It shows previews of the streams!
It allows you to click the preview and almost immediatly start watching!
And to top it off, you can get it here for free!
You can even apply for your stream to be listed!
And it updates automatically every 5-10 minutes, removing the offline streams and only showing online gaming streams! (including fellow OtLanders):$


I know what you are all thinking: :eek:, can it really do all that?
And my answer to that is. Yes, yes it does exactly that, AND MORE.

Now the steps to installing:

1. Download the package from the attachments below. (Don't worry it's completely safe, it's just the css file and php file :)) [For those still doubting me: VirusTotal Scan
2. Unzip the file to your www/htdocs folder depending on what webserver you're using :)
3. Open your index.php and add this in the "switch":
PHP:
case "streams";
    $topic = "Stream List";
    $subtopic = "streams";
    include("gesior.php");
break;
4. Open your layout.php and add this after the last item in your "Community" tab:
HTML:
<a href='?subtopic=streams'>
    <div id='submenu_streams' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
        <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
        <div id='ActiveSubmenuItemIcon_wars' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
        <div class='SubmenuitemLabel'>Live Streams</div>
        <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
    </div>
</a>
5. You're done. Simple as that :)

NOTE:
If you experience this error follow the steps provided below.
HTML:
Call to undefined function curl_init()

Windows user:
To enable cURL

1. Find your PHP folder
2. Open php.ini with notepad
3. Find ;extension=php_curl.dll
4. Remove the colon ;
5. Save and

If you cannot find the line on step 3, add extension=php_curl.dll to the bottom of the php.ini file.

You may have to restart apache after I dunno

Screenshots:
87p5f.jpg
AfSch.jpg
 

Attachments

  • streams-gesior.zip
    1.2 KB · Views: 413 · VirusTotal
Last edited by a moderator:
HTML:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
You require this for it to work properly. Add it into the header of your layout.
 
HTML:
 Call to undefined function curl_init()

with this code (just in php, no gesior):

PHP:
<html>
<body>
<link rel="stylesheet" type="text/css" href="stream/style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js">
	$(document).ready(function(){
		$(".streams").mouseenter(function(){
			$(this).addClass("streambg");
		}).mouseleave(function(){
			$(this).removeClass("streambg");
		});
	});
</script>
<?php
	$list = 'stream/list.cache';
	if(!file_exists($list) or (time() - filemtime($list) >= 300)){
		ob_start();
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, 'http://slurpderp.no-ip.org:1337/api/streams/XML');
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			$xml = new SimpleXMLElement(curl_exec($ch), LIBXML_NOCDATA);
			curl_close($ch);
			foreach($xml->stream as $k => $v) {
				sort($v->stream);
				$main_content .= '<a href="'.$v->link.'" target="_blank"><div class="streams" id="'.$v->name.'"><img src="'.$v->channel->preview.'" alt="'.$v->name.'"/><br /><b>'.($v->name ?: $v->channel->userid).'<br />'.$v->viewers.' Viewers</b></div></a>';
			}
		file_put_contents($list,ob_get_flush());
	}
	else {
		readfile($list);
	}

?>
<div class="clear"></div>
</html>
</body>
 
HTML:
 Call to undefined function curl_init()

with this code (just in php, no gesior):

PHP:
<html>
<body>
<link rel="stylesheet" type="text/css" href="stream/style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js">
	$(document).ready(function(){
		$(".streams").mouseenter(function(){
			$(this).addClass("streambg");
		}).mouseleave(function(){
			$(this).removeClass("streambg");
		});
	});
</script>
<?php
	$list = 'stream/list.cache';
	if(!file_exists($list) or (time() - filemtime($list) >= 300)){
		ob_start();
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, 'http://slurpderp.no-ip.org:1337/api/streams/XML');
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			$xml = new SimpleXMLElement(curl_exec($ch), LIBXML_NOCDATA);
			curl_close($ch);
			foreach($xml->stream as $k => $v) {
				sort($v->stream);
				$main_content .= '<a href="'.$v->link.'" target="_blank"><div class="streams" id="'.$v->name.'"><img src="'.$v->channel->preview.'" alt="'.$v->name.'"/><br /><b>'.($v->name ?: $v->channel->userid).'<br />'.$v->viewers.' Viewers</b></div></a>';
			}
		file_put_contents($list,ob_get_flush());
	}
	else {
		readfile($list);
	}

?>
<div class="clear"></div>
</html>
</body>

You need to enable curl in your php.in
You can find it in your PHP folder
 
Windows user:
To enable cURL

1. Find your PHP folder
2. Open php.ini with notepad
3. Find ;extension=php_curl.dll
4. Remove the colon ;
5. Save and

If you cannot find the line on step 3, add extension=php_curl.dll to the bottom of the php.ini file.

You may have to restart apache after I dunno
 
I can see the thumbnails of streams etc, but there's an error for every thumbnail

PHP:
Warning: sort() expects parameter 1 to be array, object given in C:\xampp\xxxxx\xxxxx\streams.php on line 23

the code:
PHP:
<html>
<body>
<link rel="stylesheet" type="text/css" href="stream/style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js">
	$(document).ready(function(){
		$(".streams").mouseenter(function(){
			$(this).addClass("streambg");
		}).mouseleave(function(){
			$(this).removeClass("streambg");
		});
	});
</script>
<?php
	$list = 'stream/list.cache';
	if(!file_exists($list) or (time() - filemtime($list) >= 300)){
		ob_start();
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, 'http://slurpderp.no-ip.org:1337/api/streams/XML');
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			$xml = new SimpleXMLElement(curl_exec($ch), LIBXML_NOCDATA);
			curl_close($ch);
			foreach($xml->stream as $k => $v) {
				sort($v->stream);
				echo '<a href="'.$v->link.'" target="_blank"><div class="streams" id="'.$v->name.'"><img src="'.$v->channel->preview.'" alt="'.$v->name.'"/><br /><b>'.($v->name ?: $v->channel->userid).'<br />'.$v->viewers.' Viewers</b></div></a>';
			}
		file_put_contents($list,ob_get_flush());
	}
	else {
		readfile($list);
	}

?>
<div class="clear"></div>
</html>
</body>
 
I can see the thumbnails of streams etc, but there's an error for every thumbnail

PHP:
Warning: sort() expects parameter 1 to be array, object given in C:\xampp\xxxxx\xxxxx\streams.php on line 23

the code:
PHP:
<html>
<body>
<link rel="stylesheet" type="text/css" href="stream/style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js">
    $(document).ready(function(){
        $(".streams").mouseenter(function(){
            $(this).addClass("streambg");
        }).mouseleave(function(){
            $(this).removeClass("streambg");
        });
    });
</script>
<?php
    $list = 'stream/list.cache';
    if(!file_exists($list) or (time() - filemtime($list) >= 300)){
        ob_start();
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, 'http://slurpderp.no-ip.org:1337/api/streams/XML');
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            $xml = new SimpleXMLElement(curl_exec($ch), LIBXML_NOCDATA);
            curl_close($ch);
            foreach($xml->stream as $k => $v) {
                sort($v->stream);
                echo '<a href="'.$v->link.'" target="_blank"><div class="streams" id="'.$v->name.'"><img src="'.$v->channel->preview.'" alt="'.$v->name.'"/><br /><b>'.($v->name ?: $v->channel->userid).'<br />'.$v->viewers.' Viewers</b></div></a>';
            }
        file_put_contents($list,ob_get_flush());
    }
    else {
        readfile($list);
    }

?>
<div class="clear"></div>
</html>
</body>

Lol, remove
sort($v->stream);
MFW KORREX
 
btw how to stream by this site?
when i click
Link a Stream
You do not have a stream linked to this account.
[Link] a stream to your account!
there is no action only blank page
 
btw how to stream by this site?
when i click

there is no action only blank page

Site is still under development. If you want a stream contact either me or Slurpderp.
We (He) are working to get most of the things done
 
Got an error :p
PHP:
Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\streams.php on line 23

And here's the line 23,
PHP:
$main_content .= '<a href="'.$v->link.'" target="_blank"><div class="streams" id="'.$v->name.'"><img src="'.$v->channel->preview.'" alt="'.$v->name.'"/><br /><b>'.($v->name ?: $v->channel->userid).'<br />'.$v->viewers.' Viewers</b></div></a>';
 
Back
Top