Viernes, 24 Octubre 2014 17:01
beggarly

SOLVED mainvote voting problem in joomla 2.5

Provides the ajax five-star rating feature to your articles

SOLVED mainvote voting problem in joomla 2.5

Postby thinIce » Wed Sep 19, 2012 4:52 pm

Hello,
i'm french so excuse my english mistakes.

I had problem with the {mainvote} tag in joomla 2.5. It did not show and could not take the rating into/from the db.

As we can view in this page :
http://joomla.vargas.co.cr/en/documentation/14-extra-vote/22-how-does-extra-vote-work
the extravote table contains the id of the article and the id of the {} tag.
The problem was :
the id value of the tag {mainvote} in the web page is 'x', so the type is a "char"
but the column extra_id in the table accept only the "int" type

My solution was modify the tag id (in ajax.php) to 0 when the value is 'x'.
To do this, simply add this in the /plugins/content/extravote/assets/ajax.php at line #89 :
Code: Select all
   
if ($xid == 'x')
   {
      $xid = 0;
   }


I am surprised that the solution is so simple. I do not know if it was an oversight from vargas, or if the problem is more complex. I did some positive tests, but I can not guarantee that it works without any further problems.
thinIce
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Wed Sep 19, 2012 4:34 pm

Re: SOLVED mainvote voting problem in joomla 2.5

Postby chus » Fri Sep 21, 2012 2:45 am

Hello,

Thanks for noticing, this was a bug that came up in a recent change we made to the code.

The issue was in fact a little more complex, but thanks to your observations we were able to detect and fix it.
The download package has been updated.

Best regards!
User avatar
chus
Administrator
Administrator
 
Posts: 455
Joined: Thu Sep 13, 2007 2:21 am
Location: Costa Rica

Re: SOLVED mainvote voting problem in joomla 2.5

Postby thinIce » Fri Sep 21, 2012 3:26 pm

Thank to you for all the work you have done on this great plug-in ;)
thinIce
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Wed Sep 19, 2012 4:34 pm


Return to Extra Vote



Who is online

Users browsing this forum: No registered users and 1 guest