Announcement

Collapse
No announcement yet.

Add a select field to the profile

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AlkATRaZ
    replied
    Originally posted by treszoks
    I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.
    That would be awesome!
    Could you make it so that you can chose a Textarea field aswell?

    Thank you so much!

    Leave a comment:


  • treszoks
    replied
    I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.

    Leave a comment:


  • Ed FvC
    replied
    I've tried adding this hack twice on v2.0.3, but each time, it shows the form fields up on the top of the UserCP->Edit Profile page, and they're all mangled (the drop-down menu is on the left with only the input boxes for Biography, Location, etc. lined up horizontally). I didn't get a chance to screencap it before I removed it, unfortunately.

    My experience with PHP is quite limited, so I can't really see where I'm messing up. I've done exactly what the instructions say. Any chance in this being installed in the next release of vB?

    Leave a comment:


  • AlkATRaZ
    replied
    I can't wait for the next release of this great hack! I really need the textarea profiles added!!
    Please keep us updated Mutt =)


    thx!

    Leave a comment:


  • Troubadour
    replied
    Latest Hack instructions

    Mutt,

    Thanks for the great hack. I've installed it and it's working well. However, I too am having the problem regarding required fields. You mentioned that you corrected this problem but haven't had time to update your instructions. Do you have an estimate as to when you may update them.

    Thanks a lot for a very useful hack.

    -T

    Leave a comment:


  • Justice
    replied
    Re: Uninstall

    Originally posted by Baines
    Is there something more you have to do than:
    *changing back the four PHP-files to their original state
    *changing back the template
    *delete the "profile"-directory
    *delete any custom profile-fields

    to un-install this hack?
    I sure hope not. This is what I did last night and everything seems to be back to normal. I look forward to a more secure version of this hack though

    Leave a comment:


  • Baines
    replied
    Uninstall

    Hi,

    Regarding un-installation of this hack.

    Is there something more you have to do than:
    *changing back the four PHP-files to their original state
    *changing back the template
    *delete the "profile"-directory
    *delete any custom profile-fields

    to un-install this hack?



    Thanks in advance,
    Baines

    Leave a comment:


  • Mr. X
    replied
    Can someone please post a screenshot of this hack in action? Thanks!

    Leave a comment:


  • Justice
    replied
    great hack, but...

    it would have been nice to have some updated instructions for the hack. I just installed it and most of my fields are required (and they don't show up in the registration page). The edit profile page works great though.

    Are new instructions coming soon or should I uninstall and wait?

    Leave a comment:


  • BradC
    replied
    Re: Major Help!

    FilePath="admin/profile/$profilefield[profilefieldid].file";


    Did you forget to copy it completly.. I say this because it should be

    $FilePath="admin/profile/$profilefield[profilefieldid].file";

    instead of

    FilePath="admin/profile/$profilefield[profilefieldid].file";

    Leave a comment:


  • Soul Lord XL
    replied
    Major Help!

    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:

    FilePath="admin/profile/$profilefield[profilefieldid].file";
    what is wrong with that?

    By the way, i am a little unclear on this, is this right, its my register_customfields:

    <tr>
    <td bgcolor="$bgcolor"><normalfont><b>$profilefield[title]:</b></normalfont><br>
    <smallfont>$profilefield[description]</smallfont></td>
    <td bgcolor="$bgcolor"><normalfont> $TheField normalfont></td>
    </tr>
    thanks

    Leave a comment:


  • BradC
    replied
    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..

    Leave a comment:


  • numerodix
    replied
    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?

    Leave a comment:


  • ethank
    replied
    Originally posted by Mutt
    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
    Well....damn Just put this on my site.

    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

    Leave a comment:


  • Mutt
    replied
    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

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X