[ANN] HTML 5 Campaign Monitor

Find out what's going on with LiveCode (the company), product releases, announcements, and events.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
netdzynr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 62
Joined: Sat Apr 08, 2006 6:04 am
Contact:

[ANN] HTML 5 Campaign Monitor

Post by netdzynr » Wed Jul 02, 2014 10:51 pm

Image

I saw a request from Heather about wanting a notifier for the HTML 5 campaign so I put together a little stack for this. Execute the following in your message box:

go url "http://dl.dropboxusercontent.com/u/7192 ... r.livecode"

The stack scrapes data from the campaign page and is configured to automatically check status every 5 minutes, with a chime/refresh animation if a change is detected. There's a manual refresh at the bottom of the window. Note that the campaign page is slow to load here in California (several seconds) so a busy indicator is displayed while the stack is fetching data.

Make your pledge and listen for the chime :-)

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: [ANN] HTML 5 Campaign Monitor

Post by catalinanesia » Thu Jul 03, 2014 12:44 am

Uau! Thanks for this, cool example, also very util.
Is there some one who can release this to Android store so I can have it on my phone?
Uau! again.

MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: [ANN] HTML 5 Campaign Monitor

Post by MarcVanCauwenberghe » Thu Jul 03, 2014 1:20 pm

Very nice utility Scott. Thanks

Marc

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: [ANN] HTML 5 Campaign Monitor

Post by MaxV » Mon Jul 07, 2014 1:15 pm

I just made a web widget that you can incorporate on every site, the code is:

Code: Select all

<iframe height=230 src="http://www.maxvessi.net/livecode/html5_en.php" >
Go <a href=http://livecode.com/livecode-to-html5 >here</a> and help the cause!</iframe>
You should get something like this:

Image

The PHP used is:

Code: Select all

<table><tr><td>
<a target="_blank" href=http://livecode.com/livecode-to-html5 >
<img  width=100 src=http://livecode.com/wp-content/themes/livecode2013/livecode_html5/HTML5_Logo_256_Logo_only.png >
</a>
</td><td>
Found rising to add HTML5 export in Livecode<br>
<?php
#read page
$url = "http://livecode.com/livecode-to-html5";
$str = file_get_contents($url);
#extarct value
preg_match('#<h1 id=\"funded_value\">.*</h1>#',$str,$matches);
$pledged = $matches[0] ;
$pledged = substr($pledged,22,-5);
echo $pledged ;
#format value
$pledged = str_replace(",","",$pledged);
$pledged = str_replace("$","",$pledged);
?> pledged of $395,000 goal<br>
<progress value="<?php echo $pledged ; ?>"    max="395000"></progress>
<br> <?php $giorni = 31 - date("j"); echo $giorni; ?> days to go!
<br><a target="_blank" href=http://livecode.com/livecode-to-html5 >Contribute</a>
</td>
</table>
You arel free to reuse e modify the code! :D
Last edited by MaxV on Mon Jul 28, 2014 10:43 am, edited 3 times in total.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: [ANN] HTML 5 Campaign Monitor

Post by MaxV » Thu Jul 17, 2014 9:20 am

There is also another campaign monitor on this page: http://fmpromigrator.com/
but I don't know the code and the blue progress bar is not correct.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Announcements”