Skip to main content
Topic: Custom profile fields on SSI page (Read 2247 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Custom profile fields on SSI page

Using 1.1 b4.  How would one go about outputting information from custom profile fields to an SSI driven page?  Specifically what I'm doing is creating a custom profile field where users can enter the number of people they plan to bring to an event.  The SSI page contains general information about the event, then outputs the usernames and number of people attending  with those members.  Perhaps even with a total at the end.  How can this be done?  Alternatively, can anyone think of an easier way to store this info in the database then output it on the appropriate page using the existing software?  Thanks for your thoughts!  Hope all is well for you. 

Re: Custom profile fields on SSI page

Reply #1

I'm a bit tired now and my brain is not working so well[1] so I'm not sure if what I'll say does make sense or not.

If you use loadMemberData/loadMemberContext to load the members data, you'll get all the custom fields values in
Code: [Select]
$memberContext[$user]['custom_fields']
that is an array. So you should be able to find the custom field by looping over the the entries of the array.
... that doesn't really make any difference from usual, so I'm not sure if it is an excuse or what xD
Bugs creator.
Features destroyer.
Template killer.

Re: Custom profile fields on SSI page

Reply #2

Could you somehow use a poll for that ... if not ignore me, I just finished a quadruple ale :P

Re: Custom profile fields on SSI page

Reply #3

Quote from: Spuds – Could you somehow use a poll for that ... if not ignore me, I just finished a quadruple ale :P

I'm all ears for suggestions.   Far from being a programmer, any help is welcome!  Haha