Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 61

iulianh
Apple Fan
Profile
Posts: 27
Reg: Feb 24, 2014
Suceava
270
04/02/14 03:12 AM (10 years ago)

Menu Image generated dynamic from database

Hello, I'm interested to make an app witch will display the events from a restaurant. When you click on Events I will want to go to a Menu Image witch will have a list with all the events from that restaurant, generated dynamic from database. When you click to one event will display the event details and an image. There is anyone that made something like this? If yes, what plugin did you use? I was thinking to make with Menu Image Advanced plugin, but I don't know if this support something like this. Any help will be much appreciated. Thank you
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/02/14 06:20 AM (10 years ago)
You would want to create an 'external childItem' file from a php driven mySql database. That's the 'typical' type of setup. You will need to write your php to query the database, and return the data in json format that matches your plugin. usually you'll want a menu style plugin; either Menu with Image, or another menu plugin. Most of them work well this way. You use them in your plugin as a 'dataURL'. the dataURL value would be the web address for your custom PHP script. "dataURL": "http://www.yourserver.com/customScript.php" the data is a bit old, but still relevant: http://www.buzztouch.com/docs/v1.5/childItems.php and I have some code you may want to snoop around to see how to format your json within PHP… https://dl.dropboxusercontent.com/u/115208762/loadScreenObject.zip Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/02/14 07:39 AM (10 years ago)
You can also use text files instead of PHP and MySQL. Make the text file be in the format stated at the bottom of this plugin page: https://www.buzztouch.com/plugins/plugin.php?pid=F018606BDA6027B90A3ED49
 
iulianh
Apple Fan
Profile
Posts: 27
Reg: Feb 24, 2014
Suceava
270
like
04/02/14 08:39 AM (10 years ago)
Thank you very much I will check it
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
04/02/14 11:00 AM (10 years ago)
Hi, Check The Blog Pro Plugin. This does all you want but you have to write your own php script that pulls the data from your database and format it in the correct JSON. Best Regards, Danny
 
iulianh
Apple Fan
Profile
Posts: 27
Reg: Feb 24, 2014
Suceava
270
like
04/02/14 11:07 AM (10 years ago)
Thanks Danny, I will check that plugin
 

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.