Is possible with newscoop own methods OR
Is neccesary make call a php function with sql queries from a smarty .tpl file? and with this way get twitter, bio, and another attributes from users/editors?
i review differents newscoop templates doc and try different methods but it doesnt work for me...
thx
Marina, yes, i view similar code in user_profile.tpl, but it only work for me inside user_profile.tpl and show it in profile user page.
If i try put the same code in a new tpl it doesnt work.
How to get works any template, i think so i have a issue relation with a controller or view
thx u for your help
Thanks Ruslan, not, only i want show twitter of each user in different pages of profile page. My interest is show twitter in a different of page/template different at http://xxx/user/profile/<user> that it use user_profile.tpl template, and from here is possible get twitter of user, but not from another new tpl created.
I know tables that you say me: liveuser_users and user_attribute, but i want to avoid to create custom smarty-query to get twitter of a newscoop user. And i want to know the way to access attributtes data of each user with $gimme or another newscoop structure than i unknown on the moment.
thx.
Ruslan Shilov said:Thx Pawel, i tried list_users function but doesnt work too, because later, inside {{ list_users }} isnt possible to put:
{{ $gimme->list_user->twitter }} to get twitter account
The same problem to get image of a user image in Comments! :
{{ $gimme->list_user->picture }} to get image profile
or {{ $gimme->list_user->imageurl }} doesnt work too
or inside list_article_comments block isnt posible to do: {{ $gimme->comment->user->image/picture }}
:( :( :( ... yes three...
Paweł Mikołajczuk said:@Raul - i think that you need list_user function: https://wiki.sourcefabric.org/display/NsLingo/Listing+users
It looks like you're new here. If you want to get involved, click one of these buttons!