The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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 Show Your Support
|
Comments |
#112
|
|||
|
|||
Thanks I did the original code on the first page and it worked. I will make the tweaks from your file as well
edit: i forgot im running 2.2.7 lol |
#113
|
|||
|
|||
I've got this working fine on v2.3.0 using the files attached here and the recent fixes. Thanks all!
However, I have the same problem as danglick. When an Admin goes to edit a user's profile within Admin CP the custom fields are pre-filled with the values of the administrator's custom profile fields, rather than the user's values (or blank in the case of a new record). Is there any way to stop it from doing this, and show the user's value instead? |
#114
|
||||
|
||||
Quote:
In admin/user.php Find This (The Code from my txt file): PHP Code:
PHP Code:
Remember to replace this twice. |
#115
|
|||
|
|||
Two quickies Mutt...
This is a really good hack and I will definitely use it. However, I am having a couple of problems that will be the deciding factor. First off is this. After saving a custom profile field with Select Box and then going back into it, the text that was entered into the textarea is gone and it has to be typed in again... Is there a way to fix this? The last thing is a TextArea box selection. I use some boxes where the user must fill one of these out and unfortunately a straight line doesn't cut it. Is it possible to add one of these as a type where it uses height as rows and width as column? Thanks in advance... Tommy |
#116
|
|||
|
|||
Nomb and IceMalee - you guys solve my first problem....
Now for the textarea box, I have finally coded it in and it seems to be working for me. If anyone wants the coding, please let me know and I will post it here... Tom |
#117
|
|||
|
|||
File deleted due to it having some major bugs...
If someone could make it to where we could choose textarea boxes I would really appreciate it... Thanks |
#118
|
|||
|
|||
Nomb, thanks for the update man. I applied it to my files and it removed the issue where it replaced the users value with my own when editing a profile in admin when a user has a select field.
However... Instead of showing the users value now it shows the first value on the list instead. Is there any way to make the select box retain the users chosen value even when an admin is in their profile through Admin CP? |
#119
|
|||
|
|||
I had a dream last night and in that dream I was updating the coding for this stupid (not really) hack.
I am now within a few more minutes of coding before we have Radio Buttons, Select Boxes (dropdowns), Standard Text Lines, and my contribution TEXTAREA boxes. It's been a pain, especially since I no nothing about PHP. But I'm learning fast. The problem before was that I had the text area boxes for registration but everything else was blank.. I have however fixed that problem and I just have to recode a little on the user.php file... If you interested in this I will have it posted in just a little bit... Tom |
#120
|
|||
|
|||
Ok, I'm very close but I need a little help on one thing.
Right now I have it where it creates the textarea by the size and maxlength entries. Everything works fine. The Standard Text, Radio Buttons, and Select Boxes hold their information however the textarea box doesn't.... Anybody wanna help me out here? |
#121
|
|||
|
|||
Everything is going smoothly however I don't think anyone cares.
I need help from someone here. I have everything working great with the script above and a few modifications to the profilefield.php file. However, I need help on 2 things. The members.php file and the user.php file. When you go to a users profile in AdminCP or if you go to Edit Profile under the UserCP, if you have a field selected as not editable by user, then it completely hides that field, from the User AND the Admin. Can someone tell me how to get it to where the Admin can see it? Tom |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|