Posts Tagged ‘Gtalk’

WordPress as a Group Twitter

08.29.2008 by Denis - 0 Comment
Posted in WordPress

XMPPHP is the successor to Class.Jabber.PHP. I use the class to setup a Gtalk bot and integrat it with WordPress, which turns WordPress into a group twitter.

  1. Change your WordPress’s setting: Anyone can register and New User Default Role is Author. These settings can be tweaked in Setting => Genenal of WordPress admin panel.
  2. Download the Prologue WordPress theme and install it.
  3. Download the Gtalk bot code file: xmpphp.zip
  4. Modify the wp-xmpphp.php file. Change the $gtalk_account and $gtalk_password according to your Gtalk bot account and password.
  5. Upload them to WordPress root directory. Make sure the wp-xmpphp.php and wp-config.php are placed in the same directory.
  6. Visit http://your-blog/wp-xampphp.php in your browser once to start the bot
  7. Use the cron job to run the following job: wget http://your-blog/wp-xampphp.php every 10 minutes.

During the test, this php GTalk bot occupied a lot of server resource.