1
trabis
Profile smarty plugin v1.0
  • 2011/11/18 21:56

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 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


2
deka87
Re: Profile smarty plugin v1.0
  • 2011/11/18 21:59

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


mmmm nice. thanks trabis. very much appericated!
Mind anchors

Login

Who's Online

116 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits