Uridium Posted June 4, 2009 Posted June 4, 2009 This little fix will show Ranks, number of posts per user and fix the Delete error from the orig V2 fourms open up forums.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Overwrite with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ranks now fixed to fix the delete topic find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just underneath that add global $db; And move recache_forum($topic['ft_forum_id']); so its underneath the stafflog_add statement and your done SCREENIE Quote
SCM-NZ Posted June 7, 2009 Posted June 7, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error yipeee, thanks illusions, that has been bugging me for a while ;) +1 Quote
Bwerk01 Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error I have done the fix that you have spelled out here and I am getting this error when I try to delete a topic. QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM forum_topics WHERE ft_id=8' at line 1 Query was SELECT FROM forum_topics WHERE ft_id=8 This is my function deletetopic You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and also, I can now delete posts but it still gives me this error: Fatal error: Call to a member function query() on a non-object in /home1/mobsterm/public_html/forums.php on line 593 Line 593 is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not sure if you know what's going on here or not but if anyone gets a chance to look at it I would appreciate it! :-) Quote
Uridium Posted July 26, 2009 Author Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Look above 593 is there a globals statement if so make sure theres a $db in there aswell for the other error SELECT FROM should be SELECT * FROM Quote
Bwerk01 Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Ahh perfect, didn't catch that. Do you have any idea what might be going on with the error I get from trying to delete topics? Quote
Uridium Posted July 26, 2009 Author Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Ahh perfect, didn't catch that. Do you have any idea what might be going on with the error I get from trying to delete topics? for the other error SELECT FROM should be SELECT * FROM Quote
Bwerk01 Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error Sorry, I didn't see that you had posted it above. Thank you for all your help! I really appreciate it! Quote
benlakaz Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error pls help.. im receiving this error Parse error: syntax error, unexpected '}' in /home/aaa/public_html/forums.php on line 351 whats the problem with this code? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thanks Quote
Uridium Posted July 26, 2009 Author Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error try You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
benlakaz Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error same error.. thanks.. what's missing? Quote
benlakaz Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error hey man.. its now ok.. thanks for the help Quote
Uridium Posted July 26, 2009 Author Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error pls help.. im receiving this error Parse error: syntax error, unexpected '}' in /home/aaa/public_html/forums.php on line 351 whats the problem with this code? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thanks Just to note the error you was getting was caused by this line.. stafflog_add("Deleted topic {$topic['ft_name']}");recache_forum($topic['ft_forum_id']); Always make sure you break after ; Example stafflog_add("Deleted topic {$topic['ft_name']}"); recache_forum($topic['ft_forum_id']); Quote
Dukky Posted July 26, 2009 Posted July 26, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error how would i get that ranking system to show on the user profile and there main game rank Quote
? Sparks ? Posted August 2, 2009 Posted August 2, 2009 Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error My forums are a bit different, could you help me? If so email me or Pm me since my script won't fit :P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.