step 1 :
Create a custom field "_PRESENTATION", and check the field "required" in the dynamic field
index.php?module=Profil&type=admin
step 2 :
if you wan't to automatically create a message when the user registered
add the following code just the step after the user is registered
in "users_user_finishnewuser" after
Code
after (!$registered) {
LogUtil::registerError(_USERS_REGISTRATIONFAILED);
} else {
LogUtil::registerError(_USERS_REGISTRATIONFAILED);
} else {
add
Code
//log the user
pnUserLogIn($uname, $pass, false);
$forum_id=2; // forum id where the message will be stored
// we create the subject
$topic_id = pnModAPIFunc('pnForum', 'user', 'storenewtopic',
array('forum_id' => $forum_id,
'subject' => "presentation of ".$uname,
'message' => $dynadata['_PRESENTATION'],
'attach_signature' => false,
'subscribe_topic' => false));
pnUserLogIn($uname, $pass, false);
$forum_id=2; // forum id where the message will be stored
// we create the subject
$topic_id = pnModAPIFunc('pnForum', 'user', 'storenewtopic',
array('forum_id' => $forum_id,
'subject' => "presentation of ".$uname,
'message' => $dynadata['_PRESENTATION'],
'attach_signature' => false,
'subscribe_topic' => false));
edited by: mumuri, Jan 10, 2009 - 06:55 AM
