Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Forum Post Reply Error

When posting a reply to an OLD forum thread that was posted before upgrading to V7
I get an error which reads something like this >>>

Notice: Undefined variable: thread_id in /home/sites/thesims3uk.co.uk/public_html/forum/postify.php on line 109

I only experience this error when replying to old forum posts from before the upgrade.

Please Help Thanks
Craig
Yeah thats weird....well here is the difference between v6 code and v7 code

v6 on line 97

CodeDownload  
$result = dbquery("UPDATE ".$db_prefix."thread_notify SET notify_status='0' WHERE thread_id='$thread_id' AND notify_user!='".$userdata['user_id']."'");



and on line 109 v7 is:

CodeDownload  
$result = dbquery("UPDATE ".DB_THREAD_NOTIFY." SET notify_status='0' WHERE thread_id='$thread_id' AND notify_user!='".$userdata['user_id']."'");



im not a coder but u can see the difference is ".$db_prefix."thread_notify and ".DB_THREAD_NOTIFY."
So do you know how to fix it?
why don't you change that line and see what happens?
No the code was correct. that is not the problem??
@Jay: No, this is not the problem.

Maybe $thread_id should be $_GET['thread_id'].
But i am not sure.
line 109 should be

CodeDownload  
$result = dbquery("UPDATE ".DB_THREAD_NOTIFY." SET notify_status='0' WHERE thread_id='".$_GET['thread_id']."' AND notify_user!='".$userdata['user_id']."'");

Thanks Digi that fixed it. Good work BTW.
You can grab the fix from svn, or await rc2
It's OK I just fixed it myself.

One more thing Digi. How can I disable username changes when members edit profiles? I do'nt want the kidz on my site causing havok.
Error fixed & Thread locked.

Please create for each support request a new thread.
Thread Information
Author
Replies
11 posts
Views
1478 times
Last Post
Last updated on 12 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Craig, Jay, Basti