215 Posts
cubist
10 years ago
9
Topic
I'm using J3 and Seblod 3.2... Is it possible to "grab" the current logged-in user's live profile fields and have a select few automatically populate my article-type form, such as name, address, phone, etc.?

I thought SD Live CCK Field plugin would work ... but this says any field "SD Live CCK Field is a Live Value plugin that allows you to grab the value of any field in your main article and use it as a live value" -- NOT fields from another form. Hmm....

While I don't care if I waste 10Eu and happily support Simon for all he's done for Seblod, it be good to hear from the community. Thanks in advance!!
Get a Book for SEBLOD
98 Posts
Edwin
10 years ago
5
Level 1
Hi cubist.

I use the live pugin "user profile advanced". It can pre-populate any form with the user's existing profile fields. But you will have to download version 3.x from here. I hope it helps.

regards
215 Posts
cubist
10 years ago
0
Level 2
Edwin, worked like a dream. Thanks for your quick post. It's been awhile since I visited the site and used seblod.pro. Appreciate you pointing me in the right direction. Regards!
10 years ago
0
Level 2
Hi, "user profile advanced" plugin is great! Do you have any idea how o get current user readmore link ?
I have custom readmore field in user form, but when add it as live value in user profile advanced it shows "No Such Field" as value.

Best Regards!
12 Posts
Albat
10 years ago
2
Level 2
Hi Edwin

I have downloaded this plugin and installed it but I have no idea how to use it. Can you help?

Thanks, i will really appreciate it.
98 Posts
Edwin
10 years ago
1
Level 3
Hi Albat and Dreakman

Sorry for the late reply.

After installing "user profile advanced" plugin, make sure it is enabled on the Joomla! plugins list. You need two fields - the one which already contains the data you want to capture, and the one you want to insert this existing data into.

Go to your Form and Content Type/Site Form. Go to the field you want to use, click button "2" (live + live value). Under live list dropdown, select user/profile-adv. Click configure and in the modal popup, enter the name of the field whose values you want to capture in "properties". Save and close modal popup. Save content type.

Note that you must enter the name of the field correctly or it won't work. It will throw an error "No Such Field".

I hope this helps

Regards
12 Posts
Albat
10 years ago
0
Level 4
Thanks Edwin for the reply. Will give it a go.
175 Posts
webcastor
10 years ago
0
Level 1
I assume you want your user data to be auto-filled in another content type.
Very good place to start would be the collection Code Pack (5 plugins). It offers:
  • Code Before Render
  • Code Before Store
  • Code After Store
  • Code CSS
  • Code JS
If you use Before Render code, you can collect and set user data in PHP before the form is rendered.
Another way might be to use an additional set of user data, stored in user profile (displayed inside an additional tab, for example), such as Delivery options (in case of a cart) or similar.
Using that approach you might just display relevant user data via a Search&List module on a side, together with the form.
8 years ago
0
Level 1

You can populate the form, WITH ANY data in the USER CONTENT TYPE e.g. teachers or students Content Type, e.g. 'school'. You just use the 'USER LIVE VALUE'  on a TEXT FIELD, and you just write the name of the field you want, as found in the database table. 

So if I want the form to populate with the students 'school' he is in (as found in his content type), I create a text field in the form, click on 2 -> user -> configure: 'school'

310 Posts
ricco
8 years ago
0
Level 1

Hi,

This would be great if made as a tutorial, step by step.

Thank you,

ricco

Get a VIP membership