1
3lr0n
forum block users avatar
  • 2010/6/20 21:46

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hi,

I want to show the avatar of the user who made the post in the newbb last post block..

Is there a way to have it?

Thks
Spanish Overclocking Community xoops based site : www.overclocking.es

2
ghia
Re: forum block users avatar
  • 2010/6/20 23:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You have to add the avatar as smarty field in index.php and in the template for display.

3
3lr0n
Re: forum block users avatar
  • 2010/6/21 5:12

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


In index.php? where?

I was checking newbb_block.php to see where the poster avatar was generated, but i didnt find it.

Spanish Overclocking Community xoops based site : www.overclocking.es

4
3lr0n
Re: forum block users avatar
  • 2010/6/21 14:51

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I mean,

the problem is in the code of the blocks only are checking the newbb tables, there is no user object to access atributes, like avatar.

I think a function to retrieve the user avatar if you have the user uid should be easy for a programmer, but Iam not and Iam a bit lost. Is there a fuction allready present in the xoops core for do this..

I only need the name of the file

regards
Spanish Overclocking Community xoops based site : www.overclocking.es

Login

Who's Online

263 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 263


more...

Donat-O-Meter

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

Latest GitHub Commits