Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 96

LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
01/21/13 11:05 AM (13 years ago)

Plugin Config With JSON

In reading this older post, thank you @ATRAIN53, there was a wealth of information in there to comprehend. Do we change the "myCoolProperty" to the name of that property of current plugin? What would be an example of a value entered in the "Custom Property" field in the self-hosted control panel? One last question, this is the way I saw some of you create different fields to the control panel options, either self or BT control panel? https://www.buzztouch.com/forum/thread.php?tid=61A19811BADC9373C0AC264&command=isSearching&currentPage=1&topicTitle=json&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= LA
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
01/21/13 03:36 PM (13 years ago)
The custom property in David's example is the name of the box on the plugin screen in the control panel. Eg screen nickname, top navigation bar myCoolProperty is the json that is what is saved in the control panel. It is the used in the plugin like this myValue = [BT_strings getJsonPropertyValue:self.screenData.jsonVars:@"myCoolProperty":@""]; Does that make a bit more sense
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/21/13 03:40 PM (13 years ago)
@Kittsy, Yes it does but what would you use it for a plugin that your creating? LA
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
01/21/13 03:44 PM (13 years ago)
It's used to control what your plugin does. Change colors of buttons. Change title text. You would make several different things. What is your plugin, what can be changed dynamically
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/21/13 03:47 PM (13 years ago)
ok, so you edit it to fit your plugin needs? LA
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
01/21/13 03:51 PM (13 years ago)
Yes he index.php is basically what controls all of the variables in the code you want the end user (app developer) to be able to change
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/21/13 03:53 PM (13 years ago)
Ok thank you. LA
 

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.