![]() |
How do I do this? :P
I have a custom profile field, and people keep incorrectly entering the information that needs to go in it, so i just need to know how to make it so the information they enter has to begin with the correct phrase
What I need it for: I have a custom field for someones steam ID, so they can enter their steam id, and they keep entering their steam name, so intstead of getting STEAM:0:0:1234567, im gettin stuff like "johnfrink", so i need to make it so whatever you enter has to start with STEAM:, :P thanks |
You can use the "Regular Expression" field in the Custom Profile Field to validate the input.
|
Same issue with me, I tried to understand how to do the regular expressions but i was completly confused.
Could you give me info to put into the field? |
Regular Expressions are daunting, I agree. But it is very, very useful. I use this site as a reference.
|
From that site you gave me i was still confused but I played with the program "RegexBuddy" and i think I might have figured out the code i need but im not sure as im trying to test it out now.
the code: steam_[0-9]:[0-9]:[0-9]*+ EDIT: i dont know how to prevent digits the repeat more then 4 times though |
The "formula" for a SteamID is: STEAM_X:Y:Z. Where X is an unsigned 8-bit value, Y is an unsigned 4-bit value and Z is an unsigned 32-bit value.
Code:
^(?-i)(STEAM_[0-9]{1,3}:[0-9]{1,2}:[0-9]{1,10})$ |
People actually give you their Steam IDs???
|
Steam ID's cant be exploited in anyway but its a great way for people to link accounts to server information. I have been on servers that fully integrate their forum accounts into the game.
|
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|