Jump to content
MakeWebGames

Recommended Posts

Posted

hey guys

I've recently noticed that when a user posts in our forums, it sometimes posts twice, one with their actual text then a second blank post. This is also the case when i try to lock a topic, it locks, then seems to unlock itself at the same time.

We've also noticed that in the stafflogs, whenever a staff member does something that gets recorded, it is recorded twice for some reason.

Have no clue why this is happening as i can't recall changing anything that would effect it?!

Any ideas??

cheers for any help you can give!

Posted

hey, this is the code to post in the forums....as far as i can tell there arent any major problems, but then again i dont have much knowledge yet. would the problem be somehwere in this part of code or more likely in a different page, e.g. header.php?

 

$db->query("INSERT INTO forum_posts VALUES('', {$_GET['reply']}, {$forum['ff_id']}, $userid, '$u', unix_timestamp(), '{$_POST['fp_subject']}', '{$_POST['fp_text']}', 0, '', 0, 0)") or die(mysql_error());
$db->query("UPDATE forum_topics SET ft_last_id=$userid, ft_last_name='$u', ft_last_time=unix_timestamp(), ft_posts=ft_posts+1 WHERE ft_id={$_GET['reply']}");
$db->query("UPDATE forum_forums SET ff_lp_time=unix_timestamp(), ff_posts=ff_posts+1, ff_lp_poster_id=$userid, ff_lp_poster_name='$u', ff_lp_t_id={$_GET['reply']}, ff_lp_t_name='{$topic['ft_name']}' WHERE ff_id={$forum['ff_id']}");
$db->query("UPDATE users SET posts=posts+1 WHERE userid=$userid");
print "<b>Reply Posted!</b><hr /><br />";
$_GET['lastpost']=1;
$_GET['viewtopic']=$_GET['reply'];
viewtopic();

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...