www/adium.im 489:0bcd20f3429c: Initial attempt at changing the s...

commits at adium.im commits at adium.im
Mon Jan 2 19:05:22 UTC 2012


details:	http://hg.adium.im/www/adium.im/rev/0bcd20f3429c
revision:	489:0bcd20f3429c
branch:		adiumx.com
author:		Peter Hosey <hg at boredzo.org>
date:		Mon Jan 02 11:05:17 2012 -0800

Initial attempt at changing the screencasts page to use blip.tv instead of the late Revver.

diffs (82 lines):

diff -r abf9e8bd6ee2 -r 0bcd20f3429c screencasts/index.php
--- a/screencasts/index.php	Mon Jan 02 10:13:45 2012 -0800
+++ b/screencasts/index.php	Mon Jan 02 11:05:17 2012 -0800
@@ -6,41 +6,43 @@
 	
 	$episodes = array(
 		array(
-			'revver_id' => "159316",
+			'blip_id' => 'AYK86zgA',
 			'title' => "Installing Adium",
 			'permalink_name' => 'installing-adium',
 			'description' => "How to copy Adium from its disk image into your Applications folder."
 		),
 		array(
-			'revver_id' => "159319",
+			'blip_id' => 'AYK86zcA',
 			'title' => "First Run",
 			'permalink_name' => 'first-run',
 			'description' => "A demonstration of running Adium's setup assistant for the first time."
 		),
 		array(
-			'revver_id' => "159320",
+			'blip_id' => 'AYK86zUA',
 			'title' => "Adding a contact; first chat",
 			'permalink_name' => 'adding-contacts',
 			'description' => "Adding contacts to your list and initiating chats with them."
 		),
 		array(
-			'revver_id' => "159405",
+			'blip_id' => 'AYK86zYA',
 			'title' => "Chatting",
 			'permalink_name' => 'chatting',
 			'description' => "The basic features Adium provides when chatting with another person."
 		),
 		array(
-			'revver_id' => "219230",
+			'blip_id' => 'AYK860cA',
 			'title' => "Outgoing Text Colors",
 			'permalink_name' => 'outgoing-text-colors',
 			'description' => "How to set your outgoing text color, and then how to set it back to no color."
 		),
+		/* This one hasn't been re-uploaded to blip.tv yet. --PRH
 		array(
 			'revver_id' => "365206",
 			'title' => "Nudge/Buzz",
 			'permalink_name' => 'nudge-buzz',
 			'description' => "How to use Nudge/Buzz. You can also use the toolbar icon, or the Contact menu."
 		)
+		*/
 	);
 					
 	if (isset($_GET['video']))
@@ -122,7 +124,7 @@
 		
 			// Embed won't let us change the "src" on its own.
 			// So we just modify the div containing it.
-			document.getElementById("video").innerHTML = '<embed type="video/quicktime" src="http://media.revver.com/qt;sharer=0/' + episodeID + '.mov" pluginspage="http://www.apple.com/quicktime/download/" scale="aspect" cache="False" width="480" height="376" autoplay="True" />';
+			document.getElementById("video").innerHTML = '<iframe src="http://blip.tv/play/' . episodeID . '.html?p=1" width="480" height="376" frameborder="0" allowfullscreen></iframe><embed type="application/x-shockwave-flash" src="http://a.blip.tv/api.swf#' . episodeID . '" style="display:none"></embed>';
 
 			// Style current info.
  			document.getElementById("episode" + episodeNumber).style.background = "#FFE5E5";
@@ -171,9 +173,9 @@
 					foreach ($episodes as $episode) {
 						$which = !$which; // SMARTY
 						printf('<tr id="episode%d" class="episode episode%d">', $count, $which);
-						printf('<td class="episodeImgae"><a href="/screencasts/%s" onclick="changeEpisode(%d, %d, \'%s\'); return false;"><img src="previews/episode%d.png" alt="Preview of Episode %s" style="border: 0;" /></a></td>', $episode['permalink_name'], $count, $episode['revver_id'], $episode['title'], $count, $episode['title']);
+						printf('<td class="episodeImgae"><a href="/screencasts/%s" onclick="changeEpisode(%d, %d, \'%s\'); return false;"><img src="previews/episode%d.png" alt="Preview of Episode %s" style="border: 0;" /></a></td>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count, $episode['title']);
 						printf('<td>');
-						printf('<a href="/screencasts/%s" onclick="javascript:changeEpisode(%d, %d, \'%s\'); return false;">Episode %d: %s</a>', $episode['permalink_name'], $count, $episode['revver_id'], $episode['title'], $count++, $episode['title']);
+						printf('<a href="/screencasts/%s" onclick="javascript:changeEpisode(%d, %d, \'%s\'); return false;">Episode %d: %s</a>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count++, $episode['title']);
 						printf('<p>%s</p>', $episode['description']);
 						printf('</td>');
 						printf('</tr>');
@@ -184,7 +186,7 @@
 					</div>
 					<?php if ($video_ID !== null) { ?>
 					<script type="text/javascript" charset="utf-8">
-						changeEpisode(<?=$video_ID?>, <?=$episodes[$video_ID]['revver_id']?>, '<?=$episodes[$video_ID]['title']?>');
+						changeEpisode(<?=$video_ID?>, <?=$episodes[$video_ID]['blip_id']?>, '<?=$episodes[$video_ID]['title']?>');
 					</script>
 					<?php } ?>
 				</div>




More information about the commits mailing list