MyBB Community Forums

Full Version: "add a friend" button on postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody,

is there a way to add a "add a friend" button on postbit profile?
in this thread, the author asks the same thing, the problem is that the solution given in this message doesn't work anymore.

does anyone know how to add this button?

thank you in advance.
check this plugin......
http://mods.mybb.com/view/user-quickmenu-in-postbit

its working fine for me....
uhm...
how do i extrapolate the correct url from this:
<a href="'.$mybb->settings['bburl'].'/usercp.php?action=do_editlists&amp;add_username='.urlencode($post['username']).'&amp;my_post_key='.$mybb->post_code.'">
?

it's plenty of useless dots and commas. if i put it this way in my postbit template, it gives me an error.
Go to: ACP > Templates > Postbit Templates > postbit_author_user templates > and add the following code at the bottom;
<br />Friend:&nbsp;<a href="{$mybb->settings['bburl']}/usercp.php?action=do_editlists&amp;add_username={$post['username']}&amp;my_post_key={$mybb->post_code}">Add as Friend</a>
great, thanks. it works fine Smile
Thanks.