|
Changing UID format?
|
|
07-28-2010, 09:58 PM
Post: #1
|
|||
|
|||
|
Changing UID format?
How can I change MyBB UID's to four digits?
i.e. I want UID's such as 1, 54, 987 to become 0001, 0054, 0987 -Alan Shepperson Support TechnicianVote for MyBB as the Best Forum Software of 2012! |
|||
|
07-29-2010, 12:36 AM
Post: #2
|
|||
|
|||
|
RE: Changing UID format?
If you're asking how to put zeroes in front of a number in PHP,
sprintf("%04d", 54) results in "0054" It's not really possible to change the UIDs themselves. They're stored as integers in the database so leading zeroes will be removed as it goes into the database. So all you could do is print them out with leading zeroes to the users, or in URLs. I don't see how that would be useful or desireable though. Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help




