UBB.Dev
Posted By: S7ARBVCK Noob - need help, or a reality check! - 09/03/2008 11:01 PM
Hey, all,

I'm currently looking to produce an on-line, interactive community in Flash on my website. This will involve the user creating an avatar in Flash which will be used elsewhere on the site.

I'd also like to add UBB functionality to the site for discussion forums. Problem being that I'd really like to use the Flash generated avatars in my UBB forums.

Is there any way I can alter (or write) the membership of a UBB using another piece of software? I don't mind writing the handler myself, but I need to know about the format of the membership files etc - is this information available?

Am I correct in thinking that as UBB is written in PHP that this will use MySQL database of some kind?

Cheers,

SB.
Posted By: Gizmo Re: Noob - need help, or a reality check! - 09/04/2008 1:19 AM
Well, you'd have your flash app write out the image to your ubb avitars folder; and then users could select them; or you'd have to have it do that then trigger some sort of script which updates the users profile with the newly created avitar URL...
Posted By: S7ARBVCK Re: Noob - need help, or a reality check! - 09/04/2008 9:33 AM
Hey, Gizmo - thanks for the reply.

The second part of the reply is what interests me - is there no "User Profile" file format or something so I could just write directly to this from a PHP script run by flash? I notice you said on my post on the other UBB forum that the member details are stored in a MySQL database - what is the format in the Database, and if I updated the database, would UBB automatically recognise the new content of the database as a valid user, or would I need to go through another process to validate them?

Also - in the User profiles, am I tied to the options available when you set up UBB with attributes of a user profile, or can I add my own "special" attributes too?

Thanks again for your help! smile

SB
Posted By: Gizmo Re: Noob - need help, or a reality check! - 09/04/2008 10:21 AM
No file format as user data is not stored as a file, user data is stored in the MySQL database.

ALL mysql databases MUST be updated by a script which has access to read and write to the MySQL database.

You should download PHPMyAdmin and use it to interact with your UBB database to get a better understanding of how the UBB stores data.

You would likely have to write out some sort of way to validate that the user is the user; as this would be a 3rd party addon to the UBB script...

As for extra stuff, you can simply add another field to the table.
© UBB.Developers