README 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. bit.ly URL shortening requires the login name and API key for a bit.ly account.
  2. Register for an account or set up your API key here:
  3. http://bit.ly/a/your_api_key
  4. Administrators can configure a login and API key to use through the admin panels
  5. on the site; these credentials will then be used for all users.
  6. (In the future, options will be added for individual users to override the keys
  7. with their own login for URLs they post.)
  8. If the login and API key are left empty in the admin panel, then bit.ly will be
  9. disabled and hidden from the list of available URL shorteners unless a global
  10. default was provided in the plugin configuration.
  11. To enable bit.ly with no default credentials, simply slip into your config.php:
  12. addPlugin('BitlyUrl');
  13. To provide default credentials, add them as parameters:
  14. addPlugin('BitlyUrl', array(
  15. 'login' => 'myname',
  16. 'apiKey' => '############################'
  17. ));
  18. These settings will not be individually exposed to the admin panels, but the
  19. panel will indicate whether or not the global default settings are available;
  20. this makes it suitable as a global default for multi-site hosting, where admins
  21. on individual sites can change to use their own settings.
  22. If you're using a bit.ly pro account with a custom domain etc, it should all
  23. "just work" as long as you use the correct login name and API key for your
  24. account.