Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Jcomments Latest Module and user votes
Pages: [1]   Go Down
  Print  
Author Topic: Jcomments Latest Module and user votes  (Read 2445 times)
0 Members and 2 Guests are viewing this topic.
biedron
Newbie
*

Karma: 1
Offline Offline

Posts: 2


Email
« on: May 17, 2010, 01:48:53 »

Hi,
I have a problem with JComments Latest Module, when I set Module Mode on Show popular comments it tends to show the most negative voted comments, and I want it to show these who are most positive voted ones. What should I do to set it the way I want?
Logged
dkambz
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #1 on: July 28, 2010, 04:06:13 »

Found the problem, because the isgood and ispoor columns are unsigned and of type SmallInt, if the calculation isgood - ispoor resulted in negative value the mysql spits out long number and not actual negative number.

Change the database and remove unsigned and this will solve the issue.

Best regards
Dimitri
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #2 on: July 28, 2010, 12:44:55 »

Thank you, Dimitri! I'll fix it with next release.

Quick fix:

Open phpMyAdmin, select your Joomla's database and execute next SQL-query:

Code: (sql)
ALTER TABLE `jos_jcomments` CHANGE `isgood` `isgood` SMALLINT(5) NOT NULL DEFAULT '0';
ALTER TABLE `jos_jcomments` CHANGE `ispoor` `ispoor` SMALLINT(5) NOT NULL DEFAULT '0';
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: Jcomments Latest Module and user votes
 
Jump to: