Raised This Month: $32 Target: $400
 8% 

Fix SteamIDs for the new update


Post New Thread Reply   
 
Thread Tools Display Modes
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 02-25-2015 , 07:10   Re: Fix SteamIDs for the new update
Reply With Quote #71

Quote:
Originally Posted by Horsedick View Post
I do believe I have this same issue cept removing superlogs isn't something I can do mostly since I need superlogs to be present for HLSW to log properly so at this point I'm damned if I do and damned if I don't. Know of a fix that doesn't include removing superlogs to prevent the doubled up users in the DB?
Then modify superlogs to use Steam3
__________________
Sarabveer is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-25-2015 , 20:29   Re: Fix SteamIDs for the new update
Reply With Quote #72

Quote:
Originally Posted by Sarabveer View Post
Then modify superlogs to use Steam3
I have no idea where to start with that.. I did post about it giving out errors in its thread but I don't believe anyone has seen it yet.
Horsedick is offline
BatyaMedic
Member
Join Date: Sep 2014
Old 05-23-2015 , 12:59   Re: Fix SteamIDs for the new update
Reply With Quote #73

Guys,i dont know what fix i should use.
Now my steamid`s is STEAM_0:[U:1:136763100] (example)
__________________
BatyaMedic is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 10-09-2015 , 13:58   Re: Fix SteamIDs for the new update
Reply With Quote #74

Quote:
Originally Posted by BatyaMedic View Post
Guys,i dont know what fix i should use.
Now my steamid`s is STEAM_0:[U:1:136763100] (example)
Same here, what should we do ?
__________________
misterG is offline
klink
Junior Member
Join Date: Feb 2009
Old 10-10-2015 , 07:52   Re: Fix SteamIDs for the new update
Reply With Quote #75

Quote:
Originally Posted by misterG View Post
Same here, what should we do ?
change in /pages/playerinfo_general.php this

Code:
$prefix = ((!preg_match('/^BOT/i',$uqid)) && $g_options['Mode'] == 'Normal') ? 'STEAM_0:' : '';
echo "Steam ID: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">$prefix" . "$uqid</a>";
to that
Code:
echo "Steam ID: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">" . "$uqid</a>";

Last edited by klink; 10-10-2015 at 07:56.
klink is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 10-10-2015 , 09:26   Re: Fix SteamIDs for the new update
Reply With Quote #76

Quote:
Originally Posted by klink View Post
change in /pages/playerinfo_general.php this

Code:
$prefix = ((!preg_match('/^BOT/i',$uqid)) && $g_options['Mode'] == 'Normal') ? 'STEAM_0:' : '';
echo "Steam ID: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">$prefix" . "$uqid</a>";
to that
Code:
echo "Steam ID: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">" . "$uqid</a>";
Do i have to delete the first line, the one with "$prefix" ?
__________________
misterG is offline
klink
Junior Member
Join Date: Feb 2009
Old 10-10-2015 , 10:52   Re: Fix SteamIDs for the new update
Reply With Quote #77

Yes.
klink is offline
avi9526
Senior Member
Join Date: Apr 2013
Location: Ukraine
Old 10-11-2015 , 15:59   Re: Fix SteamIDs for the new update
Reply With Quote #78

I only used first line of fix in hlstatsx.pl: https://forums.alliedmods.net/showpo...2&postcount=17

Code:
$uniqueid =~ /^\[U:1:(\d+)\]/;
Link and avatar on player info page was incorrect. Temporary fix that seems to be working is in playerinfo_general.php in line 57 replace

Code:
CAST(LEFT(hlstats_PlayerUniqueIds.uniqueId,1)  AS unsigned) + CAST('76561197960265728' AS unsigned) +  CAST(MID(hlstats_PlayerUniqueIds.uniqueId, 3,10)*2 AS unsigned) AS  communityId
with

Code:
CAST(REPLACE(REPLACE(hlstats_PlayerUniqueIds.uniqueId, '[U:1:', ''), ']', '') AS unsigned) + CAST('76561197960265728' AS unsigned) AS communityId
__________________

Last edited by avi9526; 10-11-2015 at 16:00.
avi9526 is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 10-12-2015 , 08:10   Re: Fix SteamIDs for the new update
Reply With Quote #79

Quote:
Originally Posted by avi9526 View Post
I only used first line of fix in hlstatsx.pl: https://forums.alliedmods.net/showpo...2&postcount=17

Code:
$uniqueid =~ /^\[U:1:(\d+)\]/;
Link and avatar on player info page was incorrect. Temporary fix that seems to be working is in playerinfo_general.php in line 57 replace

Code:
CAST(LEFT(hlstats_PlayerUniqueIds.uniqueId,1)  AS unsigned) + CAST('76561197960265728' AS unsigned) +  CAST(MID(hlstats_PlayerUniqueIds.uniqueId, 3,10)*2 AS unsigned) AS  communityId
with

Code:
CAST(REPLACE(REPLACE(hlstats_PlayerUniqueIds.uniqueId, '[U:1:', ''), ']', '') AS unsigned) + CAST('76561197960265728' AS unsigned) AS communityId
Will that show steam 3 id on the player's page ?
__________________
misterG is offline
avi9526
Senior Member
Join Date: Apr 2013
Location: Ukraine
Old 10-12-2015 , 08:24   Re: Fix SteamIDs for the new update
Reply With Quote #80

Yes, and I wiped all players stat before it
__________________
avi9526 is offline
Reply


Thread Tools
Display Modes

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 21:22.


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