Author Topic: [SOLVED] Points on viewing profile?  (Read 4538 times)

Zion

  • Guest
[SOLVED] Points on viewing profile?
« on: July 23, 2007, 06:59:44 am »
Me yet again, im sorry for posting again, im starting to feel like a spammer LOL

My question is, is it possible to have the donate points/money link on viewing a users profile.

Like say im viewing your profile, I want a "donate points to user" button there.

I often have need to donate to a user but have to find a post by them to do it.

Now obviously as my forum grows this will become a tedious task.

Thanks again :)
« Last Edit: July 23, 2007, 07:51:35 am by Zion »

Offline feildmaster

Re: Points on viewing profile?
« Reply #1 on: July 24, 2007, 03:48:58 am »
Well it simply is a link to  the shop's send money function... lets see

Code: [Select]
echo '
       <a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money</a>';

something like that...

Zion

  • Guest
Re: Points on viewing profile?
« Reply #2 on: July 24, 2007, 05:31:48 am »
thanks il try it.

I take it the place to put this is profile.template..php  8)

edit - got it working but it just goes to the bank (like it should) but doesnt input the members name  :-\
« Last Edit: July 24, 2007, 05:41:18 am by Zion »

Offline feildmaster

Re: Points on viewing profile?
« Reply #3 on: July 24, 2007, 09:39:13 pm »
ah... that'd be my fault...

Code: [Select]
;member=',$context['member']['name'],'"
that should work inplace of the ;member thing...

Zion

  • Guest
Re: Points on viewing profile?
« Reply #4 on: July 25, 2007, 06:15:41 am »
thanks that got it :)

For anyone who wants it this is the full code  :

Code: [Select]
echo '
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $context['member']['name'], '">Send Points To This User</a>', '</a><br />

Offline Daniel15

Re: [SOLVED] Points on viewing profile?
« Reply #5 on: July 27, 2007, 08:52:29 pm »
Quote
im starting to feel like a spammer LOL
Hehe, don't worry about it... More posts is always a good thing :D