The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Import old voting d...
 
Share:
Notifications
Clear all

[Solved] Import old voting data into wpDiscuz Article Rating database records

3 Posts
2 Users
0 Reactions
447 Views
Posts: 19
Topic starter
(@itpro)
Eminent Member
Joined: 2 years ago

In our old WordPress Theme we have a lot of article vote data for 14 years back in the database. I would like to import the old voting data into the data records that wpDiscuz uses for Article Rating and start using your Article Rating feature.

To be able to import the old data I need to know how you are storing each vote for each article in the database, so that I can create a custom INSERT INTO Sql statement with phpMyAdmin.

That way I can revive ratings on the old articles and start using your function. Any help is highly appreciated. Thanks.

2 Replies
Posts: 65
Support
(@zackar)
Trusted Member
Joined: 9 years ago

Hi @itpro

wpDiscuz stores rating information in the wp_wc_users_rated table and in the wp_postmeta under the wpdiscuz_post_rating and wpdiscuz_post_rating_count metakeys.
The like/dislike information is stored in the wp_wc_users_voted and wp_commentmeta table under the wpdiscuz_votes and wpdiscuz_votes_seperate metakeys.

Posts: 19
Topic starter
(@itpro)
Eminent Member
Joined: 2 years ago

Perfect! That is exactly what I need. Support here is truly brilliant. 🙂

Share: