Run this query in phpmyadmin:
[sql]INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,7,'Minmimum Posts to view Profiles','profileminposts','0','Here you enter the number of posts a user must have before he/she can view a members profile.','','6');[/sql]
Now open member.php, and find:
Code:
if ($action=="getinfo") {
$templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo";
include("./global.php");
add after:
Code:
if ($bbuserinfo[posts] < $profileminposts) {
eval("standarderror(\"".gettemplate("error_profileminposts")."\");");
}
Now add a template called:
error_profileminposts
Code:
Sorry you need at least $profileminposts posts before you can view this members profile.
Satan