Posted: 06-02-2016, 06:59 AM
(This post was last modified: 06-02-2016, 04:54 PM by linkzy.)
I was making a plugin which can count threads of user from a specific fid.
$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.