MyBB Community Forums

Full Version: Disable fields for new accounts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
To further reduce the benefit that spammers gain, is it possible to deactivate the bio field and the website field until a certain amount of posts are met ?
From MyBB 1.6.5 and later when you edit Custom Profile Fields, there's an called "Minimum post count?" where you can enter any post count number you want.

For website URLs, try this: http://mods.mybb.com/view/homepage-control
Get template conditionals.
http://mybbhacks.zingaburga.com/forumdisplay.php?fid=38

Then, in the usercp_profile template, add this around whatever fields you want hidden,
if($mybb->user['postnum'] < 10)
}

So it's like this,

if($mybb->user['postnum'] < 10)
<tr>
<td colspan="3"><span class="smalltext">{$lang->website_url}</span></td>
</tr>
<tr>
<td colspan="3"><input type="text" class="textbox" name="website" size="25" maxlength="75" value="{$user['website']}" /></td>
}
</tr>

Now the website textbox is now hidden to those with less than 10 posts.

(2012-05-09, 09:09 PM)Xstrike Wrote: [ -> ]From MyBB 1.6.5 and later when you edit Custom Profile Fields, there's an called "Minimum post count?" where you can enter any post count number you want.

Should of read this first.