PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

File Upload Custom Registration Field

s2Member Plugin. A Membership plugin for WordPress®.

File Upload Custom Registration Field

Postby williamjhines » June 22nd, 2011, 6:07 pm

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?
User avatar
williamjhines
Registered User
Registered User
 
Posts: 1
Joined: June 22, 2011

Re: File Upload Custom Registration Field

Postby Cristián Lávaque » June 22nd, 2011, 7:37 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: File Upload Custom Registration Field

Postby ffemtkl » June 28th, 2011, 2:51 pm

@ 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
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron