Support Center

Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 05:58:10 PM
22787 Posts in 5219 Topics by 2974 Members
Latest Member: Vijitha
News: Do not post any jReviews files or large amounts of code in the forums please. Only template files and code are allowed.
 
jReviews Support Forum  |  jReviews 1.x  |  Tips & tricks  |  xtdratings to jReviews migration « previous next »
Pages: [1]
Author Topic: xtdratings to jReviews migration  (Read 1671 times)
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 9000


« on: July 18, 2006, 04:02:05 PM »

Note: in the queries below it is important to make a few adjustments depending on the number of rating criteria you have. The example below is for 5 criteria

If you have defined only one set of criteria in xtdratings, then it is really easy to move your reviews. Just run the queries below in phpmyadmin. You still need to configure the criteria just like you had it in xtdratings, and also setup the categories but this is straightforward.

Transfer comments

Quote
INSERT INTO jos_jreviews_comments (id,pid,mode,created,userid,name,username,email,location,title,comments,published,ipaddress) SELECT id,pid,mode,date,userid,name,username,email,location,title,comments,published,ipaddress FROM jos_ff_review_comments

Transfer ratings

Quote
INSERT INTO jos_jreviews_ratings (reviewid,ratings,ratings_sum,ratings_qty) SELECT id,ratings,(SUBSTRING(ratings FROM 1 FOR 1)+SUBSTRING(ratings FROM 3 FOR 1)+SUBSTRING(ratings FROM 5 FOR 1)+SUBSTRING(ratings FROM 7 FOR 1)+SUBSTRING(ratings FROM 9 FOR 1)),5 FROM jos_ff_review_comments

Transfer votes

Quote
INSERT INTO jos_jreviews_votes (reviewid,yes,no) SELECT reviewid,yes,no FROM jos_ff_review_votes
« Last Edit: August 12, 2006, 11:58:13 AM by jReviews » Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
Patrick Zonneveld
Full Member
***
Offline Offline

Posts: 67



WWW
« Reply #1 on: August 12, 2006, 09:01:58 AM »

I've already installed and configured jReviews next to xtdratings. Can i still move the comments, ratings and votes. Or do i have to start all over with a clean install. I've already setup criteria and setup categories in jReviews.
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 9000


« Reply #2 on: August 12, 2006, 10:15:19 AM »

The queries above do exactly that. As long as you have the same number of criteria for all your categories it works.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
Pages: [1]
« previous next »
    Jump to: