Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 16    Views: 81

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
02/20/14 06:20 AM (11 years ago)

HTML PRO - control panel item gone missing ?

For the first time, I thought I'd use the advanced feature that HTML Pro has, which allows me to call a plugin screen from inside an html document in my app. I've noticed is that the options in my control panel don't look the same as the how-to document. My control panel screengrab is here: https://dl.dropboxusercontent.com/u/44302941/example.png "Links to Buzztouch screens" appears to have disappeared. I think there is also a extra item called "HTML Pro Plugin" that I think wasn't there before, but being the first time I've used this specific feature, I'm not too sure. The big issue is that there is no "Add" button, so I can't create the row items to save the screen ID. I tried to add the childitems manually by editing the json but that wasn't allowed. I'm a bit stuck... The behaviour is the same on my self hosted or Buzztouch hosted. Could somebody who uses this feature let me know if this is behaving correctly or I am missing something please?
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/20/14 07:19 AM (11 years ago)
Hey AlanMac, Chris updated HTML Pro not too long ago, which made things a bit easier. Instead of having to add the child items individually, HTML Pro now automatically detects the screen ID's in your HTML document. So basically, he replaced the section where you add the screen ID child items, with a screen ID lookup function... so you can just lookup the screen ID for whatever screen you are trying to link to, and paste it right into your href link in your html doc. Pretty cool stuff!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/20/14 08:11 AM (11 years ago)
Thanks for that explanation @Angry Ninja. So there is no json that gets added any more, which is why I couldn't add it! I thought tried what you suggested right at the beginning, but not very successfully it seems!. I pasted the item id as the href in my document, but when the link was called, all I saw was 'not found'.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/20/14 11:38 AM (11 years ago)
So I'm using the syntax in web page href="0D0C0C5C522CC6E3D7A623B" The value for the href is the itemid for the plugin. The web page is in the project build. When I click on the link I get "Error Loading Page". Any suggestions please?
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/20/14 11:59 AM (11 years ago)
Hmmm...that's really strange. It sounds like you are doing everything correctly, and syntax is right. I know after the update, mine wouldn't load either, and I had to redownload my project to get it to work, instead of just dragging the updated html pro folder from plugins to an older copy of my project folder. I also had to recreate that html pro screen after I downloaded the new project. Not sure if that applies in your case, but thought I'd mention it. Maybe Chris1 will see this thread and chime in. Does the debug console say thats it's trying to load the correct item ID when it pops the not found message?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/20/14 12:12 PM (11 years ago)
Quick update - I reproduced the example from Chris1's howto - i.e. using the custom html plugin to call the plugin, which worked OK. I'll keep looking.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/20/14 12:15 PM (11 years ago)
Cool, at least we know the plugin is working. If still not working in your project, create a second html pro screen as use as a test, and see if that works. If so, you might just need to recreate the original screen.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/20/14 12:22 PM (11 years ago)
It seems that if the document link in the html pro plugin screen is a URL, it works, if the document link is in the project, it doesn't.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/20/14 12:27 PM (11 years ago)
That's odd. Mine is calling local html documents from my bt_docs folder. Using 4 different html pro screens in my app, all setup the same way (4 different local html files).
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/20/14 01:23 PM (11 years ago)
Well, the local file is a complex bit of html, with javascript, jquery etc. I'll try a simple local file tomorrow as a test and see if that changes anything. I appreciate your help, I'll post back when I know more.
 
Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
like
02/20/14 08:36 PM (11 years ago)
I am using HTML pro a lot. I liked the previous version. there you could easily understand what link to put where. similarly you could create you link directly instate of first creating your screen then coming back to pro and look up your screen to find the ID and paste it in your html.doc to build link. In last version you were creating your screens, naming them and then finally when you were finished with creation you could easily link them all at in one screen instate of shuttling between screens.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
02/20/14 09:01 PM (11 years ago)
I guess it depends on your workflow. I prefer the newer version, as I already have my screens made before I go to the html pro screen
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/21/14 04:29 AM (11 years ago)
Ok, I've worked it out. I copied the working link into a simple html page and then into my complex one. I was hand coding my html and I followed the documentation, which explicitly states the link should be <a href="OurCodeHere">Click Here</a> That might have worked in an earlier plugin, I don't know, but I do know that it really needs to be <a href="http://OurCodeHere">Click Here</a> Do that and it works! Document re-write needed!
 
AuthorAl
Lost but trying
Profile
Posts: 23
Reg: Dec 31, 2013
Glasgow
3,780
like
02/25/14 05:52 AM (11 years ago)
Hi there - bit stuck. I have created an html pro screen (and got confused like AlanMac that I got control panel item missing) Anyway I have custom html screen that I want to reference. When I used <a href="OurCodeHere">Click Here</a> and compiled via Xcode I received the message 'Data For this screen has not been downloaded. Please check your internet connection' Same went for <a href="http://OurCodeHere">Click Here</a> I don't have html docs in the Xcode doc folder, just a Custom Html/Text file in my buzz touch control panel ... screens / actions section that I want to refer to. Sure I'm doing something wrong that is easily tweaked... Al
 
AuthorAl
Lost but trying
Profile
Posts: 23
Reg: Dec 31, 2013
Glasgow
3,780
like
02/25/14 12:58 PM (11 years ago)
Wasted day, methinks. Brain too slow. Things were going okay using basic Home Menu and Custom Html/text screens before I tried the Html Pro Plugin. The problem I have had is that I've tried to follow the pdf which eventually I realised has not as yet been updated ... and because I don't have a clear idea of the workflow I've screwed up. My ideal set up is to have an initial home 'Menu with images' screen (incorporating rows called 'Writing', 'Process' etc). I click on the 'Writing' row and am taken to another 'Menu with Images' screen where there are subtopics such as 'Writing For Fun'. Clicking on 'Writing For Fun' will take me to (X) a custom html/text screen with relevant 'fun' text. If I wanted to use Html Pro I could add a ('fun exercises' click me) inside the (X) custom html/text screen that leads elsewhere, i.e. to (Y) - a second custom html/ text screen with 'fun writing exercises'. Seems sensible - I think - but getting late and I'm braindead. I understand that a Html Pro screen is really just a conduit to an html doc... anyone got any advice? Al
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/25/14 02:57 PM (11 years ago)
Well, I got a basic example working then today my more advanced html working, both android, IOS, everything is just as it should be. I just started all over again and it works now. No idea what I was doing wrong!
 
AuthorAl
Lost but trying
Profile
Posts: 23
Reg: Dec 31, 2013
Glasgow
3,780
like
02/26/14 11:52 AM (11 years ago)
Good to read it's working for you, Alan. I started again too and got things working - just needed a good night's sleep. Al
 

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.