Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
[/code] Before that line Add the following code [code] $gperm_handler = & xoops_gethandler( 'groupperm' ); $groups = is_object($xoopsUser) ? $thisUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); // Dynamic User Profiles $thisUsergroups =& $thisUser->getGroups(); $fieldids = xoops_getmodulehandler('visibility','profile')->getVisibleFields($groups, $thisUsergroups); $profile_handler =& xoops_getmodulehandler('profile','profile'); $fields =& $profile_handler->loadFields(); $profile = $profile_handler->get($thisUser->getVar('uid')); // Add dynamic fields foreach (array_keys($fields) as $i) { //If field should be shown if (in_array($fields[$i]->getVar('field_id'), $fieldids)) { //echo "VAL0:".$value.""; $value = $fields[$i]->getOutputValue($thisUser, $profile); if (is_array($value)) { $value = implode('', array_values($value)); } if($value){ $fieldattr=array('title' => $fields[$i]->getVar('field_title'), 'value' => $value); $fieldname=$fields[$i]->getVar('field_name'); $xoopsTpl->assign($fieldname, $fieldattr); } } } [/code] 2. open modules/profile/class/field.php and replace this [code] function getUserVars() { return xoops_getmodulehandler('profile')->getUserVars(); } } [/code] with this one [code] function getUserVars() { return xoops_getmodulehandler('profile','profile')->getUserVars(); } } [/code] 3. Now you can refer to XOOPS user profile 2.3rc2 variables in your yogurt social networking 3.3 index template: (modules/yogurt/templates/yogurt_index.html) example if you created a field named age put this in the yogurt index template [b]Age:[/b] * make sure to set the permission for the field you created in profile module * clear xoops_data cache [b]credit to shiva and demian[/b][/quote] anyone know how to fix this to work with XOOPS 2.31 final ?????[/quote]" />

Re: Xoops 2.3 User Profile & Yogurt 3.3
by Monika on 2009/2/14 15:25:48

Sorry but this doesn't solve the problem.

Please help us guys!
Re: Xoops 2.3 User Profile & Yogurt 3.3
by nmshah on 2009/2/11 7:00:37

Quote:
This doesn't really work 100% the age always shows 39 years old. and the members have to go back to their profiles after registeration to edit their age again. which is really a bad thing.
I wish someone will fix this issue and thank you all.



https://xoops.org/modules/newbb/viewtopic.php?topic_id=65446&forum=4&post_id=302702#forumpost302702
Re: Xoops 2.3 User Profile & Yogurt 3.3
by Monika on 2009/2/8 14:56:59

Yes that's what we did, you can read the procedure somewhere in the previous posts. But the date couldn't be registered during registration!!!!! weired
Re: Xoops 2.3 User Profile & Yogurt 3.3
by noo-b on 2009/2/8 12:27:15

thats hard to do

its better for birthdate to be included as a required field in the registration form/profile module
Re: Xoops 2.3 User Profile & Yogurt 3.3
by Monika on 2009/2/8 11:55:40

Quote:
This doesn't really work 100% the age always shows 39 years old. and the members have to go back to their profiles after registeration to edit their age again. which is really a bad thing.
I wish someone will fix this issue and thank you all.


Up please, someone help us, i posted this problem in french XOOPS forum several days ago, nobody could fix it!!??? where are you XOOPS grus??

Who's Online

122 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 122


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits