×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: info from sliding panel not in alphabetical order

info from sliding panel not in alphabetical order 12 years 3 months ago #17364

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
The information displayed at the sliding panel is not in alphabetical order.

info from sliding panel not in alphabetical order 12 years 3 months ago #17375

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Go to components\com_hotspots\models\json.php
On line 70 you have
->order('RAND(1)');

you can change it to:
->order('name ASC');

Please let me know how this works for you. The reason why I was using rand there was to get the hotspots to be dispersed all over the map. This makes the query some 400ms slower. So if you think that it works well with "name ASC" I'll change it per default to it.

Regards,
Daniel

info from sliding panel not in alphabetical order 12 years 3 months ago #17384

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

If people use the sliding panel to find whatever they are looking for, the logical way to search will be to use the alphabet. Using the random way, they will have to go one by one until they find what they are looking for.

info from sliding panel not in alphabetical order 12 years 3 months ago #17387

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
the new code is not changing anything. I am still getting the results in random order. I even cleared the cache from the browser.

info from sliding panel not in alphabetical order 12 years 3 months ago #17397

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I just tested the code again and it is working correctly. When I go to a category the items in the menu are ordered alphabetically.

Well, I'm not sure about the logical way to sort the results - by looking at gmaps they don't sort them by title and you manage to find what you are looking for, because you actually interested more in the map, than on the list. (or at least I think that the user is more interested in what is on the map)

Daniel

info from sliding panel not in alphabetical order 12 years 3 months ago #17402

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I don't know if I have to do more than just clean the browser cache, but it's not working in Google Chrome & Internet Explorer, but working in Firefox & Safari.

info from sliding panel not in alphabetical order 12 years 2 months ago #17574

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
any fix for this?

info from sliding panel not in alphabetical order 12 years 2 months ago #17575

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I haven't looked at this anymore. The changes that I suggested are server side. That means that all browsers should show the same as the server returns the same information. I can't imagine that ff will do one thing and chrome something else.

Cheers,
Daniel

info from sliding panel not in alphabetical order 12 years 2 months ago #17577

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Yes, all browsers should show the same, but unfortunately it's not happening in that way.

What browser do you use to test hotspots?

I test my work in Internet Explorer, Firefox, Chrome, and Safari to be sure everything looks the same in any of them.

But, if being the developer, this issues are not bothering you, then I won't worry anymore. I will just wait until someone else point the issues, and you decide to spend some time to look into them.

info from sliding panel not in alphabetical order 12 years 2 months ago #17579

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
I should be back to full working capacity on Wednesday/Thursday and I'll check this again. The thing is - we are making a server change -> the data is ordered in a different way and served back to the client. The client doesn't order the data -> it just displays it in the order it is. That is why for such a change I don't go and test it on different browsers as it is a waste of time. If I was programming a new js function I would test it with IE9, chrome, firefox, opera and eventually safari...

Anyway - I'm betting with you for a 1 year subscription that what I told you above is working on all browser. We'll see who is right or wrong later this week :D

Cheers,
Daniel

info from sliding panel not in alphabetical order 12 years 2 months ago #17699

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok! So I tested this. And at first it looked like it is working as it should even in chrome. Then I went to your website and you are right - the results are not correctly ordered there.

Then I went back to my localhost and figured out that only categories that has hotspots starting with numbers were ordered correctly. Everything else was mixed.

So you are right! I've extended your subscription as promised. I'll try to find out what is wrong and will let you know.

Daniel

info from sliding panel not in alphabetical order 12 years 2 months ago #17700

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
OK. I know what is wrong, but I'll need some time to figure out what to do...
stackoverflow.com/questions/9843142/chan...n-firefox-and-chrome

Chrome sorts the object returned from the server and that's why it is not displayed in the expected order...

info from sliding panel not in alphabetical order 12 years 1 month ago #17881

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hey man,

I checked the reply from stackoverflow website, and it's not checked as the right answer :( Did you figure it out how to solve this problem? I am not pushing you, take your time man. And once again, thanks for all the great work you have done so far.

info from sliding panel not in alphabetical order 12 years 2 weeks ago #18284

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
anything new about this?

info from sliding panel not in alphabetical order 12 years 2 weeks ago #18295

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I've been busy with solving the problem of distributing language packs for our extensions(as it was really pressing). Now that this thing is ready:
compojoom.com/about/blog/entry/ctransife...anslations-with-ease
I'll go back to the issues with hotspots.
Daniel

info from sliding panel not in alphabetical order 12 years 2 weeks ago #18296

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Take your time man, the directory I had in mind doesn't has priority anymore.

info from sliding panel not in alphabetical order 12 years 1 week ago #18449

  • Michael Bud
  • Michael Bud's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hello, I am experiencing the same problem with the ordering.

I have one category being displayed and in the 'Layout' tab under 'Configuration' I have 'Hotspots order' set to 'Hotspots name', but on the front end the ordering is NOT displayed alphabetically.

Any idea how to fix this?

www.westportwestonchamber.com/events/gin...ead-houses#!/catid=1

info from sliding panel not in alphabetical order 12 years 1 week ago #18450

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
As far as I know, It's not fixed.

info from sliding panel not in alphabetical order 12 years 5 days ago #18456

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey guys!
could you please test this release here:
compojoom.com/component/ars/repository/dev-hotspots/gitd13497e
Now the hotspots should be sortable by name ASC in the menu (tested on ff and chrome). Please make sure that this update doesn't brake something else :)
Thank you for the help!
Daniel

info from sliding panel not in alphabetical order 12 years 5 days ago #18458

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
It looks like it's fixed.
  • Page:
  • 1
  • 2
Time to create page: 0.219 seconds