PDA

View Full Version : Inserting a "User Profile Field" ?


tpearl5
07-12-2014, 07:45 PM
I'd like to create a plugin that inserts a user profile field, in this case one that is a yes/no selection and appears under the user options. I realize I have to run a query to insert the field into the user table, but then how do you go about registering the field as a variable and using it in showthread/postbit hooks?

If someone could point me in the right direction I'd highly appreciate it.

Lynne
07-12-2014, 07:51 PM
I am pretty sure there are some mods that add profile fields to the database. I think it is one related to gender - male/female for the toggle instead of yes/no, but it should still show you how to do it.

tpearl5
07-12-2014, 07:56 PM
I am pretty sure there are some mods that add profile fields to the database. I think it is one related to gender - male/female for the toggle instead of yes/no, but it should still show you how to do it.

Thanks, but all of those require a profile field to be created.

ozzy47
07-12-2014, 08:13 PM
Check this mod, they add a profile field automatically, https://vborg.vbsupport.ru/showthread.php?t=257579

tpearl5
07-12-2014, 11:56 PM
Check this mod, they add a profile field automatically, https://vborg.vbsupport.ru/showthread.php?t=257579

Thanks, I'll take a look.

ozzy47
07-13-2014, 12:01 AM
Not a problem, hopefully you can figure it out, if not we will go from there.

tpearl5
07-13-2014, 12:39 AM
Not a problem, hopefully you can figure it out, if not we will go from there.

Actually that is easier than I thought it was, but it makes perfect sense :up:

ozzy47
07-13-2014, 12:46 AM
Good deal, glad it was of a help to you.