Standing on the shoulders of Giants

1,819 views

Published on

This is the talk i gave at Wordcamp India which explains how we used Wordpress to build RadioVeRVe(http://radioverve.com)

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,819
On SlideShare
0
From Embeds
0
Number of Embeds
24
Actions
Shares
0
Downloads
11
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Standing on the shoulders of Giants

  1. 1. Building a radio site on wordpress
  2. 2. Building a radio site on wordpress
  3. 3. Standing on the shoulders of Giants http://blogs.gnome.org/shres/2009/01/05/shoulder-of- giants/
  4. 4. In the beginning...
  5. 5. Textpattern
  6. 6. We moved because...
  7. 7. Extensibility
  8. 8. Well known CMS
  9. 9. Plugins From scratch butt to land on moon
  10. 10. That lovely community
  11. 11. After about 6 months of work...
  12. 12. Design 3
  13. 13. Learnt some important lessons
  14. 14. Deal with multiple databases
  15. 15. 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} } }
  16. 16. Ze plugins are Fscked in wp_head
  17. 17. Programmatic Pages
  18. 18. $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=quot;insert into {$wpdb->prefix}postmeta (post_id,meta_key,meta_value) VALUES('$postid','_wp_page_templat e','artistinfo.php')quot;; $wpdb->query($sql); }
  19. 19. Ninja foo
  20. 20. add_action('load-profile.php', 'rv_update_profile', 98);
  21. 21. Ninja Bar
  22. 22. $user = wp_authenticate($username, $password); if(!is_wp_error($user)){ wp_signon(array('user_login'=> $username, 'user_password'=> $password,'remember'=>'true')); echo quot;1quot;; }else
  23. 23. wp_enqueue
  24. 24. huge thanks to everyone who makes wp happen!
  25. 25. One can see further standing on shoulders of giants!
  26. 26. Thanks

×