Quote:
Originally Posted by Abe1
Thanks for the hack. I made 14 forms for my site. All leading to new threads.
I got 2 problems now. One, the posts don't count. Two, the posts don't get searched.
I fixed number one by my self.
find:
PHP Code:
$forum[forumid] = $formforumid;
add before:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
SET posts = posts + 1
WHERE userid = $bbuserinfo[userid]
");
find:
PHP Code:
$forum[forumid] = $formreplyforumid;
add before:
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
SET posts = posts + 1
WHERE userid = $bbuserinfo[userid]
");
For the search problem, I couldn't come up with anything yet. Maybe someone else can.
|
I Just fixed a MAJOR bug in this. If you used this, you MUST fix and run 'update user post count' in you acp. ALL users post count were going up evey time one person would use the form.