WordPress.org

Ready to get started?Download WordPress

Forums

Integrated URL shortener with click count (7 posts)

  1. waltervos
    Member
    Posted 4 years ago #

    Hi guys,

    I released a new plugin and am wondering what you think of it and how I could improve it. The plugin is called vlam-a-post. It's targeted at people who use URL shorteners to promote their blog posts. This plugin automatically creates a shortened URL from vl.am and fetches the click count in the post edit screen. It also provides an easy way to tweet the shortened URL.

    The plugin can be downloaded from here or from within WordPress itself (just search for vlam-a-post).

    Would you mind to try it out and tell me what you think? Thank you

  2. waltervos
    Member
    Posted 4 years ago #

    I just updated this plugin to include a dashboard widget that shows the latest vl.am URLs for your blog with their click count. Check it out!

  3. fredleblanc
    Member
    Posted 4 years ago #

    With your plugin, is it possible to access the generated short URL within the loop?

  4. skamid
    Member
    Posted 4 years ago #

    i think this is a great plugin and i might try it out. by the way, mybloglog has the click count feature too.

  5. waltervos
    Member
    Posted 4 years ago #

    With your plugin, is it possible to access the generated short URL within the loop?

    Hi Fredleblanc,

    You can use get_vlam_url($post_id) for that in your theme. Be sure to pass the post ID though because as of now this function does not work as a true template tag yet. So in the loop you could use:

    get_vlam_url(get_the_ID());

    To get the click count, use: get_vlam_count($post_id, $use_cache = true)

    So in the loop write: get_vlam_count(get_the_ID(), true) to use the cache (the dashboard widget does this), or get_vlam_count(get_the_ID(), false) to call the vl.am API on each pageview (the edit post screen widget does this).

    @skamid: Let me know what you think when you decide to try it out :)

  6. waltervos
    Member
    Posted 4 years ago #

    Just so you know, vl.am is down at the moment. The founders are moving it to another host as we speak. You may see some errors in the admin since the plugin doesn't handle all errors properly :#

    - Walter

  7. waltervos
    Member
    Posted 4 years ago #

    And vl.am is back up. Happy burning! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic