Raised This Month: $51 Target: $400
 12% 

Admin Display from SB


Post New Thread Reply   
 
Thread Tools Display Modes
gandalfwizard
Junior Member
Join Date: Sep 2010
Old 11-02-2010 , 12:03   Re: Admin Display from SB
Reply With Quote #11

Yes, the following is happening on the add friends page,

steam://friends/add/76561.19799340108E+12

http://www.wdgaming.net/admins/admins.php

I have sorted in descending order based on srv_group
gandalfwizard is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 11-02-2010 , 12:41   Re: Admin Display from SB
Reply With Quote #12

the only thing i can think of is that you are running php that hasnt got the required extension or are running an older php version.

what version are you running (php)?

ive had a look at the code and must say that this is beyond me, ill try and get someone who probably can help
Rizla is offline
gandalfwizard
Junior Member
Join Date: Sep 2010
Old 11-02-2010 , 13:20   Re: Admin Display from SB
Reply With Quote #13

I assure you I am running the latest version of PHP, may I please ask you what process you use, to convert STEAM ID's to community ID's?
gandalfwizard is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-02-2010 , 13:24   Re: Admin Display from SB
Reply With Quote #14

Rizla I think you might have uploaded an outdated/wrong version of the files?
__________________


bouncer is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 11-02-2010 , 13:42   Re: Admin Display from SB
Reply With Quote #15

its the same version im using, ive looked over it and cant see anything different. i only have one version, and i convert it using the one that 8088 gave me in the steam id convert thread:

http://forums.alliedmods.net/showthr...ht=sql&page=26

i have pm 8088 asking to come and help
Rizla is offline
Gippo
AlliedModders Donor
Join Date: Oct 2008
Old 11-02-2010 , 20:20   Re: Admin Display from SB
Reply With Quote #16

Thanks for releasing the admin list.

Here is what I have.

http://vicinitygaming.org/index?pageid=adminlist
Gippo is offline
8088
Veteran Member
Join Date: Jan 2008
Old 11-02-2010 , 20:51   Re: Admin Display from SB
Reply With Quote #17

Quote:
Originally Posted by gandalfwizard View Post
Yes, the following is happening on the add friends page,

steam://friends/add/76561.19799340108E+12
That's probably because of lack of support of 64 bit integers. A safer way would be to use BC Math, but not all shared hosts support this.
PHP Code:
function steam2friend($steam_id)
{
    
$steam_id=strtolower($steam_id);
    if (
substr($steam_id,0,7)=='steam_0')
    {
        
$tmp=explode(':',$steam_id);
        if ((
count($tmp)==3) && is_numeric($tmp[1]) && is_numeric($tmp[2]))
        {
            return 
bcadd((($tmp[2]*2)+$tmp[1]),'76561197960265728');
        }
        else return 
false;
    }
    else return 
false;
}

$community_id steam2friend($info['authid']); 
Or let MySQL do the math, like this.

Quote:
Originally Posted by gandalfwizard View Post
I assure you I am running the latest version of PHP, may I please ask you what process you use, to convert STEAM ID's to community ID's?
There's no such thing as 'the latest version.'
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
gandalfwizard
Junior Member
Join Date: Sep 2010
Old 11-02-2010 , 22:09   Re: Admin Display from SB
Reply With Quote #18

I apologize, I meant I run PHP 5.3.3.

Regardless,

Would you mind giving a fix the following method http://forums.alliedmods.net/showpos...1&postcount=29 ?

I know I sound like a complete and utter leech right now, honestly with PHP/HTML, I am.

Hit me up if you need help with Java, I will glad to return the favor.

Last edited by gandalfwizard; 11-02-2010 at 22:11.
gandalfwizard is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 11-02-2010 , 22:50   Re: Admin Display from SB
Reply With Quote #19

so if we let mysql do the math, how would admins.php look like?
__________________


bouncer is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 11-03-2010 , 07:10   Re: Admin Display from SB
Reply With Quote #20

thanks 8088! and no doubt bouncer it would look the same - i cant see why it would change
Rizla is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode