Hey how can I edit the buddies options in the member_profile? ({$buddy_options})
Add to Buddy List
Add to Ignore List
I want to edit these items but I can't seem to find the template.
Thank you.
There is no template for this, you have to open ./member.php file and find; (around line # 1768 - 1775)
if(in_array($mybb->input['uid'], $buddy_list))
{
$buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&delete={$mybb->input['uid']}&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_buddy.gif\" /> {$lang->remove_from_buddy_list}</a>";
}
else
{
$buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&add_username=".urlencode($memprofile['username'])."&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_buddy.gif\" /> {$lang->add_to_buddy_list}</a>";
}
And edit what ever you want to do
Use this instead , saves you having to edit a core file. Upload it to your /inc/plugins/ folder, activate it in ACP
[
attachment=21372]