PDA

View Full Version : Dynamic avatars based on forum being post in


sapphiremagus
09-15-2009, 02:46 AM
Hi all,

I'm working on a relatively simple (I think) modification to emulate the functionality over at www.rpol.net.

I'm getting the necessary database tables set up but I am unsure how to handle the dynamic display options.

What I'm trying to do is make some forums act as Play by Post hubs for role playing games. Games are set up as forums under the designated forums. Players have access to the game forums for the games they play. The posts in those forums should display their character data, not the vbulletin member data. I imagine this will require some heavy post bit editing to change the displayed name and avatar to match that of the character info.

Any tips, tricks, or ideas to make this as painless as possible? Thanks :)

Lynne
09-15-2009, 03:54 AM
If you JOIN your character table to your user in the $posts query, then it shouldn't be too hard to do. It's a matter of setting up the tables/database the best way for what you want to do.

sapphiremagus
09-15-2009, 04:04 AM
If you JOIN your character table to your user in the $posts query, then it shouldn't be too hard to do. It's a matter of setting up the tables/database the best way for what you want to do.

Hmm, alright. That shouldn't be too hard - all the characters are linked to users via the userid value and all the games are linked to the forums via the forumid value. Characters are further linked to games via the game primary key of gameID.

Lemme see if I can keep from destroying things :p Thanks Lynne. Now to just figure out where the $posts query is located . . . .

RedeemedWarrior
09-15-2009, 04:26 AM
my girlfriend and i did this or something like it at my rpg forum, allowing each rpg thread or forum to have its own avatar

I post in 47 rpgs and all of them has a different avatar, that was alot of work to set up but worth it in the end