Hello there you guys i hope u all doing well.
Today i was thing what new feature or like a system add in mybb.When ever you need to add some one as friend you need to go to in his or her profile then you can add him or her as friend.So i think to make it as simple as single click so add a link in postbit to add someone as friend.
Here we go.
Go to: ACP > Templates > Postbit Templates > postbit_author_user templates > and add the following code at the bottom.
<br />Friend: <a href="{$mybb->settings['bburl']}/usercp.php?action=do_editlists&add_username={$post['username']}&my_post_key={$mybb->post_code}">Add as Friend</a>
here is preview of this
Today i was thing what new feature or like a system add in mybb.When ever you need to add some one as friend you need to go to in his or her profile then you can add him or her as friend.So i think to make it as simple as single click so add a link in postbit to add someone as friend.
Here we go.
Go to: ACP > Templates > Postbit Templates > postbit_author_user templates > and add the following code at the bottom.
<br />Friend: <a href="{$mybb->settings['bburl']}/usercp.php?action=do_editlists&add_username={$post['username']}&my_post_key={$mybb->post_code}">Add as Friend</a>
here is preview of this
0 Comments for "Add a link in the postbit to add a member as friend"