PDA

View Full Version : Help: Adding profile fields ...


05-29-2000, 08:13 PM
Does anyone started to add fields (e.g. gender, image, ...) to the users profile?

How do i display them if i created a new field in the table user ?

06-04-2000, 07:40 PM
I registered just to throw in my two cents - this is the one thing that is stopping me from buying vbulletin right now... (just so you know how important it is to some folks)

:)

Thanks for all your hard work, John. This place rocks.

08-19-2000, 09:50 PM
Is this possible?

08-19-2000, 10:50 PM
It's plenty easy - the PM hack adds 3 fields alone.

Basically what you have to do is add a column to the database (I recommend phpMyAdmin), and then add the column name to the SELECT queries and make references to it :D

For vBulletin.org, we've added about 15 fields to the forum table :D

08-19-2000, 11:35 PM
Yes it easy to add fields if you know what you are doing php/mysql wise but John (i believe) is working on a system where you can just add fields via the control panel.

08-20-2000, 02:16 AM
Originally posted by rangersfan
Yes it easy to add fields if you know what you are doing php/mysql wise but John (i believe) is working on a system where you can just add fields via the control panel. well that would be excellent... now when i think about it, all the current hack's documentation should include an uninstall instructions for the extra stuff you add into the mysql database ?

08-20-2000, 02:22 AM
all the current hack's documentation should include an uninstallWell, don't forget that your going to have to go through every file you edited and remove anything added, and revert to the old SELECTs.

But my PM hack actually has that - somewhat. For each line, I replaced, I kept the original, just in case.

And if you look in the install file, there are actually a bunch of lines that will delete the tables, fields, and templates added (commented out of course).

Uncomment them, add an "exit;" just below and you can uninstall completely :)

08-20-2000, 02:31 AM
do you mean add "exit;" in the php files or the templates ? in the templates only need <!-- -- > right ?

08-20-2000, 03:45 AM
Well, I'm only talking about the PM hack, but what you want to do, is find all the commented out lines, uncomment them. Then comment out all the "insert" lines. Then run the install file.

Although I don't really know why you want to get rid of the stuff that was added in the tables - you can leave that there. No harm will be done.

08-20-2000, 08:10 AM
oh i see so if you added stuff in the mysql database you want to revert back you don't have to remove them ?

i.e. if i added the pm hack to my forum, but them wanted to remove it, all i would do is change the php files back to the copy i had before the php file changes ? no need to worry about the extra stuff you did you the forum database ?

08-20-2000, 03:45 PM
Yeah, because it won't be referenced by anything.

08-20-2000, 04:29 PM
thanks.. my members got a taste of the pm hack on another forum and now are asking... any chance that there will be a update on the PM hack soon :D - any additional stuff ?

08-21-2000, 02:10 AM
I didn't know there were features I could add :)

So basically no.

08-21-2000, 02:56 AM
i just worried about invalid email addresses and them bouncing back between members who use the pm hack... is there any check for invalid emails or something...

i am worried cause on a dedicated server i pay for all bandwidth ftp, mail as well as http traffic

08-21-2000, 03:52 AM
It's impossible to check for invalid email addresses, except for malformed syntax. And even then, you have to be careful.

And I'm not sure what exactly you mean by that - besides, each email is less than 1k, so I don't think anyone will be sending 1024 messages and eating up 1 MB of bandwidth :rolleyes:

08-21-2000, 04:38 AM
okay... just being a little cautious :D i have 2 major hacks remaining to be installed.. the pm hack and doron's poll hack (waiting on the next release)...

should i install the pm hack first ?

08-21-2000, 03:37 PM
Doesn't matter - just make sure you watch out for the lines that both hacks replace :D