Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 56

Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
04/07/16 04:19 PM (8 years ago)

Menu Button Image Screen Data URL

I am having some issues with the screen data url function for the Menu Button Image plugin. I have created the data and linked the screen data to the TXT file on my server. When I compile the app the screen header and background load but there none of the data or buttons show up. The buttons have been added to the project and will show up if I manually create a button link to the screen. I also do not have any issues with the data url linking to the Simple Menu plugin. Here is the data I have in my TXT file. {"childItems":[ {"itemId":"SECSCHEA01", "itemType":"BT_menuItem", "loadScreenWithItemId":"SECSCHE01", "titleText":"Button1", "imageNameSmallDevice":"d1.png", "transitionType":"flip", "imageNameLargeDevice":"d1.png"}, {"itemId":"SECSCHEA14", "itemType":"BT_menuItem", "loadScreenWithItemId":"SECSCHE14", "titleText":"Button2", "imageNameSmallDevice":"d1.png", "transitionType":"flip", "imageNameLargeDevice":"d1.png"}]} Any suggestions on how I might be able to solve my issue. Self Hosting 3.0 Thanks in advance!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/07/16 06:26 PM (8 years ago)
What you might want to try, is adding the menu items in the control panel, and 'grab' that section from the BT_config.txt file, and compare it to your external childItem file, and make sure you're not missing any pieces. you can delete the menuItems later when it's fixed and they're not needed any more. Cheers! -- Smug
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/08/16 12:16 AM (8 years ago)
I think that there is a bug in there that affects iOS but not Android, which I believe I found and fixed in menu buttons plus (shameless plug over). If I recall, the bug is affected by whether you have an existing couple of entries in the control panel before you start using remote json (which it pulls in by default) and also I think refreshing on the menu page with pull down makes the json buttons magically appear.
 
Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
like
04/08/16 08:25 AM (8 years ago)
Thanks for the suggestions. @AlanMac - I ended up taking you up on on your shameless plug. The plugin is awesome and it does 99% of what I was looking to do. The only issue I had was the text for some of the buttons was too long since it does not automatically split to two lines if the text is too long. Nothing that I could not fix by reducing the font a little. I like the ability to use a second header for landscape. Great plugin.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/08/16 11:22 AM (8 years ago)
Great, I'm happy that you're happy. If you would like to leave a review, that would be great too. Any probs, please shout. Cheers, Alan
 

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.