MyBB Community Forums

Full Version: Store ip and post counts in database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking for a code to post Guest IP and their post count in the database and then delete them every 24 hours.

What I am trying to do is that Guest must solve captcha at least 5 times when posting. They can then post for 24 hrs without having to solve captcha.

I can place this code in newthreads.php but it only works for registered user.
|| $mybb->user['postnum'] < 5))

If there is a better way I would like to hear about it and how to do it..

Thanks,
To find out if someone is logged in do this:

if($mybb->user['uid']==0) 
{
// Guest
}
(2014-05-21, 09:05 AM)dragonexpert Wrote: [ -> ]To find out if someone is logged in do this:

if($mybb->user['uid']==0) 
{
// Guest
}

Thanks,