[Tutorial]How to remove thread ratings
#1
Quite a few people have asked how to remove thread ratings from all the forums without having to go through each one and remove the option. Here's how to do it:

In PHPMyAdmin, run this query:

UPDATE `mybb_forums` SET `allowtratings` = '0' WHERE `allowtratings` = '1'

Make sure your table prefix, mybb_ here, is correct. This will turn off the rating for all your current forums. Now, if you look in the settings for each forum, the option to allow threads to be rated will be unticked... but, the thread ratings column still shows in forums.

Exclamation

To fix that, go to 'ACP > Tools & Maintenance > Cache Manager' find forums and click Rebuild Cache.

Then when you make new forums, just untick the option. Also should you ever want to add them back in, edit the query; change the 0 to a 1 and the 1 to a 0, run that, and rebuild the cache again. Note that current thread ratings will not be lost if you hide the columns as the ratings are stored in a separate table, and will show again once you turn on ratings again.

Smile
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#2
Thanks Matt,

Really helpful for anyone with a lot of sub-forums...
This could be easily modified to quickly update almost any setting (any setting which is yes or no, 0 or 1)
#
MyBB is the best forum software! Exclamation

Reply
#3
Could also make theming easier. Toungue
Reply
#4
Thanks for this Wink
[Image: 40DS6Te.png]

Reply
#5
Excellentaaaa Smile You are really SQL guru Toungue
Reply
#6
Oh you dear good wonderful human being Smile

THANK YOU!

Steven
Reply
#7
If you want, do a tutorial on how to manually remove the SKIN.
Reply
#8
What?? Undecided
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#9
I post how to remove the skin, moving it in the templates, without being in the tables of phpmyadmin.
Reply
#10
Better to do it this way because you're mass changing settings, not edited templates, if you edit templates and then want to use ratings again you have to revert the templates.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)