Poll: Do you use this?

Results 1 to 13 of 13

Thread: SRL User Stats Signatures

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default SRL User Stats Signatures

    Didn't realise this forum was here so ima just leave this here

    Hi there guys, so today is the release of the SRL User Stats Signatures!

    This is in beta at the moment, as not all bugs are ironed out and the site looks disgusting, but it is functional.

    So here it is:


    The site is quite slow at the moment, so if someone wants to host, PM me.

    To get your User Stats Signature click here

    Thanks
    -Boom

  2. #2
    Join Date
    Sep 2010
    Location
    Northern Kentuckeh
    Posts
    759
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks! Looks Smexy
    Quote Originally Posted by h_king1998 View Post
    how come it does not bank in al-kharid when i do mine 1 drop 1

  3. #3
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Code plx
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Nava, here you go. The only thing that is different for his, is the link it produces under the image.

    Code:
    <?php
    
    /**
     * @author Dynamite
     * @copyright 2011
     */
    
    
    $urlbase = "http://localhost/game_stats/";
    
    putenv("GDFONTPATH=".realpath("."));
    
    $script_name = $_SERVER["SCRIPT_NAME"];
    $script_name = explode('/', $script_name);
    $script_name = $script_name[count($script_name) - 1];
    
    If (isset($_GET['js']))
    {
        ?>
        var link_to_script = 'http://stats.durp.me/';
    	$(document).ready(function () {
    		$('#imgbox').hide()
    	});
    
    	function GetData() {
    		data = new Array();
    		$('#select :selected').each(function (i, selected) {
    			data[i] = $(selected).text().replace(/ /g, '_');
    		});
    		return data;
    	}
    	function FetchImage(uid, data) {
    		var request = '?img&uid=' + uid + '&vars=';
    		$.each(data, function (key, val) {
    			var substr = val.split(',');
    			request += '"' + substr[0] + '",'
    		});
    		request = request.substring(0, request.length - 1);
    		$('#img').attr('src', '<?php echo $script_name;?>' + request);
    		$('#imgbox').show(0);
    		$('#link').html(link_to_script + (encodeURI(request)));
    	}
        <?php
        
        die();
    }
    
    if(isset($_GET['vars'])){
    	$strArr = stripslashes($_GET['vars']);
    	$strArr = str_replace('_', ' ', $strArr);
    	$strArr = str_replace('"', '', $strArr);
    	$varArr = explode(',', $strArr);
    }
    
    If (isset($_GET['img']))
    {
        Foreach ($_GET as $key => $value)
        {
            If ($key != 'img')
            {
                $$key = $value;   
            }    
        }
    
        header("Content-type: image/png");
        $image = imagecreatefrompng('image3.png');
        $white = imagecolorallocate($image, 255, 255, 255);
        $black = imagecolorallocate($image, 0, 0, 0);
        $i = 0;
        $b = 1;
        $c = 0;
    	$u;
    	$t;
    	$r;
        
        $pair = array(2,4,6,8,10,12,14,16,18,20);
        $impair = array(1,3,5,7,9,11,13,15,17,19);
    	
    	$data = @file_get_contents("http://stats.villavu.com/api/user/".$_GET['uid']);
    	$data = @json_decode($data);
    
    	foreach($data as $key => $value){
    		//print($key.': '.$value.' | ');
    		if($key == 'rank'){
    			$r = $value;
    		}else if($key == 'user'){
    			$u = $value;
    		}else if($key == 'time'){
    			$t = $value;
    		}
    		
    		for($j = 0; $j < count($varArr); $j++){
    			for($k = 0; $k < count($value); $k++){
    				if(is_array($value)){
    					if($value[$k][1] == $varArr[$j]){
    						$i = $i == 0 ? 25 : $i + 15;
    						$print = $value[$k][1].': '.$value[$k][0].' ';
    						
    						If ($b > 10)
    						{
    							$c = $c == 0 ? 25 : $c + 16; 
    							imagestring($image, 3, 250, $c, $print, $black);
    						}else{
    							imagestring($image, 3, 6, $i, $print, $black); 
    						}
    						   
    						$i++; 
    						$b++;
    					}
    				}
    			}
    		}
    		
    	}
        
        imagestring($image, 5, 10, 5, "Username: ".$u." Time: ".$t." Rank: ".$r, $white);
        imagepng($image);
        imagedestroy($images);    
    }
    
    If (isset($_GET['uid']))
    {
        
        $id = intval($_GET['uid']);
        
        $page = '
        <html>
            <head>
            <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
            <script type="text/javascript" src="'.$script_name.'?js"></script>
            </head>
            <body>
            <ins></ins>
                <b>Username:</b> {$user} <br/>
                <b>Rank:</b> {$rank} <br/>
                <b>Time:</b> {$time} <br/>
                
                <br/> 
                
                {$select}
                
                <br/> <br/>
                            
                <div id="imgbox">
                <img id="img" src=\''.$script_name.'\' border="0"></img>
                <br><br/>
                <div id="link"></div>
                <br/>
                </div>            
                
                <button onclick="FetchImage(\'{$uid}\', GetData());">Generate Signature</button>
                
            </body>
        </html>
        ';
        
        $data = @file_get_contents("http://stats.villavu.com/api/user/".$id);
        
        If (!$data)
        {
            Die ("Couldn't fetch data from the site");
        }
        
        $data = @json_decode($data);
        
        If (!$data)
        {
            Die ("Invalid data");
        }
        
        foreach ($data as $key => $value)
        {
            $$key = $value;
        }
        
        $select = '<select multiple="true" style="height: 150px" id="select">';
        
        foreach ($vars as $var)
        {
            $select .= "<option value=\"{$var[0]}\">{$var[1]}</option>";    
        }
        
        $select .= '</select>';
            
        eval("\$page = \"".str_replace("\\'", "'", addslashes($page))."\";");
        Echo $page;
              
    }else{
        
        $form = '<form method="get" action=""><input type="text" name="uid"/> <input type="submit" value="Search UID"/></form>';
        Echo $form;
        
    }
    
    
    ?>
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Dec 2011
    Posts
    95
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Camo Developer View Post
    Nava, here you go. The only thing that is different for his, is the link it produces under the image.

    Code:
    <?php
    
    /**
     * @author Dynamite
     * @copyright 2011
     */
    
    
    $urlbase = "http://localhost/game_stats/";
    
    putenv("GDFONTPATH=".realpath("."));
    
    $script_name = $_SERVER["SCRIPT_NAME"];
    $script_name = explode('/', $script_name);
    $script_name = $script_name[count($script_name) - 1];
    
    If (isset($_GET['js']))
    {
        ?>
        var link_to_script = 'http://stats.durp.me/';
    	$(document).ready(function () {
    		$('#imgbox').hide()
    	});
    
    	function GetData() {
    		data = new Array();
    		$('#select :selected').each(function (i, selected) {
    			data[i] = $(selected).text().replace(/ /g, '_');
    		});
    		return data;
    	}
    	function FetchImage(uid, data) {
    		var request = '?img&uid=' + uid + '&vars=';
    		$.each(data, function (key, val) {
    			var substr = val.split(',');
    			request += '"' + substr[0] + '",'
    		});
    		request = request.substring(0, request.length - 1);
    		$('#img').attr('src', '<?php echo $script_name;?>' + request);
    		$('#imgbox').show(0);
    		$('#link').html(link_to_script + (encodeURI(request)));
    	}
        <?php
        
        die();
    }
    
    if(isset($_GET['vars'])){
    	$strArr = stripslashes($_GET['vars']);
    	$strArr = str_replace('_', ' ', $strArr);
    	$strArr = str_replace('"', '', $strArr);
    	$varArr = explode(',', $strArr);
    }
    
    If (isset($_GET['img']))
    {
        Foreach ($_GET as $key => $value)
        {
            If ($key != 'img')
            {
                $$key = $value;   
            }    
        }
    
        header("Content-type: image/png");
        $image = imagecreatefrompng('image3.png');
        $white = imagecolorallocate($image, 255, 255, 255);
        $black = imagecolorallocate($image, 0, 0, 0);
        $i = 0;
        $b = 1;
        $c = 0;
    	$u;
    	$t;
    	$r;
        
        $pair = array(2,4,6,8,10,12,14,16,18,20);
        $impair = array(1,3,5,7,9,11,13,15,17,19);
    	
    	$data = @file_get_contents("http://stats.villavu.com/api/user/".$_GET['uid']);
    	$data = @json_decode($data);
    
    	foreach($data as $key => $value){
    		//print($key.': '.$value.' | ');
    		if($key == 'rank'){
    			$r = $value;
    		}else if($key == 'user'){
    			$u = $value;
    		}else if($key == 'time'){
    			$t = $value;
    		}
    		
    		for($j = 0; $j < count($varArr); $j++){
    			for($k = 0; $k < count($value); $k++){
    				if(is_array($value)){
    					if($value[$k][1] == $varArr[$j]){
    						$i = $i == 0 ? 25 : $i + 15;
    						$print = $value[$k][1].': '.$value[$k][0].' ';
    						
    						If ($b > 10)
    						{
    							$c = $c == 0 ? 25 : $c + 16; 
    							imagestring($image, 3, 250, $c, $print, $black);
    						}else{
    							imagestring($image, 3, 6, $i, $print, $black); 
    						}
    						   
    						$i++; 
    						$b++;
    					}
    				}
    			}
    		}
    		
    	}
        
        imagestring($image, 5, 10, 5, "Username: ".$u." Time: ".$t." Rank: ".$r, $white);
        imagepng($image);
        imagedestroy($images);    
    }
    
    If (isset($_GET['uid']))
    {
        
        $id = intval($_GET['uid']);
        
        $page = '
        <html>
            <head>
            <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
            <script type="text/javascript" src="'.$script_name.'?js"></script>
            </head>
            <body>
            <ins></ins>
                <b>Username:</b> {$user} <br/>
                <b>Rank:</b> {$rank} <br/>
                <b>Time:</b> {$time} <br/>
                
                <br/> 
                
                {$select}
                
                <br/> <br/>
                            
                <div id="imgbox">
                <img id="img" src=\''.$script_name.'\' border="0"></img>
                <br><br/>
                <div id="link"></div>
                <br/>
                </div>            
                
                <button onclick="FetchImage(\'{$uid}\', GetData());">Generate Signature</button>
                
            </body>
        </html>
        ';
        
        $data = @file_get_contents("http://stats.villavu.com/api/user/".$id);
        
        If (!$data)
        {
            Die ("Couldn't fetch data from the site");
        }
        
        $data = @json_decode($data);
        
        If (!$data)
        {
            Die ("Invalid data");
        }
        
        foreach ($data as $key => $value)
        {
            $$key = $value;
        }
        
        $select = '<select multiple="true" style="height: 150px" id="select">';
        
        foreach ($vars as $var)
        {
            $select .= "<option value=\"{$var[0]}\">{$var[1]}</option>";    
        }
        
        $select .= '</select>';
            
        eval("\$page = \"".str_replace("\\'", "'", addslashes($page))."\";");
        Echo $page;
              
    }else{
        
        $form = '<form method="get" action=""><input type="text" name="uid"/> <input type="submit" value="Search UID"/></form>';
        Echo $form;
        
    }
    
    
    ?>
    Sorry if I missed the point but that's written in java, sooo... how do i get that signature? When i go to the site and type in my UID I get this error "Couldn't fetch data from the site".

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by kyocera View Post
    Sorry if I missed the point but that's written in java, sooo... how do i get that signature? When i go to the site and type in my UID I get this error "Couldn't fetch data from the site".
    Umm what? That's not Java, did you miss the "<?php" tag at the top? Also, what UID are you entering?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  7. #7
    Join Date
    Dec 2011
    Location
    Sydney
    Posts
    1,284
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Couldn't fetch data from the site.

  8. #8
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    I'm not too fluent with php, but could you make one for scripts, not just users? If so, that would be awesome! ^_^

    EDIT: Not to worry; I found one made by Silent SPY
    Last edited by Press Play; 12-23-2011 at 04:39 AM.

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by -daazndagger- View Post
    I'm not too fluent with php, but could you make one for scripts, not just users? If so, that would be awesome! ^_^

    EDIT: Not to worry; I found one made by Silent SPY
    You mean by me
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    You mean by me
    Stop trying to make people believe you are a good asset to this community... We all know your true intentions.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  11. #11
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Daniel View Post
    Stop trying to make people believe you are a good asset to this community... We all know your true intentions.
    Lol, you're right. However, how do we know you're not the sneaky one here?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  12. #12
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Could you make it so that we can have these same sigs for individual scripts? I love the style of them.

  13. #13
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you put the url ouput into a smaller area or add a copy to clipboard button? It's a PITA to copy.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •