Discussion Forums  >  Self Hosted Control Panels

Replies: 35    Views: 141

Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
02/08/13 07:46 AM (12 years ago)

Layout screens

On 2.1.7 we had a control panel which reflected a menu "Layout / Tabs" 2.1.8 has a menu which is shortened to simply "Layout" and when clicking we select tabbed or non tabbed design. When selecting either one of these options there is a "select" link which opens a window that should display the screens available for the home screen. I have no visible screens available to select. I have already added the plugins in the screens section but they are not visible from the "Layout" options when clicking the link. Consequently I can not set a home screen. Any Thoughts?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/08/13 07:56 AM (12 years ago)
Just checked my installation and have the same issue. For a temporary work around you should be able to just type in the nickname of the screen you want to use for your home screen. That seems to still work fine.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
02/08/13 08:00 AM (12 years ago)
ok trying that also setting up google api in config
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/08/13 08:21 AM (12 years ago)
Yup one of you should email david so he can throw it on the list? Just confirmed same thing. Cheers, David https://buzztouchmods.com
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/08/13 08:26 AM (12 years ago)
Yep. Sending him a few little things I've run across.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/08/13 09:09 AM (12 years ago)
Also, screens cannot be deleted. Also, when I click on the JSON data option in the main app menu, is shows two options, Show design mode data, and Live Mode Data. Clicking either of these two links yields nothing. How do I read the configuration data then?
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/08/13 09:12 AM (12 years ago)
I have emailed David the address of this thread.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/08/13 09:19 AM (12 years ago)
@Dusko - Confirmed screens can't be deleted on my install too.
 
Korkut Ata
Aspiring developer
Profile
Posts: 108
Reg: Aug 09, 2011
Luxembourg
11,580
like
02/08/13 09:46 AM (12 years ago)
When you have list menu on the screens it appears a check mark box at the far right, when checked you can delete multiple screens with the drop-down menu at the bottom. This is what I have. Hope this helps.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/08/13 10:17 AM (12 years ago)
When I check one mark box, and use the delete drop-down menu at the bottom, it goes through the motions but in the end the marked screen is still there, not deleted.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
02/08/13 11:01 AM (12 years ago)
As long as we're on the topic.... This is a glitch that I always experienced with 2.1.6, hoping to see go away: Even if I set a screen as home and never changed it- There were occasions when I'd add a new screen to my app and it would magically become the 'home' screen. Didn;t happen all the time and seemed to be triggered by deleting a screen - not always the screen that was set as home. That glitch always makes me check that Layout screen when an app would act up.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/08/13 12:25 PM (12 years ago)
Erased, duplicate post
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/08/13 01:42 PM (12 years ago)
@atrain this glitch happens a lot, usually, the SECOND screen created after you set your home screen in the layout - will trigger it. Cheers, David https://buzztouchmods.com
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
02/08/13 02:12 PM (12 years ago)
try activating the screen before downloading the source
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
02/08/13 04:44 PM (12 years ago)
Anybody else missing all the options (i.e. Screen background image, color, etc) on the Menu Button screen? Just noticed there are no options below adding screens.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 10:11 PM (12 years ago)
Hi gang... Already found a few of these, and a few you didn't find. Ha. Expect some updated files in a few hours. @andydahl: Could it be that you're still using some old plugins? I ask because some plugins (most actually) used to use /include files for some of the advanced settings. They no longer do and the old, unused, no longer applicable "includes" are not in this download. Way old stuff. Each plugin is "stand alone" now - meaning all the HTML for each advanced property is in the /index.php file entirely. @Dusko: None of this "screen picking" and "Deleting" has anything to do with your config (live or design) data not showing. Not sure what you have doing on there. That is related to all sorts of other stuff. Do you see any mysterious messages or errors on the config data screen?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/08/13 10:19 PM (12 years ago)
@David Super! Thanks for listing the files and changes, I already did a ton of personal changes in all kinds of files and knowing the new changes ones saves me a ton of time. I've been testing my server non-stop and so far everything else looks good... loving this so much! David https://buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/08/13 10:32 PM (12 years ago)
FYI. The Screen Picker issue is a :05 second fix. 1) Find bt_screenPicker.php (in the bt_app folder). 2) Line 91 - 93 should be this: //screen type... if(strtoupper($screenType) == "SPLASHSCREEN"){ $whereClause .= " AND I.itemTypeLabel LIKE '%Splash%' "; } You'll see the different (and the trouble) when you open the file. This screen is "looking" for the wrong thing! LOL. You're replacing: if($screenType != ""){ with: if(strtoupper($screenType) == "SPLASHSCREEN"){ See the difference?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/08/13 10:39 PM (12 years ago)
Thanks, David. Simple fix. The file name is bt_pickerScreen.php though.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/08/13 11:02 PM (12 years ago)
Yup. Fixed that.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/13 12:09 AM (12 years ago)
screen-picker, picker-screen, I was coding using a mirror! LOL.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
02/09/13 12:10 AM (12 years ago)
Ha ha. Get some sleep one of these days.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/13 12:28 AM (12 years ago)
Package updated. Nothing changed / found about the stream-push connection thing yet. Three other files fixed the other reported bugs. /bt_app/bt_pickerScreen.php (the trouble using the select screen option) /bt_app/bt_screens.php (the trouble deleting screens) /bt_app/bt_theme.php (syntax error showing a .php error) Still on the push-stream trail. I'm thinking we do a little "check" to see if the server running the control panel can make a connection using the standard stream connection methods like... a) You send a push from your panel. b) A quickie little "test connection" is made from your machine to ours to prove the machine is capable of establishing a basic connection (like .03 seconds probabaly)... c) If it can, it continues to try to connect to the Apple service to send the messages. d) If it can't it yells at you with a friendly message about the .php install and it's inability to use this feature? OR... maybe an option in the control panel to send message to US, that we then send to Apple (Because we know we can). This is us acting as a Proxy between the two. If a low cost host won't allow stream-connections, we could send the data to US from the low cost host using another protocol, such as HTTP. Then, we move it along to Apple. 1) You send a message using control panel. 2) your server does a simple cURL http POST with this data to us. Super fast. 3) We process this POST in our Push Notification Queue like all the other coming from buzztouch.com control panels anyway. I'm sure this would help solve the trouble for lots of folks but would also remove a little bit of independence so many of our visitors appreciate. Hmm...tinkering on this one.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 07:26 AM (12 years ago)
Maybe a optional check-box to "push via buzztouch.com's servers" if the first option doesn't work? That way they can be independent if possible, but if not, still have that option. Will start updating those files right away, thanks a ton for the work! David https://buzztouchmods.com
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/09/13 01:41 PM (12 years ago)
>>>> @Dusko: None of this "screen picking" and "Deleting" has anything to do with your config (live or design) data not showing. Not sure what you have doing on there. That is related to all sorts of other stuff. Do you see any mysterious messages or errors on the config data screen? I do not see any messages or errors on the config data screen. Actually, I do not see the config screen at all. When I click JSON data option from the main app menu, it shows two links, Show Design Mode Data | Live Mode Data. Clicking on either of these produces nothing. I also cannot delete a screen from an app, using the Actions menu. If this is not clear, I can make a video showing you what I see in my self hosted panel. I can also send you a dump of my files, if you need to delve into things further. I have downloaded and reinstalled the latest version of 2.1.8, hopefully with all of the corrections that were mentioned in this thread, incorporated so far. Do I need to download and reinstall all of the existing plugins? Is there a document which explicitely states what is new in version 2.1.8?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/09/13 01:49 PM (12 years ago)
Redownload the install package. Unzip, copy to and overwrite the following files on your server install; /bt_v15/bt_app/bt_pickerScreen.php /bt_v15/bt_app/bt_screens.php /bt_v15/bt_app/bt_theme.php
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/09/13 01:52 PM (12 years ago)
I apologise for the confusion, I have just edited the entry above to say that I have downloaded the latest version and installed it.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/09/13 01:58 PM (12 years ago)
Within the last 13 hours? It has changed.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/09/13 02:05 PM (12 years ago)
It seems that when I reinstalled the latest version over the old one on the server, that it did not write over the existing files at all. Now I have implemented the advice above, and have manually FTP-ed those three files and now it is possible to delete screens within an app. The Theme option seems to work now. Previously it showed the following error: Oops, a PHP error was trapped.File: /home/bestappb/public_html/bt/bt_v15/bt_app/bt_theme.php Line: 231 Message: Undefined variable: viewStyle Now the only thing that is not working is the JSON data option. It still does not show the configuration data, only the two links for design and live mode.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/09/13 02:11 PM (12 years ago)
double post
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
02/09/13 02:22 PM (12 years ago)
MGoBlue was having that same problem I think, not sure if he figured it out.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 02:29 PM (12 years ago)
@Dusko I had the same problem with the config data, I tried it on firefox instead of chrome and it showed up, later, I refreshed the page on chrome and it showed up finally after the refresh. It's just buggy with browsers it seems. Cheers, David https://buzztouchmods.com
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/09/13 02:42 PM (12 years ago)
Many thanks for this suggestion. Now I have tried browsers, and the JSON data is not showing on FireFox 18.0.2. It is showing on Chrome Version 24.0.1312.57 m. Finally, Internet Explorer first choked on the data, and then it showed the config screen in a regular manner. Two browsers are showing the config files and one isn't. Who would have thought? Note that FireFox was showing the configuration screen in version 2.1.7 wihout any problems.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
02/09/13 02:44 PM (12 years ago)
No problem! Yup it's probably the method that was used to hide/display based on the click of links, and the way the browser handles that code. David will get that fixed in two seconds for sure, seems to work here for me now with latest chrome ;) David https://buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/13 04:17 PM (12 years ago)
Browser wars: 2.1.8 and 2.1.7 show the data using the same "logic" The data is different now because there are two choices (live / design) but the AJAX call to fetch the data didn't change. This just means I don't have an explanation as to why it wouldn't show on one browser but would on another. Added to the small-gotchas-that-take-a-bit-to-work-out list.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
02/10/13 11:52 AM (12 years ago)
Interestingly enough, you can see the config file with FireFox if you use Core option from the main menu, and then Configuration Data URL Open the current config data URL
 

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.