1
Hi there,
I've made a smarty plugin that enables you to display any field(custom or not) from a given user. (Requires profile module)
// Examples:
// <{profile uid=1 field="uname"}> displays user name of the user which uid is 1
// <{profile uid=$myid field="uname"}> displays user name of the user which uid is $myid(assigned to template)
// <{profile uid=$story.posterid field="user_avatar"}> displays avatar of the user which uid is $story.posterid(assigned to template, ie. news_item.html)
// <{profile field="uname"}> displays user name of the current user
// <{profile field="field_name"}> displays field_name of the current user
This plugin respects access and visiblity permissions set on profile module.
I did not tested it much so you may expect bugs and/or lack of features.
I hope you find it useful.
Download it from here:
http://code.google.com/p/xuups/downloads/detail?name=smarty_function_profile_1.0_trabis.zip