Hey! I was making a plugin which can count threads of user from a specific fid.
PHP Code:
$query = $db->query("SELECT `uid`,`fid` FROM ".TABLE_PREFIX."threads WHERE uid='". $uid ."' AND fid='".$mybb->settings['resourcecount_fidcount']."' ");
The code above can get the user thread only from one fid like I go to setting and write 2, it'll count threads of the user only from 2 and when I write 2,3 it doesn't count from fid 2,3. One way is to use (fid="4" OR fid="2") but I don't know how to make this stuff work with the setting . I want to make a setting which can count threads from several fid.