Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 80

theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
07/29/12 08:04 AM (13 years ago)

Plugin that displays a AlertView at the beginning of the app?

Is there a plugin that will display and open a url when the user hits "OK" at the beginning of the app or a way to do similar functionality?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/29/12 09:46 AM (13 years ago)
I think we could incorporate that with code pretty easy? Have a popup box appear, and upon the tap on OK send to a new URL in safari? Try this: - (void)someMethod { UIAlertView *alrt = [[UIAlertView alloc] initWithTitle:@"Open Webpage" message:@"" delegate:self cancelButtonTitle:nil otherButtonTitles:@"Open", nil]; [alrt show]; } - (void)alertView: (UIAlertView *)alertView clickedButtonAtIndex: (NSInteger)buttonIndex { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.myPage.com"]]; } place that in the file your using as your home screen. Cheers, David buzztouchmods.com
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
07/29/12 02:41 PM (13 years ago)
But is there a way to control what the alert says via buzztouch while the app is running?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/29/12 02:50 PM (13 years ago)
Ahh you want to change the alert as time goes on via the control panel huh? Nothing like that available... just yet. Building a plugin for it would be fun, but I have no time to be honest :( Maybe someone else can help? I know for certain, if your homepage is HTML, you can easily have a popup and edit that popup as needed. Cheers, David buzztouchmods.com
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
07/29/12 02:56 PM (13 years ago)
Lol I'm actually a pretty good ios programmer, but I was really wondering if there was anything else out like it. However just doing it through a JavaScript alert is genius and can be changed. Thanks for the help!
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
07/29/12 03:15 PM (13 years ago)
Sorry duplicate...
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/29/12 03:19 PM (13 years ago)
Yup you got it, glad I was able to help. Cheers mate! David buzztouchmods.com
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
07/29/12 03:23 PM (13 years ago)
As it turns out, a plugin looks to e the best route to go, looks like I'll just go make a plugin. Do you have any good tutorials for plugin creation other than this doc? http://www.buzztouch.com/files/howtos/bt-plugins-selfhosted.pdf Any recommends or tips? Thanks!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 09:14 PM (13 years ago)
Apparently a new plugin tool is coming soon. http://www.buzztouch.com/forum/thread.php?tid=1B0F3265D62335A9FD478AA Fred
 

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.