SOLVED mainvote voting problem in joomla 2.5
3 posts
• Page 1 of 1
SOLVED mainvote voting problem in joomla 2.5
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 :
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.
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

- Posts: 2
- Joined: Wed Sep 19, 2012 4:34 pm
Re: SOLVED mainvote voting problem in joomla 2.5
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!
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!
-

chus - Administrator

- Posts: 448
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: SOLVED mainvote voting problem in joomla 2.5
Thank to you for all the work you have done on this great plug-in 
- thinIce
- Fresh Boarder

- Posts: 2
- Joined: Wed Sep 19, 2012 4:34 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests