[h2]Working app.js[/h2] [code]// Start adding iPad code here from screencast Ti.include(\'getLighterColor.js\'); Ti.include(\'addEmptyRows.js\'); Ti.include(\'colorCycle.js\'); function notConnectedAlert(){ var alertDialog = Titanium.UI.createAlertDialog({ title: \'Not connected to the internet\', message: \'Sorry, but Screencasts could not connect to the internet, and could not access data.\', buttonNames: [\'Continue\'] }); alertDialog.show(); } if(!Ti.Network.online){ notConnectedAlert(); } var tabGroupWindow = Ti.UI.createWindow(); var detailWindow = [...]
[code] <a href=\"<?php bloginfo(\'url\'); ?>/category/<? echo $post->post_author;?>\"><?php echo get_avatar( get_the_author_meta(\'ID\'), \'65\' ); ?></a>[/code] Tweet This Post
[code]/* increment */ add_action(\'wp_head\', \'process_postviews\'); function process_postviews() { global $user_ID, $post; if(!wp_is_post_revision($post)) { if(is_single()) { $id = intval($post->ID); $post_views = get_post_custom($id); $post_views = intval($post_views[\'post-views\'][0]); //increment it if(!update_post_meta($id, \'post-views\', ($post_views+1))) { //not succeded means there is no field so create it add_post_meta($id, \'post-views\', 1, true); } } } } function just_comment_count(){ $one_text = \'One comment\'; $more_text [...]
[code]<?php global $post, $current_user; $data = unserialize(get_post_meta($post->ID, \'_list\', true)); if( count($data) != 0 ) { if ( !in_array( $current_user->ID, $data ) ) { $data[] = $current_user->ID; } $data = array_unique($data); // remove duplicates sort( $data ); // sort array $data = serialize($data); update_post_meta($post->ID, \'_list\', $data); } else { $data = array(); $data[0] = $current_user->ID; $data [...]
Quick Signup And Connect
Enter your WordPress.com blog URL
http://.wordpress.com
Proceed