21
gregorybr
Re: display user avatar in template
  • 2011/2/6 3:32

  • gregorybr

  • Just popping in

  • Posts: 1

  • Since: 2011/2/6 2


Hello
I am trying to create a custom block. I want this block to include viewpmsg.php link when I am on my own profile. When I visit someone's else profile, I want to have Send the message button instead of this link.

I tried to add this code, but it didn't help.
<{if $user_ownpage && $xoops_isuser == true}>
<
a href="<{xoAppUrl viewpmsg.php}>">View your messages</a>
<{else}>
<
input type="button"  onclick="javascript:openWithSelfMain('<{$xoops_url}>/pmlite.php?send2=1&amp;to_userid=<{$user_uid}>', 'pmlite', 450, 380);" />
<{/if}>

Login

Who's Online

165 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 165


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