Page 1 of 1

File Upload Custom Registration Field

PostPosted: June 22nd, 2011, 6:07 pm
by williamjhines
Hello all,

I have s2member configured on my site with the s2member profile page replacing the wordpress default.

I have taken advantage of the great custom registration fields options available in s2member, and have configured several.

However, I am in a predicament where I need to add at least two unique file upload fields to the custom profile. Of course, file uploads is not an option in s2member and wanted to know if some form of this is added in s2member PRO. If s2member pro provides some option to add a file upload field to the user profile page I will gladly buy it today ( I am not offering paid memberships, so the paypal and merchant gateway integration is unnecessary at this point in the project. )

If NOT, then basically what I'm seeing as the next step is to basically create a plugin that creates custom upload fields that are then added into the s2member registration fields right before they are published on the profile page. It would basically be a version of the user photo plugin only minus all the avatar features and plug it right into an s2member hook. If I can get this to work I'll paste the code.

So my question in that case would be what would a generic custom field insert look like? Or at least what s2member hook should I investigate more closely to insert my own field programmitcaly into it?

Re: File Upload Custom Registration Field

PostPosted: June 22nd, 2011, 7:37 pm
by Cristián Lávaque
s2Member Pro doesn't have that either.

Here's the documentation for the Custom Registration Fields Package viewtopic.php?f=40&t=9119&src_doc_v=110605 and all the hooks in it viewtopic.php?f=40&t=9116&src_doc_v=110605

To see how custom fields are stored, create some, save some values in them, and go look for wp_s2member_custom_fields in the usermeta table of the database.

I hope that helps.

Re: File Upload Custom Registration Field

PostPosted: June 28th, 2011, 2:51 pm
by ffemtkl
@ williamjhines

Did you ever get anything working? I actually want to add a upload/replace avatar option using the user photo plugin. However, I know little about hooks and all so looking for some basic code to try and develop on that.

Thanks,

Kalman