Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 169

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
01/03/14 04:31 PM (10 years ago)

BT30 - Day 01 - Scringo Chat Rooms for Tabbed Apps

BT30 is my personal project to contribute to buzztouch: https://www.buzztouch.com/forum/thread.php?fid=2348BA49BA5737C92E3D9B5&tid=2348BA49BA5737C92E3D9B5 Day 01 - The ability to use the Scringo Chat Rooms plugin as a tab. Description: The current version of the plugin v1.01 does not support using it in a tab. The reason for this is it's using the nav bar to grab the last title of where the screen came from. If you use it as a tab, the title stays blank and you have a glaring white blank nav bar at the top of your chat. I want to thank @SmugWimp for chatting away with me on this and keeping my brain fresh with ideas to fix it. This is what I did in simple terms: Step 1: Add viewWillAppear to the .m file. Step 2: Add JSON data to the plugin using the new JSON edit function for all screens. Your .m file should look like this: http://pastebin.com/GgxPVraP And then once you do that, go into your plugin on the control panel, edit the json to look like this: { "itemId": "4263ED6AD8BA3C1BC4A4350", "itemType": "SCR_chatRooms", "itemNickname": "Chat Rooms", "scringoAppId": "YOURAPPID", "navBarTitleText": "YOUR TITLE BAR TEXT" } navBarTitleText adds the title json you need. I'm not sure if this is removed during a save when editing other things, so make sure to check for it. Ask any questions if you have them. Thanks! David
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
01/03/14 05:19 PM (10 years ago)
Thats perfect! I have my app using it as a tab, but like you said, have the blank white title bar. I'll give this method a try. Thanks!
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/03/14 07:00 PM (10 years ago)
fyi first link i get invalid request from my ipad
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/03/14 07:19 PM (10 years ago)
Fixed thanks Ed.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/04/14 02:34 PM (10 years ago)
Thank you David! LA
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
01/05/14 04:44 PM (10 years ago)
OK I do have to pipe in here and say THANK YOU. These are the kind of snippets that are invaluable as time goes by. Many thanks for creating it.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/05/14 04:52 PM (10 years ago)
No problem LA! Appreciate the post @Fingers Crossed, hope to bring more that will be useful to you.
 

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.