PEAK XOOPS - Displaying user's name in block of myalbum-P2.83 in englishin japanese

Displaying user's name in block of myalbum-P2.83

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/8/8 15:19
oaktti  办霹始   Posts: 12
I wanna display the user's name in the recent block of myAlbum-P.
I've tried <{$photo.submitter_name}>, but it's no good.
----------------------

ユーザーさんからの要望で、
新着ブロックにユーザー名を表示しようと思い、
色々試したのですが、うまくできません。

テンプレートに<{$photo.submitter_name}>を足すだけではダメなんですね。


で、myalbum_topnews.phpもいじってみましたが、
結局の所、$uidが取得できていないようなので、
全てゲストになってしまいました。


何とか解決する方法はありませんでしょうか?


いつも聞いてばっかりで申し訳ございません。


Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/8/10 19:36
GIJOE  黎扦烦菱   Posts: 4110
hi okatti.

Perhaps, the best way is using "smarty plugins".

get a plugin for displaying user's info, and extract it and copy modifier.xoops_userinfo.php into your XOOPS_ROOT_PATH/class/smarty/plugins/

After this, you can get user's info in your templates like this:

<{$photo.submitter|xoops_userinfo:"uname"}>
Votes:17 Average:1.18
Previous post - Next post | Parent - No child | Posted on 2004/8/11 11:49
oaktti  办霹始   Posts: 12
Great!!Great!!Great!!

Thanks a lot!!
Votes:1 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!