PDA

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


29 May 2000, 21:13
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 ?

04 Jun 2000, 20:40
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.

19 Aug 2000, 22:50
Is this possible?

19 Aug 2000, 23:50
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

20 Aug 2000, 00:35
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.

20 Aug 2000, 03:16
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 ?

20 Aug 2000, 03:22
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 :)

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

20 Aug 2000, 04:45
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.

20 Aug 2000, 09:10
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 ?

20 Aug 2000, 16:45
Yeah, because it won't be referenced by anything.

20 Aug 2000, 17:29
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 ?

21 Aug 2000, 03:10
I didn't know there were features I could add :)

So basically no.

21 Aug 2000, 03:56
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

21 Aug 2000, 04:52
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:

21 Aug 2000, 05:38
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 ?

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