![]() |
Hey there
I'm still trying to learn all of this and damn this is cool ****. Anyway, I installed the gender hack and was going to use it to install another profile select box. Then I saw the very cool CP tool for adding a field to the profile. It currently only allows you to add a input box. I decieded to modify it so I could add my select box from there. It wasn't very hard and the hack is pretty short. Here it is in a nutshell I added a textarea field to the add/edit profile field if you want the new field to be a dropdown, you enter the dropdown values. each line represents a new option tag. Ex. you want a new field called "sex" that is a drop down with the choices male,female, and other. Make the new field as usual. Set Field Length. (1 would be a standard dropdown) Set Maximum Input (I'd leave it at 250) In the Select Box Items text area type Male Female Other each on it's own line. UPDATED for v224 with vbHacker Click thru for the updated version |
would anyone want the ability to add radio yes/no fields as well? I don't need em right now, but I gotta beileve I will sooner or later
Big Up to the VB guys for making it possible to add profile fields from the Admin CP. I dig it! |
This looks an excellent hack!
Radio buttons would also be very useful. Has anyone installed it? |
great hack, radio buttons anyone?
|
Radio buttons would be great!
|
If no one gets around to making radio buttons I will for ya :)
Not much of a change of code really... but I can't do it off the top of my head at work lol.. I usually on use drop downs.. cause they work for some of the stuff I have been doing lately :) RobAC... pm if you want me to change the custom hack to radio buttons instead of drop downs :) |
BreadC, we need both drop down and radio buttons :D
thanks |
I updated the directions to add radio buttons over the weekend, but couldn't get on the site to post em. I'll post it after work tomorrow. I orgiginally just made then standard Yes No radio buttons, but started to change it so they could have any value and you could have more than 2. will post it asap.
|
Mutt please post them as soon as you can....can't wait longer :D
thanks |
I'll try and finish it up today. I though of a nicer way to do it and would like to make it clean before posting. busy working on the vb code buttons today but I'm sure I'll get to it
|
Mutt...are you still working on it?
|
great work mutt
|
damnit mutt! ya did a good job! like a charm!
snyx LOL, mutt . . . . |
I'm interested in this as well....
|
I installed this and it works great outside of the control panel (when a user wants to change a profile field in his own user cp the drop down menu appears as it should).. But in the admin CP, when I go to 'add users', the custom field that I added does not show the drop down options.. It only shows an empty field just like the other profile fields there.. Any suggestions?
|
opps, I didn't change the cp. I'll get to it.
here's the newest file. I thought I had uploaded this already. sorry for the delay NEW - add selections just like the last one, but now you can choose between input box, select box, or radio button. |
great work Mutt :)
Thanks |
Mutt, i'm not sure but the drop down menu is not working in register.php
when i enter the values - X Y Z i get -XYZ in the register.php Did i do something wrong? Thanks :) |
works great for me! this is one of the coolest hacks! but it will be even better when the dropdown lists and radio buttons appear in the admin cp under 'users --> add/find' ;)) I wish I knew how to add that feature myself, but I'm not too good with php yet ;)
anyway keep up the good work Mutt! ;) |
I have a queston:
I got this error in my Admin CP when I edited a non-select or 'mutt' field in my custom profile fields editor. Warning: Unlink failed (No such file or directory) in /web/pbc2/forums/admin/profilefield.php on line 107 The directory exists and I am able to create select fields....and there are even "X.file" files in the /admin/profile directory....but there are no "X.files" for the other custom profile fields....so the script gives me that error above. I know...or I think and hope....this error is not a big deal. But I wanted to point it out. |
Mutt,
Very cool hack, now if someone would just make it so these fields are searchable ;) Later |
Is what is happening to VirtueTech happening to everyone using this?
|
did anyone try this with 2.0.3 ?
|
works in 2.03
updated to include modifications to user.php (now works when editing profiles from the cp) enjoy Mutt please post any bugs you find or let me know any ideas for additions VirtueTech - fixed your problem :) |
Mutt you rule :)
|
VirtueTech
I just changed the download above to include a fix for your error. you better redownload you were just too fast for me |
You are great Mutt :D
i wonder if you can add a feature like when someone choose OTHER from a drop down menu, they must fill in a near by box. just a suggestion, Thanks again :) |
man your great mutt thanks for the hack and the fast update for it :)
and another thing can you explain the country flag addition again because I couldnt understad what exactly I should do it the other thread thanks anyway :) |
oops nm I got it ;)
|
waoooow
Mutt nice , it's a great hack :) i used it for gender in 2.0.3 it's work gooooood only i was haveing one problim when i made a field with drop down menu and i made that field a required field in registertion template . it wasn't work but when i changed it to optional field it's work great :) one more thing if i want to use an image instead of a text for exp: if gender = Male >>>> then i'll have in the member list a male image instead of a text MALE . how can i do that :) . that is all ..... thanks |
Thanks, worked great on my site. Just what I was looking for!
|
Hi Mutt,
For some reason, the hack only works for the modify profile. On the registration part, is quite buggy. It displays a text field if the field is required. If the field is not required, it displays the radio buttons for all custom fields, if the ones created the usual way before the hack. I unistalled, reinstalled (on a test server) and the behavior is re-producable. |
|
Hi Lubi,
Can you test and see what happens if you make automobile a mandatory field? |
Quote:
|
I'll have to update my directions. I've changed this hack. the version I'm using now adds 2 fields to to the profile table. now you can pick, input text, radio, select, or textarea. you can set allow, vbcode, images, smiles, html. I also made sure it works with required fields, and handled some cp stuff that I missed before. Like I said, I don't have directions ready. it's a bit more work. I'll try and get to it next weekend
|
Quote:
I changed it a bit to have an option for a "hidden" field, which the profile editor uses to make category like dividers in the profile. This let me group profile fields together and have instructions on how to fill them in using "hidden" profile fields. Check the registration thing on murmurs.com for an example (the Feaks Map). Ethan |
This may come off as a silly question but how do you put in the custom fields where you want to in the user profile. That is normally they all come one after the other, how do you put each one where you want them to be. Ie first the name, then the gender, then the # posts, then the rest of the custom fields below that again. How do you manipulate them as you would the normal fields?
|
if you are talking about the actual user's profile..
go into your admin cp.. then go to edit templates, show all. then go down to this template: getinfo in that template is the profile template, so you can take that... open it up in your favorite program.. or in notepad, and change it around to be like you want it too... but bare in mind if you do it to one you might as well do it to all of them.. so you don't have double of one field. also... to find the field info.. to know what it is.. go to your custom fields in the admin cp, figure out what number it is (i.e. field5, field4) and then add it into the database like $userinfo[field5] I think that is how you do it.. |
Ack! When I go to do anything heres what the error message says:
Parse error: parse error in /usr/home/s/h/shenlong/public_html/vbb/member.php on line 1236 Here is my line 1263 on Member.PHP: Quote:
By the way, i am a little unclear on this, is this right, its my register_customfields: Quote:
|
All times are GMT. The time now is 09:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|