+ All Categories
Home > Technology > Standing on the shoulders of Giants

Standing on the shoulders of Giants

Date post: 20-Jan-2015
Category:
Upload: sshreyas
View: 1,430 times
Download: 2 times
Share this document with a friend
Description:
This is the talk i gave at Wordcamp India which explains how we used Wordpress to build RadioVeRVe(http://radioverve.com)
Popular Tags:
32
Building a radio site on wordpress
Transcript
Page 1: Standing on the shoulders of Giants

Building a radio site on wordpress

Page 2: Standing on the shoulders of Giants

Building a radio site on wordpress

Page 4: Standing on the shoulders of Giants
Page 5: Standing on the shoulders of Giants
Page 6: Standing on the shoulders of Giants

In the beginning...

Page 7: Standing on the shoulders of Giants
Page 8: Standing on the shoulders of Giants

Textpattern

Page 9: Standing on the shoulders of Giants

We moved because...

Page 10: Standing on the shoulders of Giants

Extensibility

Page 11: Standing on the shoulders of Giants

Well known CMS

Page 12: Standing on the shoulders of Giants

PluginsFrom scratch butt to land on moon

Page 13: Standing on the shoulders of Giants

That lovely community

Page 14: Standing on the shoulders of Giants

After about 6 months of work...

Page 15: Standing on the shoulders of Giants
Page 16: Standing on the shoulders of Giants
Page 17: Standing on the shoulders of Giants

Design 3

Page 18: Standing on the shoulders of Giants
Page 19: Standing on the shoulders of Giants

Learnt some important lessons

Page 20: Standing on the shoulders of Giants

Deal with multiple databases

Page 21: Standing on the shoulders of Giants

define('IC_DB_NAME', 'phqueue');define('IC_DB_USER', 'phqueue');define('IC_DB_PASSWORD', 'blahblah');define('IC_DB_HOST', 'localhost');

if( !function_exists('switch_to_icecast_db') ) { function switch_to_icecast_db() { $connect = mysql_connect(IC_DB_HOST, IC_DB_USER, IC_DB_PASSWORD); mysql_select_db(IC_DB_NAME} }}

Page 22: Standing on the shoulders of Giants

Ze plugins are Fscked in wp_head

Page 23: Standing on the shoulders of Giants

Programmatic Pages

Page 24: Standing on the shoulders of Giants

$my_post = array();$my_post['post_title'] = $artist_name;$my_post['post_type']='page';$my_post['post_author']=$user_id;$my_post['post_status'] = 'publish';$my_post['post_parent']='32';$postid=wp_insert_post( $my_post );

if($postid){ $sql="insert into {$wpdb->prefix}postmeta (post_id,meta_key,meta_value) VALUES('$postid','_wp_page_templat\e','artistinfo.php')"; $wpdb->query($sql);}

Page 25: Standing on the shoulders of Giants

Ninja foo

Page 26: Standing on the shoulders of Giants

add_action('load-profile.php', 'rv_update_profile', 98);

Page 27: Standing on the shoulders of Giants

Ninja Bar

Page 28: Standing on the shoulders of Giants

$user = wp_authenticate($username, $password); if(!is_wp_error($user)){ wp_signon(array('user_login'=>$username, 'user_password'=>$password,'remember'=>'true')); echo "1"; }else

Page 29: Standing on the shoulders of Giants

wp_enqueue

Page 30: Standing on the shoulders of Giants

huge thanks to everyone who makes

wp happen!

Page 31: Standing on the shoulders of Giants

One can see further standing on

shoulders of giants!

Page 32: Standing on the shoulders of Giants

Thanks


Recommended