URL Shortener
[resolved] Bug with api username, api key, and service (2 posts)

  1. kjohn
    Posted 5 years ago #

    I was having some trouble getting your plugin to recognize my bitly api username and key until I saw that there are a few typos in the od_get_shortlink.php preventing me from using my custom shortener.

    On lines 9-13:

    if (!$key && in_array($service, $this->authkey)){
    		//$key = $options['apiuser_'.$service]; //wrong var
    		$key = $options['apikey_'.$service];
        if (!$user && in_array($service, $this->authuser)){
    		//$user = $options['apikey_'.$services]; //wrong var & mispelled
    		$user = $options['apiuser_'.$service];

    Once I made the above modifications, it works great! Thanks for your tremendously useful plugin and hopefully, this will help others.

  2. Gerald
    Plugin Author

    Posted 5 years ago #


    Thanks for reporting the bugs!

    Your changes have been committed to the repository and released under plugin version 3.1.2.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • URL Shortener
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic