2012-08-19, 03:50 PM
Instead of having the user's avatar on profiles, in posts, and so on, I need a way to place other data, based on the user's User ID. I know how I plan to generate the data. I just need to know how to go about actually implementing this.
Example #1
Profile
User ID 2480
Instead of loading their avatar, open a file that contains a list of which avatars which users are using (ordered background, character). Go to line 2480 (the User ID). Fetch which background and character to use. Draw the images accordingly. This, I can do. I just need to know how to get the User ID and place this custom data in place of the avatar.
Example #2
Forum Post
User ID 2480
The same is done here, but based on the User ID of the post instead of the User ID of the profile.
How would I go about doing this? Thank you!
Example #1
Profile
User ID 2480
Instead of loading their avatar, open a file that contains a list of which avatars which users are using (ordered background, character). Go to line 2480 (the User ID). Fetch which background and character to use. Draw the images accordingly. This, I can do. I just need to know how to get the User ID and place this custom data in place of the avatar.
Example #2
Forum Post
User ID 2480
The same is done here, but based on the User ID of the post instead of the User ID of the profile.
How would I go about doing this? Thank you!