Hello,
I am using the Profile Manager (great PlugIn).
But I want the users to decide on the regestrations page for one profile type. There is no possibility in the Profile Manager to have the profile-type on the registration page. So I have in my own plugin just extended the register view
elgg_extend_view('register/extend', 'myplugin/register');
with this content
<input
type="radio"
name="custom_profile_fields_custom_profile_type"
id="custom_profile_fields_custom_profile_typeFAN"
value="<?php echo FAN_ID;?>"> <?php echo elgg_echo('votw_registration:fan');?>
<input
type="radio"
name="custom_profile_fields_custom_profile_type"
id="custom_profile_fields_custom_profile_typeARTIST"
value="<?php echo ARTIST_ID;?>"> <?php echo elgg_echo('votw_registration:musician');?>
The IDs (ARTIST_ID, FAN_ID) I have find out by echo $user->custom_profile_type.
For the registration action I use the Profile Manager action.
The Ids are written into the database, but it seems not be the rght way, because the fields for the different profile type on the poifile-page don't show up correctly.
Somebody know how I can do this - so it works?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Team Webgalli@webgalli
Team Webgalli - 0 likes
You must log in to post replies.I believe profile manager has this built in. You just need to make sure the profile type selection is not restricted to admin.
This is a feature in profile manager plugin. Recheck your plugin settings.