Sorting of Answers

Find out what does your audience think

Sorting of Answers

New postby playtony » Wed Apr 10, 2013 1:54 pm

Is it possible to sort answers list by default in order I am entering them, and not alphabetical?
playtony
 
Posts: 15
Joined: Wed Mar 20, 2013 2:59 pm

Re: Sorting of Answers

New postby Simon » Wed Apr 10, 2013 2:51 pm

Yes, it is possible. You can use custom ordering for answers. By default it sort them by ordering value from high to low values (Descending).
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby playtony » Wed Apr 10, 2013 3:08 pm

Simon, I was thinking on offered answers, not on results.

Could you guide me how to do it?
playtony
 
Posts: 15
Joined: Wed Mar 20, 2013 2:59 pm

Re: Sorting of Answers

New postby Simon » Wed Apr 10, 2013 4:37 pm

Simon, I was thinking on offered answers, not on results.


Sorry, I do not understand what do you need!

You can change the order of answers in static state, ie, when user do not click anything. When it click Vote, or View button, it automatically sorts answers by count of votes.
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby playtony » Wed Apr 10, 2013 4:41 pm

Imagine my possible answers are:

-one
-two
-three
-four.

This is exact order how I want my visitors to see voting options.

What they really see is:

- four
- one
- three
- two

because it is sorting alphabetical.
playtony
 
Posts: 15
Joined: Wed Mar 20, 2013 2:59 pm

Re: Sorting of Answers

New postby Simon » Wed Apr 10, 2013 6:39 pm

Ok,

If you use joomla 2.5, then set the following order values
-one order=4
-two order=3
-three order=2
-four order=1

In Joomla 3.0 just sort answers by ordering DESC and make ordring using drag and drop function.

Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby reisol53 » Tue Apr 23, 2013 3:30 pm

I was looking for the same option too, but found we have to manually update these values with phpMyAdmin. It really would be very helpful if we could reorder the answers in admin instead. The db-table allready has this field for order :)

Reidar
reisol53
 
Posts: 5
Joined: Mon Apr 22, 2013 1:40 pm

Re: Sorting of Answers

New postby Simon » Tue Apr 23, 2013 6:18 pm

Hi,

I found there is a small bug in Sexy Polling for 2.5 versions of Joomla. It does not allow to use ordering filed. I sent you corrected file, please update the file:
Code: Select all
administrator/components/com_sexypolling/views/sexyanswers/tmpl/default.php

Sorry for inconvenience. I will fix this bug on next version.

Best Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby reisol53 » Tue Apr 23, 2013 7:32 pm

Many thanks, works fine ;)
reisol53
 
Posts: 5
Joined: Mon Apr 22, 2013 1:40 pm

Re: Sorting of Answers

New postby Simon » Tue Apr 23, 2013 7:54 pm

I'm happy to help you ;)
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby dotfact » Wed May 01, 2013 11:37 pm

No chance to have another order the the default alphabetical!
I need the patch too please!!
dotfact
 
Posts: 4
Joined: Tue Apr 30, 2013 5:37 pm

Re: Sorting of Answers

New postby Simon » Wed May 01, 2013 11:59 pm

Sure I will send it.

I sent you email, please update the file:
Code: Select all
administrator/components/com_sexypolling/views/sexyanswers/tmpl/default.php


Best regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby Jerome » Fri May 03, 2013 6:38 pm

Hello,

I am interested also to have the patch. Is it possible for you to send it to me ?

Thank you in advance.
Jerome
 
Posts: 4
Joined: Mon Apr 29, 2013 9:06 pm

Re: Sorting of Answers

New postby Simon » Fri May 03, 2013 8:01 pm

Hi,

Please update the file:
Code: Select all
administrator/components/com_sexypolling/views/sexyanswers/tmpl/default.php

Sorry for inconvenience. I will fix this bug on next version.

If you like Sexy Polling and have a free time, PLEASE write a review in JED. It is very important for me. Thanks.

Best Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby gregpich » Mon May 06, 2013 1:56 am

Hello Simon,
I'm also interested by the patch, may you send it to me please? I've just installed pro version, great ! I'm checking this forum to find few answers. Many thanks
gregpich
 
Posts: 6
Joined: Mon May 06, 2013 1:49 am

Re: Sorting of Answers

New postby Jerome » Mon May 06, 2013 11:50 am

Hi Simon,

thank you for the patch that I uploaded. However, I don't see what I have to do now and I am still unable to rank the answers with the order I want.

Could you further help me?

Thnak you in advance.
Jerome
 
Posts: 4
Joined: Mon Apr 29, 2013 9:06 pm

Re: Sorting of Answers

New postby Simon » Mon May 06, 2013 9:38 pm

Hi,

You will see the ordering field in
Code: Select all
Components->Sexy Polling->Answers

Sort Answers by ordering field(click on it), and input your custom ordering. By default it sorts by descending.
In Joomla! 3.0.x just drug and drop the answers.

Best regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby Jerome » Mon May 06, 2013 11:11 pm

Hello,

sorry but it does not work. I've uploaded your file in replacement of the old one.

Then, in the backend, I go to components/sexypolling/answers. But I am unable to change the rank (cells cannot be modified)

Image

I am using the french version of joomla 2.5.11. Have I missed something?
Jerome
 
Posts: 4
Joined: Mon Apr 29, 2013 9:06 pm

Re: Sorting of Answers

New postby Simon » Tue May 07, 2013 12:18 am

You must sort the answers by "Order" field, to enable them. Just click on word "Order".
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Sorting of Answers

New postby Jerome » Tue May 07, 2013 11:24 am

Great! It works perfectly.

Many thanks for your fast and efficient support. I will post a (very good) comment in the JED :)
Jerome
 
Posts: 4
Joined: Mon Apr 29, 2013 9:06 pm

Next

Return to Sexy Polling

Who is online

Users browsing this forum: No registered users and 2 guests