• Resolved kjohn

    (@kjohn)


    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.

Viewing 1 replies (of 1 total)
  • Plugin Author Gerald Yeo

    (@geraldyeo)

    @kjohn:

    Thanks for reporting the bugs!

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

    Cheers!!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: URL Shortener] Bug with api username, api key, and service’ is closed to new replies.