MyBB Community Forums

Full Version: Custom field on users ptofile.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I wanted to add  a field on a users profiles something like this:

Title >> Your refer link:    A_BOX_HERE_WITH_TEXT


this text: freesamp.net/member.php?action=register&referrer=HIS_USER_ID_HERE



On all profiles.
Give this a shot. If it doesn't work, reply back and I'll resolve! I'm not sure if the UID variable works or not..

Demo: http://i.imgur.com/VHYGsX3.png

Step 1: Open AdminCP
Step 2: Click "Templates & Style" in the top navigation bar
Step 3: Click "Templates" in the left sidebar
Step 4: Click "[Theme Name]" for the theme you're using
Step 5: Click "Member Templates"
Step 6: Open "member_profile"
Step 7: Find the following code: (line 60 by default)

{$warning_level}

Step 8: After/Below the above code, add:

<tr>
   <td class="trow1"><strong>Referral Link:</strong></td>       
   <td class="trow1">{$mybb->settings['bburl']}/member.php?action=register&referrer={$memprofile['uid']}</td>
</tr>

Step 9: Save. 

This should work, but I'm not 100% if it does. If it does not, please reply. I would check, but I'm on my phone right now and it would take 3 times as long as it did writing this post... lol
Thank you so much!
No problem. Take care!