MyBB Community Forums

Full Version: Add Friend to postbit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys, how do i add an "Add Friend" button to the postbit area of posts?

ive tried this: http://community.mybb.com/thread-89713.html

but dont work, that just adds the text with no link?

thanks
Within the same thread, I replied with this: http://community.mybb.com/thread-89713-p...#pid655174
Hi Yald,

I tried that but doesnt seem to work, heres what my postbit now looks like after adding the code to postbit_author_user:

Posts: 912
Joined: Nov 2010 ,
Location: Chester
Friend: Add as Friend (no link just the text as seen here)

heres the code as it looks after entering the code into postbit_author_user:

{$lang->postbit_posts} {$post['postnum']}<br/>
	{$lang->postbit_joined} {$post['userregdate']}
	{$post['replink']}{$post['warninglevel']},<br/>
Location: {$post['fid1']}
<br&nbsp;/>Friend:&nbsp;<a&nbsp;href="{$mybb->settings['bburl']}/usercp.php?action=do_editlists&amp;add_username={$post['username']}&amp;my_post_key={$mybb->post_code}">Add&nbsp;as&nbsp;Friend</a>

any ideas ?
if you have codepress turned ON then turn it OFF in preferences of admin panel ; then paste the code & check ..
ive done it there was a; inbetween the <a href tag ^^

ta ..1 last thing how do i add an image next to the link ?
you have </a> at the end of your added code . add code similar to below before that </a>
<img src="your image path" alt="" title="" /> (eg. <img src="forumURL/images/add_friend.gif" alt="" title="" />)
cool thanks mate Smile