2006-04-30, 05:31 AM
Pages: 1 2
2006-04-30, 07:29 AM
NO there is not!.
2006-04-30, 07:05 PM
could someone make one?
2006-04-30, 09:06 PM
nekng Wrote:could someone make one?
Follow this tutorial ( http://mods.mybboard.com/tutorials.php?tid=6 ) but use this code
}
elseif($mybb->input['action'] == "quickaddbuddy")
{
if($mybb->input['uid'] == $mybb->user['uid'])
{
error("You cannot add yourself to your own buddy list.", $mybb->user['username']);
}
$query = $db->query("SELECT buddylist FROM ".TABLE_PREFIX."users WHERE uid='".$mybb->user[uid]."'");
$list = $db->fetch_array($query);
if(strpos($list['buddylist'], ",") || strlen($list['buddylist'] > 0))
{
$newlist = $list['buddylist'].",".$mybb->input['uid']."";
}
else
{
$newlist = $mybb->input['uid'];
}
$query = $db->query("UPDATE ".TABLE_PREFIX."users SET buddylist='$newlist' WHERE uid='".$mybb->user[uid]."'");
redirect("usercp.php?action=editlists", $lang->redirect_buddyupdated);
2006-04-30, 09:15 PM
But that's for postbit tho...
2006-04-30, 09:17 PM
couldn,t i use that for the profile too, any ways i get
"Parse error: parse error, unexpected T_ELSEIF in /home2/backsta/public_html/forum/usercp.php on line 2035"
when i use the code that LeX- said to use
"Parse error: parse error, unexpected T_ELSEIF in /home2/backsta/public_html/forum/usercp.php on line 2035"
when i use the code that LeX- said to use
2006-04-30, 09:42 PM
i still get "Parse error: parse error, unexpected T_ELSEIF in /home2/backsta/public_html/forum/usercp.php on line 2035" , the code on line 2035 is
$displaycode = "<input type=\"radio\" name=\"displaygroup\"
2006-04-30, 09:46 PM
add your usercp.php as attachment, i'll take a look at it ... and if you want it in your memberprofile
Open Member Templates -> member_profile
add after $location or where ever you want to have the link
Open Member Templates -> member_profile
add after $location or where ever you want to have the link
<a href="usercp.php?action=quickaddbuddy&uid=$memprofile[uid]">Add to Buddy List</a>
2006-04-30, 09:48 PM
k, i did that and here is the usercp.php
2006-04-30, 09:57 PM
Try now with this file , http://thingiej.be/usercp.rar
Pages: 1 2