Giter VIP home page Giter VIP logo

Comments (10)

liedekef avatar liedekef commented on August 13, 2024

It is currently not possible, but not that difficult to add though. Problem is more that I do not know the field name of any custom (meta) field in the WP profile, so that would be up to you to figure out (and there's a difference with default wp fields and all custom fields, WP is kind of lacking in profiles).
Currently marked as feature request.

from events-made-easy.

blanch80 avatar blanch80 commented on August 13, 2024

Cheers Franky - appreciate you having a look at it.

Out example could be Role Type, so if a user selects Role Type 1 on their WordPress registration they're shown one template dynamically, then if they select Role Type 2 they'd be shown another.

I'm happy to have a go at figuring out the custom (meta) fields if you're able to start me off? Happy to test it too if you're planning on implementing it.

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

Currently the dev-version has this change:

Add generic placeholders #_WPUSERDATA{xx} and #_WPUSERMETA{xx}

meaning you can get the value of user data (main wp profile info) and meta (other fields) info.

from events-made-easy.

blanch80 avatar blanch80 commented on August 13, 2024

This is fantastic, thanks Franky - can't wait to test it out.

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

Feel free to download the zip from github then :-)

from events-made-easy.

blanch80 avatar blanch80 commented on August 13, 2024

I'm not that familiar with github, I can see the 2.3.58 release to download but can't see the dev version.

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

Go to "code" and there click on the green button to download a zip. The url to the dev-zip is always this:
https://github.com/liedekef/events-made-easy/archive/refs/heads/main.zip

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

I'll close this now. Feel Free to react if not working as expected.

from events-made-easy.

blanch80 avatar blanch80 commented on August 13, 2024

Hi Franky,

Sorry it's taken so long to get back to you. This does pull some detail in but not all.

For example, using the code:

`


#_SEATS







First Name*:#REQ_FIRSTNAME
Last Name*:#_LASTNAME
E-Mail*:#_EMAIL
WPUSERDATA:#_WPUSERDATA{role}
WPUSERMETA:#_WPUSERMETA{role}
WPUSERDATA:#_WPUSERDATA{nickname}
WPUSERMETA:#_WPUSERMETA{nickname}
WPUSERDATA:#_WPUSERDATA{last_name}
WPUSERMETA:#_WPUSERMETA{last_name}
#_SUBMIT`

This brings in the user nickname or last_name whether WPUSERDATA or WPUSERMETA is used, but neither of them bring in the user role. I've tried using roles but when loading the event after using roles I see the error There has been a critical error on this website and the page doesn't render correctly. Removing 'roles' resolves this problem.

I've also tried pulling in bp_member_type, that doesn't return a value but is a column header when I try exporting user data into a csv.

Hope you can help.

Thanks.

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

roles is an array, and printing that will probably cause the error. Try this:
ad5305c

from events-made-easy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.