Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 57    Views: 98

miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
01/28/15 12:20 AM (9 years ago)

Smugs message location always 0,0

Smugs message location always shows that my location is 0,0. I have enabled GPS in Core. What am I doing wrong?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/28/15 01:33 AM (9 years ago)
The first thing you're doing wrong is not telling us whether it's in iOS or in Android. If you're going to ask for help, help us help you. Give us details. :) Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
01/28/15 01:58 AM (9 years ago)
I have iOS app, but later will need Android too. I have enabled GPS in core, my position is 0,0. This is at start and later, when I refresh screen. If I try to send posiotion, my position in message is: http://maps.google.com/maps?hl=en&f=d&q=0.00000,0.0000000
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/28/15 03:57 AM (9 years ago)
Does your device have location/GPS enabled? When you start the app, did you allow for location updates? Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
01/28/15 05:09 AM (9 years ago)
In Core I tried with Start Tracking Location both: Yes and No. Then I checked that on my iphone 5S Privacy-Location Services is set to On. Then I tried on iPad the same. Both devices react the same - location 0,0. But when I start app, it doesn't ask me to allow location update. This might not be good. Under Privacy-Location Services on iPhone is Share My Location, and if I check it on (ALLOW LOCATION ACCESS)"Always" it stays checked, but after I start app, this "Always" check is not on.
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
01/28/15 10:02 AM (9 years ago)
At the same time Google Map app works fine, also one of my apps that uses Location map plugin. Seems that my GPS works fine. What else should I check?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/28/15 11:32 AM (9 years ago)
SmugWimp is always on-top of it, rock on! mrDavid
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
01/28/15 11:51 AM (9 years ago)
I used so far also Smugs Android HTML and works fine. Idea of message location is great, I think. In my case looks like my setting of iPhone is not like it should be: I tried on some other iPhone 4s, where it works, but image on map shows middle of an ocean, not real location, despite coordinates are well. I will try with Android too.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/28/15 03:04 PM (9 years ago)
Miku, I snooped through the code, and can't find anything that would cause this behavior 'other' than if it recieved no coordinates at all. Try removing your test app from your device, cleaning your project, and trying it one more time. David: Not everyone understands irony, and thus might not think you're joking. Cheers! -- Smug Oh, and when the map shows up 'in the middle of the ocean', it is displaying the coordinates '0,0'. That location is just south of the African nation of Ghana, about 600km into the Atlantic Ocean.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/28/15 03:11 PM (9 years ago)
Glad you told us Smug, it didn't come across as ironic. I hope it was.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/28/15 03:59 PM (9 years ago)
The internet has never been a good place to display sarcasm or ironic-ness, Smug is like a first-brother to me, most folks know that, some don't, need to be more careful ;-) mrDavid
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/29/15 09:51 AM (9 years ago)
Smug is our mentor, the guiding light that has a twinkle in his eye. That's as serious as I can get with nary a spot of sarcasm. Thank you Smug!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
01/30/15 09:01 AM (9 years ago)
So true! Smug is the master of the location map plugins! Thanks for helping us make our apps better, Smug!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/06/15 04:58 AM (9 years ago)
David will be fixing this in newer packages. If you need to fix your current package without redownloading and rebuilding your project you can follow these instructions: https://dl.dropboxusercontent.com/u/115208762/iOS8LocFix.pdf Cheers! -- Smug
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/24/15 12:54 PM (9 years ago)
I had a similar issue, needed to manually go into location services and turn it on for my app. I also have a new issue related to this plugin (iOS), probably related to the larger screen of the iPhone 6. When there is no internet the arrow is much too high within the compass.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/24/15 03:18 PM (9 years ago)
Mutzy, That's probably bad code on my part. I was looking at it the other day, and found the same result on my iPad Mini... I'll release an update sometime, but didn't feel like it was an 'emergency'. But I am aware; I'll get to it. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/25/15 01:01 PM (9 years ago)
I tried with this Smug's instructions https://dl.dropboxusercontent.com/u/115208762/iOS8LocFix.pdf , but location is still 0,0. Any news?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/25/15 03:00 PM (9 years ago)
1) Make sure you have the app core setting to allow GPS 2) Make sure your app has "authorization" to use GPS 3) Make sure you're outside where a GPS Signal can get to your phone That's really about it. What do your logs say? Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/26/15 12:02 AM (9 years ago)
Thanks Smug, it works on my iOS. I also tried on Android and found this problem: location coordinates are right, map shows center and says: "Coordinates not found". I noticed that numeric format of coordinates are "12,123456, 98,987654". If I change them manually on my device to format with decimal point, like "12.123456, 98.987654", then location is found. Where can I change format to decimal point?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
03/26/15 01:29 AM (9 years ago)
For what it's worth, I am using this plugin for the first time and, after following his instructions, it works perfectly.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/26/15 01:47 AM (9 years ago)
miku, I'm sorry; when you ask 'where can you change the decimal', are you asking about the device, or in the code? What I'm curious about, is how would your system normally separate the values? in the US Operating system, the values are separated by commas. If your value 'contains' a comma, then it wouldn't make sense to separate it with one. So I'm kind of curious, because another numerical format never entered my mind. Sorry. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/26/15 04:42 AM (9 years ago)
On my iPhone I use english language and everything works on other languages too. On Android situation is different: if value like longitude is in non-english european system (european languages like german, french, italian), single value is written: 45,123456789. In US is longitude like that: 45.123456789 (with dot, not comma) and works. In the case of comma, reading coordinates doesn't work, which should be real problem for non-english languages. Would you check?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/26/15 05:52 AM (9 years ago)
Try this and see how it works. If it's effective, I'll update the plugin. Either way, yours 'should' be fixed. With Eclipse or Android Studio or whatever running, open the 'sw_smugmsgloc.java' file. Around line 171 or so you'll see an if statement, immediately followed by a BT Debugger statement. It'll look a bit like this: //--------- BT_debugger.showIt(fragmentName + ":smugUpdate - GPS OK"); myLat = Double.parseDouble(smuglat); //--------- So what we need you to do, is paste these two lines 'between' those two lines, so it looks like this: //========== BT_debugger.showIt(fragmentName + ":smugUpdate - GPS OK"); smuglat = smuglat.replace(',', '.'); smuglng = smuglng.replace(',', '.'); myLat = Double.parseDouble(smuglat); //========== What that does, is basically seek out a comma, and replace it with a decimal, in the string. Give it a whirl and tell me how it works out for you. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/26/15 06:21 AM (9 years ago)
It works, no errors, but problem stays the same, I still see comma in values.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/26/15 07:52 AM (9 years ago)
Send me a screen shot. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/27/15 12:46 AM (9 years ago)
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/31/15 01:17 AM (9 years ago)
Hi Smug, did you check this screens?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/31/15 04:07 PM (9 years ago)
I did. I would have thought the android fixes would cure that; they change the comma to a decimal. If this is the behavior 'after' the fixes, it may be a locale thing... Are the screen shots the same device, or two different devices? Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/31/15 10:26 PM (9 years ago)
Screen shots are from same device, but this doesn't work on any device. You can check it yourself if you set language on your device to any other than english. I tried it on many languages and many devices, result is the same on all of them. Maybe this problem is only in Europe and not in USA.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/31/15 10:38 PM (9 years ago)
I'll do a cleanup and formal update for the plugin and have you test it once more. Give me a day or so; I need to clear my desk first. Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/31/15 10:49 PM (9 years ago)
I will test it and let you know my results. Just question: I found your Location Menu very fine, but it is still kind of heavy for me. I read in forum that you are planning to make some kind of detailed manual for using this plugin (I saw your demo video)?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
03/31/15 11:20 PM (9 years ago)
I understand. Truth be told, the manual is mostly for creating and using 'childItems' in conjunction with 'loadScreenObject'. I have most of it done, but it's not completely 'finished'. You're welcome to peruse what I have; it's located here: https://dl.dropboxusercontent.com/u/115208762/lso_tut/loadScreenObjectTut.pdf Let me know if the light comes on, or if you have any specific questions... Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 12:29 AM (9 years ago)
Thanks, lights come on, I came to approx: 3/4: JSON, Child items, also CSV,cjson.. I stopped here (from your sample): "childItems": [ { "itemId": "83EABCB56DE7AEBCC3E63AC", "itemType": "BT_mapLocation", "latitude": "13.5", "longitude": "144.8", "title": "My Location", "subTitle": "My Location Subtitle", "pinColor": "red", "transitionType": "fade", "loadScreenWithItemId": "showDirections" }, { "itemId": "A5906684B33124AC6C6AB02", "itemType": "BT_mapLocation", "latitude": "13.52", "longitude": "144.82", "title": "My other location", "subTitle": "my other location subtitle", "pinColor": "green", "loadScreenWithItemId": "0987654321D" } Which latitude and longitude is this (My Location) and what is My Other Location, where came in? Isn't that user locations?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 04:34 AM (9 years ago)
@miku: My Location and My Other Location are just the titles of the entries, as displayed on the screen. Not corresponding to the user location, but corresponding to the place you geolocalize with the latitude and longitude values.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 04:44 AM (9 years ago)
@smug: I've read your tutorial, real good job! Not sure if this is valid for Android, but in iOS the "itemId" value can be the same for all entries (no need for "SW001", "SW002", etc., you can use e.g. "SW" for all entries). If you need a sample of "cascading" loadScreenObject JSON to showcase the power of this dynamic approach, just tell me! Cheers Jack
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 04:49 AM (9 years ago)
I understand this: { "childItems": [ { "itemId": 1, "itemType": "Sw_loc_detail", "itemNickname": "The Knight Residence", "iconName": "a.png", "titleText": "The Knight Residence", "descriptionText": "Lauriston StreetEdinburgh", "latitude": 55.945459, "longitude": -3.201603, "categoryText": "accomadation", "subcategoryText": "Serviced Apartments", BUT after, when you use BT_screen_map: "loadScreenObject": { "itemId": "02186", "itemType": "BT_screen_map", "itemNickname": "Serviced Apartments", "navBarTitleText": "The Knight Residence", "singleLocationDefaultZoom": "15", "defaultMapType": "hybrid", "childItems": [ I don't know where and why to get itemID 02186 itemType BT_screen_map. And after that also other two BT_mapLocation items. Are this 3 items plugins which are added in control panel?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 04:59 AM (9 years ago)
No, with this approach you don't need map screens you have to create in control panel, you just "describe" the screen in the JSON code.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 05:12 AM (9 years ago)
Global syntax should be this one: { "childItems": [ { "itemId": 1, "itemType": "Sw_loc_detail", "itemNickname": "The Knight Residence", "iconName": "a.png", "titleText": "The Knight Residence", "descriptionText": "Lauriston Street Edinburgh", "latitude": "55.945459", "longitude": "-3.201603", "categoryText": "Accommodation", "subcategoryText": "Serviced Apartments", "loadScreenObject": { "itemId": "02186", "itemType": "BT_screen_map", "itemNickname": "Serviced Apartments", "navBarTitleText": "The Knight Residence", "singleLocationDefaultZoom": "15", "defaultMapType": "hybrid", "childItems": [ { "itemId": "5B515A04D4DB23E5A182A69", "itemType": "BT_locationItem", "title": "The Knight Residence", "subTitle": "Lauriston Street Edinburgh", "latitude": "55.945459", "longitude": "-3.201603", "calloutTapChoice": "showDirections", "pinColor": "red" } ] } }, { "itemId": 2, "itemType": "Sw_loc_detail", "itemNickname": "The King Mansion", "iconName": "a.png", "titleText": "The King Mansion", "descriptionText": "Lauriston Street Edinburgh", "latitude": "55.945459", "longitude": "-3.201603", "categoryText": "Accommodation", "subcategoryText": "Serviced Apartments", "loadScreenObject": { "itemId": "02186", "itemType": "BT_screen_map", "itemNickname": "Serviced Apartments", "navBarTitleText": "The King Mansion", "singleLocationDefaultZoom": "15", "defaultMapType": "hybrid", "childItems": [ { "itemId": "5B515A04D4DB23E5A182A69", "itemType": "BT_locationItem", "title": "The King Mansion", "subTitle": "Lauriston Street Edinburgh", "latitude": "55.945459", "longitude": "-3.201603", "calloutTapChoice": "showDirections", "pinColor": "green" } ] } } ] }
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 05:14 AM (9 years ago)
I don't understand if I have item "SW_loc_detail" which gives location a name, icon, latitude, etc. Why do I need then BT_screen_map and BT_mapLocation? Why are then in BT_mapLocation coordinates again, like in item "SW_loc_detail"?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 05:25 AM (9 years ago)
It gives all this just for the location menu. When you tap on an entry you create a new screen on-the-fly, and this new screen needs to know all the values too! Try the syntax I showed above, it should work!
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 05:25 AM (9 years ago)
OK, where can I find this id's "itemId": "02186", "itemId": "5B515A04D4DB23E5A182A69", Do I have to write it in myself or read them from somewhere?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 05:38 AM (9 years ago)
Type what you wish! E.g.: "itemId": "Item001" (instead of 02186) "itemId": "Spot001" (instead of 5B515A04D4DB23E5A182A69)
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 05:43 AM (9 years ago)
Thanks, I will try this all.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/01/15 05:46 AM (9 years ago)
You're welcome!
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/01/15 09:03 AM (9 years ago)
For test I used upper syntax script (only leave icon blank), check it on JSONLint, then put it in dropbox dataURL. I got error "There was a problem parsing some JSON data. Please make sure that it is well formed."
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/02/15 07:22 AM (9 years ago)
It's not the JSON code you put in dataURL, but the reference to a text file containing this code! Paste this code in a simple text file, name it as you wish (e.g. "spots.txt"), and then: - either you put the file on your web server and in dataURL you type "http://www.yourwebserver..." etc. (full URL of your file) - or you put the file in the BT_docs folder, drag it into xcode to reference it, and type just "spots.txt" in dataURL And it should work!
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/02/15 10:26 PM (9 years ago)
Is is exactly what I did. I put "dataurl.txt" file in dropbox, and then set screen data to : https://www.dropbox.com/s/8mqo50tcsijyp42/dataurl.txt?dl=0 (link to file). But I JSON got error.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/02/15 10:33 PM (9 years ago)
Use this as your dataURL for a test: http://www.guamtix.com/json.txt I think there is a problem with your dropbox url... the URL shouldn't have any 'suffix' to it (dl=0)... Dropbox 'can' be used, although it's not recommended. But if you use it, use your 'public' URL, and not a permissioned page. Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/02/15 10:35 PM (9 years ago)
If it still gives you problems, put a value in for 'iconName', even if you don't use an icon... Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/02/15 10:43 PM (9 years ago)
I just did, you can check on link, but nothing better. Scrrenshot: https://www.dropbox.com/s/d9s3bfst7k1kypy/json_error.jpg?dl=0
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/03/15 02:00 AM (9 years ago)
I'm sure it's a dropbox issue, try with the link Smug gave you! I've just tested it, it works perfectly!
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/03/15 02:45 AM (9 years ago)
Yes, now I can see location menus and it works. I needed to install Location Map plugin too. A big relief, thanks.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/03/15 08:26 AM (9 years ago)
You're welcome! Happy to know you could solve it!
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/10/15 02:31 AM (9 years ago)
I checked WB Addons and found in Smug's video that MySQL fields (id, guid, appGuid...) are set to match location maps, but not Smugs Location menu. Or am I wrong? Should I add any fields, Which fields must I add? Do you have sample?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/10/15 06:31 AM (9 years ago)
Here is an example of 'One' locationMenu Item, which holds loadScreenObject Information for a BT_screenMap with 2 locations as childItems. You'll probably want to put it through jsonlint to reformat it for easier readability. { "childItems": [ { "itemId": 1, "itemType": "Sw_loc_detail", "itemNickname": "Antonio B. Won Pat International Airport", "iconName": "icn_airplane.png", "titleText": "Antonio B. Won Pat International Airport", "descriptionText": "Route 10A", "latitude": 13.49241, "longitude": 144.80502, "categoryText": "Airport", "subcategoryText": "Airport", "loadScreenObject": { "itemId": "02186", "itemType": "BT_screen_map", "itemNickname": "Airport", "navBarTitleText": "Antonio B Won Pat Airport", "singleLocationDefaultZoom": "15", "defaultMapType": "hybrid", "childItems": [ { "itemId": "83EABCB56DE7AEBCC3E63AC", "itemType": "BT_mapLocation", "latitude": "13.5", "longitude": "144.8", "title": "My Location", "subTitle": "My Location Subtitle", "pinColor": "red", "transitionType": "fade", "calloutTapChoice": "showDirections" }, { "itemId": "A5906684B33124AC6C6AB02", "itemType": "BT_mapLocation", "latitude": "13.52", "longitude": "144.82", "title": "My other location", "subTitle": "my other location subtitle", "pinColor": "green", "calloutTapChoice": "loadAnotherScreen" "loadScreenWithItemId": "0987654321D" } ] } } ] } Please keep in mind that loadScreenObject information will change, depending which plugin you're 'building' into a loadScreenObject. And you're right; the WB_addOns don't match my plugin directly; Susan built that before I did my plugin, and She showed it to me in Vegas, *after* I built my plugin. But I wrote a couple of scripts that are included in the package, that are sort of geared towards the locationMenu Plugin... but you have to keep in mind, that the script may still need to be modified depending on the loadScreenObject following. You'll see in the example I built the loadScreenObject as a BT_screen_map. If you decide you'd rather use a different plugin for the menu tap, then you'll need to build that loadScreenObject yourself, and incorporate into the script. You'll need to understand PHP, but as far as PHP goes, we're not doing brain surgery. In short, all it is doing is pulling all the records from a database, and formatting the information in strings to match the plugin requirements. Use the existing example as a template for your own. Plugins aren't *that* different, from a 'configuration' standpoint; it's all string values for properties. Hope I don't get to long winded, but wanted to be sure to explain my thinking, or perhaps lack of. If you still have questions, don't hesitate to ask. Haven't updated the Msg Loc, but haven't forgotten either. Need more testing. Cheers! -- Smug If you're using WB_addons, and you're using 'location_menu.php' from the database, here are the fields you *must* populate for all things to work well. itemNickname = locationName iconName = linkImage (optional, I think...) descriptionText = address1 latitude = latitude longitude = longitude categoryText = category subCategoryText = type (this is an existing but rarely used WB_addOn field, so I use it to hold my subcategory information) loadScreenObject = (your next plugin information)
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/11/15 01:37 AM (9 years ago)
Thanks Smug, I think that the easiest way for me would be to see your .csv file for Location Menu. Can you send it with only one record? Then I would translate it to JSON with your translator.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/11/15 03:00 AM (9 years ago)
The above is a single record, formatted to utilize the location menu to display information about the location, and when a user taps, the loadScreenObject is a location map that displays information about the location in the callout. What part are you having a problem with? Importing records into the wb_addon database, or retrieving records from the database? Cheers! -- Smug
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
04/11/15 03:17 AM (9 years ago)
I realized that wb_addon is fine if I already had my database. But I will create one from scratch, so Excell file would be fine. I just need to prepare it proper, that's why sample would be needed.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.