Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Problem making the module work
(1 viewing) (1) Guest
Go to bottomPage: 12345678
TOPIC: Problem making the module work
#59248
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Thanks
I entered the new code
and does not even rank

Last Edit: 2016/12/19 16:15 By mkcup.
The administrator has disabled public write access.
 
#59250
Re:Problem making the module work 7 Years, 11 Months ago Karma: 760
We can't reproduce this problem on our test server. The rank is shown fine:



Regards,
ARI Soft
The administrator has disabled public write access.
 
#59252
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Thanks for the reply
I do not know where the problem is
I had to move (SELECT @curRank = 0) r
Code:

SELECT tc1,tc4,min,tc2,avatar,username,@curRank := @curRank + 1 AS Rank
FROM
(SELECT a.tc1, a.tc4, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 1 AS Rank
FROM
sbhgl_chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
sbhgl_jsn_users b ON a.user_id=b.id INNER JOIN
sbhgl_users c ON a.user_id=c.id, (SELECT @curRank := 0) r
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY min ASC) T


and now displays the rank of the picture

Last Edit: 2016/12/19 16:59 By mkcup.
The administrator has disabled public write access.
 
#59253
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
I figured it out
@curRank := @curRank + 1 AS Rank must be +0
Code:

SELECT tc1,tc4,min,tc2,avatar,username,@curRank := @curRank + 1 AS Rank
FROM
(SELECT a.tc1, a.tc4, min(a.tc5) AS min, a.tc2, b.avatar, c.username, @curRank := @curRank + 0 AS Rank
FROM
sbhgl_chronoengine_chronoforms_datatable_treningove_casy a INNER JOIN
sbhgl_jsn_users b ON a.user_id=b.id INNER JOIN
sbhgl_users c ON a.user_id=c.id, (SELECT @curRank := 0) r
WHERE a.tc2 LIKE 'Motokáry Modrice'
GROUP BY a.user_id
ORDER BY min ASC) T

now appears correctly thanks for great support
The administrator has disabled public write access.
 
#59272
Re:Problem making the module work 7 Years, 11 Months ago Karma: 0
Hello
There is another problem tc1 and tc2 does not display the correct data

Last Edit: 2016/12/22 09:33 By mkcup.
The administrator has disabled public write access.
 
#59273
Re:Problem making the module work 7 Years, 11 Months ago Karma: 760
Could you explain in more details what is incorrect?

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345678