Jump to content
MakeWebGames

[MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error


Recommended Posts

Posted

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

forumimage.jpg

Posted

Re: [MCCODES V2] Forums Fix for Ranks, Number of Posts + Delete Error

yipeee, thanks illusions, that has been bugging me for a while ;) +1

  • 1 month later...
Posted

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! :-)

Posted

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

Posted

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?

Posted

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

Posted

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!

Posted

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

Posted

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']);

Posted

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

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...