Livewire, that code works flawlessly. (thats the 'specificforum' stuff), thanks for the good tutorial btw, worked great.
However, it breaks when I enter this code:
You must first be a
registered member to view any code.
And, honestly, I can't see what I am doing wrong there.
Fury, this is a breakdown of the code above:
if ($type !='thread') == if its not a thread, its a reply
if ($foruminfo['specificforum'] == 1) == its a reply, is this the right forum to do this action?
$query.... it is (trying to) find out if the user has already replyed to this thread or if it was the threadstarter.
If all of the above is true, execute the query, if not, do nothing.