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



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
get($xoopsUser->getVar('uid')); $date_birthday = date('d/m/Y', $profile->getVar('date_birthday')); $xoopsTpl->assign('date_birthday',$date_birthday); [/code] As this date is stored as an integer, I use the php function 'date' to change the format. I can now use the smarty variable : [code] [/code] That's what I do with the file [b]/modules/yogurt/templates/yogurt/index.html[/b], changing the line 105: [code] : [/code] With : [code] : - [/code] Wich displays : [img]http://www.valentinois.net/forums/frxoops/topic28086-forum5/5en.png[/img] I can use this variable everywhere in the template. In case of text variable, you can use this simple code : [code] $my_variable = $profile->getVar('my_text_variable'); $xoopsTpl->assign('my_text_variable',$my_variable); [/code] Instead of : [code] $date_birthday = date('d/m/Y', $profile->getVar('date_birthday')); $xoopsTpl->assign('date_birthday',$date_birthday); [/code] I can the display this variable where I want with [code] [/code][/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

151 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 151


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