WordPress.org

Ready to get started?Download WordPress

Forums

Pretty Link Lite
[resolved] Unable to make app-based links (like "itms") (6 posts)

  1. Daniel J. Lewis
    Member
    Posted 1 year ago #

    iTunes (and many other apps) offer the ability to generate a link that will directly launch the application on any PC with that app installed. On iTunes, you would simply replace the "http" with "itms" for any links from the store.

    But the problem is that Pretty Link won't accept a URL that starts with "itms://." How can I hack this to make it work? Can the developer please consider updating the plugin to accept nontraditional URLs?

    By the way, I'm a Pretty Link Pro (developer) user and I've recommended Pretty Link many times to my podcast audience.

    http://wordpress.org/extend/plugins/pretty-link/

  2. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    /classes/models/PrliLink.php and delete all of this:

    if( !empty($values['url']) and
              !preg_match('/^http.?:\/\/.*\..*$/', $values['url'] ) and
              !preg_match('!^(http|https)://(localhost|127\.0\.0\.1)(:\d+)?(/[\w- ./?%&=]*)?!', $values['url'] ) )
            $errors[] = __("Link URL must be a correctly formatted url", 'pretty-link');
  3. Daniel J. Lewis
    Member
    Posted 1 year ago #

    Can you incorporate that into future Pretty Link Lite and Pro editions? I can make these changes, but most Pretty Link users can't.

  4. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    I'll put it in Blair's issue tracker, but I can't promise he'll make this possible in future versions.

  5. nmbrown
    Member
    Posted 4 months ago #

    I would also like to be able to do this, but I don't have Daniel's experience.

    From the information in this thread, I can't find the file to edit.

    Where do I find the /classes/models/PrliLink.php ?

  6. cartpauj
    Member
    Plugin Author

    Posted 4 months ago #

    It's in your website's /wp-content/plugins/pretty-link/classes/models/ directory.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic