ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Returning hidden fields in registration member template

January 24, 2012 12:39pm

Subscribe [1]
  • #1 / Jan 24, 2012 12:39pm

    gtforum

    8 posts

    Hi,
    I am running EE v2.1.3. and MSM.

    I have searched the forums for a bit but may just not be searching for the right terms.

    We have around 14 different events and would like to quietly track the site at which the member registered. Can this functionality be added directly to the registration form template? I created a custom field that was hidden on the registration form but didn’t see a generated ‘hidden field’ in the source (maybe that doesn’t happen? and/or maybe i don’t understand how that works in EE.).

    Thanks so much, Rayna

  • #2 / Jan 25, 2012 4:02pm

    Kevin Smith

    4784 posts

    Hi gtforum,

    Could you share with me the code you’re adding to the member registration form along with the theme file to which you’re adding it?

  • #3 / Jan 26, 2012 8:25am

    gtforum

    8 posts

    Hi Kevin,
    Well I don’t have any code to share as no code was generated. I was trying to use the Custom Member Fields area and clicked not visible in the registration form but there was nothing in the source either.

    Also, I believe the Custom Member Fields are global and so probably won’t return the unique site name or id. Or if they would, I don’t know how to go about it as EE is still pretty new to me. I was hoping for something that would return {site_label} maybe?

  • #4 / Jan 31, 2012 4:36pm

    Dan Decker

    7338 posts

    Hi Rayna,

    I was trying to use the Custom Member Fields area and clicked not visible in the registration form but there was nothing in the source either.

    That will prevent the field from being displayed *at all* on the front end of the registration. Field marked with that preference will only be shown when registering users in the Control Panel.

    If you want something that will give you complete control over the registration templates and how they are presented to the user, you can look into Freemember. I’m not sure if it will be compatible with 2.1.3.

    Thanks!

  • #5 / Jan 31, 2012 7:54pm

    gtforum

    8 posts

    Hi Dan, oh, ok. Thanks for that info re: how ‘not visible’ works. much appreciated!

    Well, it’s more about tracking files and sites; like what member downloaded what file and what site did they register through. Any suggestions there? Been looking at Linklocker but I’m not sure if it’s compatible with EE 2x.

    Thanks again! Rayna

  • #6 / Feb 02, 2012 7:24pm

    Kevin Smith

    4784 posts

    Hmm… well I know you can track file downloads with add-ons like Protected Links and Channel Files, and you may want to do a search for others at Devot://ee. Regarding tracking where a member signed up? I would imagine Freemember would allow you to do that just by hiding the site_id in the registration form just like you were trying to do with the native registration form.

    Does that work out like you expect?

  • #7 / Feb 03, 2012 8:47am

    gtforum

    8 posts

    Hi Kevin,
    I purchased Protected Links as that seemed like it would do the trick so thanks for that.

    For the site_id, it is actually in the default member form, when you look at the source code, but I would have no idea how to pull that information out. Does that information get passed onto a database in the backend? I was looking at the members table but didn’t see anything there.

    Thanks so much for your help! rayna

  • #8 / Feb 06, 2012 5:32pm

    Dan Decker

    7338 posts

    Hi Rayna,

    ExpressionEngine tracks the site_id at the member group level. So if you have 2 different member groups between the sites, you could have new registrations for site 1 go in to “group a” and site 2 go into “group b”.

    Freemember doesn’t support custom member fields yet, so if you need a robust solution in the interim, have a look at Solspace’s User.

    Cheers!

  • #9 / Feb 09, 2012 4:00pm

    gtforum

    8 posts

    Thanks so much for all your help! Much appreciated! 😊

  • #10 / Feb 13, 2012 12:47pm

    Kyle Cotter

    730 posts

    Glad Dan and Kevin were able to help gtforum!

    If you have any more questions, feel free to start a new thread.

    Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases