Your SlideShare is downloading. ×
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Standing on the shoulders of Giants
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Standing on the shoulders of Giants

1,482

Published on

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

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,482
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Building a radio site on wordpress
  • 2. Building a radio site on wordpress
  • 3. Standing on the shoulders of Giants http://blogs.gnome.org/shres/2009/01/05/shoulder-of- giants/
  • 4. In the beginning...
  • 5. Textpattern
  • 6. We moved because...
  • 7. Extensibility
  • 8. Well known CMS
  • 9. Plugins From scratch butt to land on moon
  • 10. That lovely community
  • 11. After about 6 months of work...
  • 12. Design 3
  • 13. Learnt some important lessons
  • 14. Deal with multiple databases
  • 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. Ze plugins are Fscked in wp_head
  • 17. Programmatic Pages
  • 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. Ninja foo
  • 20. add_action('load-profile.php', 'rv_update_profile', 98);
  • 21. Ninja Bar
  • 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. wp_enqueue
  • 24. huge thanks to everyone who makes wp happen!
  • 25. One can see further standing on shoulders of giants!
  • 26. Thanks

×