Jon_Simmonds |
11-28-2005 10:00 PM |
v3arcade - Challenge a user via profile link
This is a simple profile edit, that adds a link to "Challenge this user" using the v3arcade system - www.v3arcade.com, from the user's profile page if the user has enabled the challenges optioin via their user CP
Find in template MEMBERINFO:
Code:
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
Below that, add the following:
Code:
<!-- v3arcade challenge user via profile -->
<if condition="($userinfo['arcadeoptions'] & 1) AND $userinfo['userid']!=$bbuserinfo['userid']"><td class="vbmenu_control">
<a href="arcade.php?do=newchallenge&userid=$userinfo[userid]">Challenge <b>$userinfo[username]</b> in the arcade</a></td></if>
<!-- / v3arcade challange user via profile -->
|