Products
Demo
Forum
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
May 25, 2012, 04:01:14
Advanced search »»
JoomlaTune Support Forum
JComments component
Bug-reports
Topic:
Error on import - no negative rating
Pages: [
1
]
Go Down
Print
Author
Topic: Error on import - no negative rating (Read 2106 times)
0 Members and 1 Guest are viewing this topic.
clone
Newbie
Karma: 0
Offline
Posts: 6
Error on import - no negative rating
«
on:
November 18, 2009, 05:49:57 »
Hi,
I made some changes to admin.jcomments.migration.php file, since the imported chrono comments didn't have negative rating.
Don't know about the other systems, but ChronoComments uses only one field to store comment rating, so it can be positive or negative. As JComments uses separate unsigned fields, the direct transfer didn't work, so the thing I changed in order to get everything to import is :
from : $comment->ispoor = $row->rating < 0 ? $row->rating : 0;
to : $comment->ispoor = $row->rating < 0 ? abs($row->rating) : 0;
Cheers
Clone
Logged
smart
Administrator
Hero Member
Karma: 160
Offline
Gender:
Posts: 2559
Re: Error on import - no negative rating
«
Reply #1 on:
November 18, 2009, 14:14:46 »
Ok, thanks! I've already applied this fix to new version...
Logged
If you use JComments, please post a rating and a review at the
Joomla! Extensions Directory
Pages: [
1
]
Go Up
Print
JoomlaTune Support Forum
JComments component
Bug-reports
Topic:
Error on import - no negative rating
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
JComments component
-----------------------------
=> General discussion
=> Suggestions, Wishlists & Feature Requests
=> Integration with third-party extensions
===> AlphaUserPoints
===> CommunityBuilder
===> K2 JComments
=> Translations
=> Bug-reports
-----------------------------
ProofReader component
-----------------------------
=> General discussion
=> Suggestions, Wishlists & Feature Requests
=> Translations
=> Bug-reports
-----------------------------
Other extensions
-----------------------------
=> Plugins
=> Modules
Loading...