Skip to Content

Introduction

A couple of days ago Oliver Kohl mentioned to me about the presence of a site called IMified.com which tends to make things simpler by making them accessible through Instant Messengers. What took my fancy though was the api which would let us create custom Widgets which can be accessed over the messenger…. Read about How to build IMified Widgets here… I created a simple PHP script to find out if it would actually work out and I was surprised at the outcome….

Disclaimer

For the lack of a better server I used PHPnet.us’ free PHP hosting so extremely sorry for the ad banners. My Knowledge of PHP is extremely rudimentary so the PHP scripts may look very childish… at least they get the job done for me 🙂

The Widget

The Widget does an extremely simple thing, it remembers the last time you pinged it… You need to have an IMified account to add the widget to your list.

  • On the Widgets page in your IMified account click on add by url and fill in a name for the widget and the URL for the Widget which would be http://abesh.phpnet.us/index.php. image
  • It will redirect to a page on the widget’s site which will ask you for your name : image
  • After you submit your name successfully, it gets added and shows up on your list of widgets : image
  • On invoking the widget you get the following outcome with the timestamp changing everytime you query it : image

The Code

functions.inc


insertuser.php

Welcome to Test Widget...

What should I call you :

index.php


Last words…

Yeah, I know… Production Order Confirmation is not the scenario that I am showcasing here because my limited knowledge of PHP as well as the limitations of PHPnet.us will not let me allow to create such a scenario. But I am pretty sure that our PHP Magician Blag (Alvaro Tejada) can definitely endorse whether such a scenario is possible… This, as Oliver put it after testing this widget, is only the beginning… I’m sure we will see a Production Order Confirmation scenario in the near future…

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Oliver Kohl
    Hey Abesh,

    nice work. I’m already curious what you are going to  do with it next. Maybe check some of the standard BC RFCs, there will probably some interesting functionalities. Log information, number of users/WP, something like that.

    Looks like it’s all about the command line, same as Twitter;)

    Best regards,
      ok

    (0) 
  2. Oliver Kohl
    Hey Abesh,

    nice work. I’m already curious what you are going to  do with it next. Maybe check some of the standard BC RFCs, there will probably some interesting functionalities. Log information, number of users/WP, something like that.

    Looks like it’s all about the command line, same as Twitter;)

    Best regards,
      ok

    (0) 
  3. Nigel James
    You really should have used a real language you know! You know, a web language, one that can scale, one that is easy to use even if you don’t it that well.
    Good choice using PHP then!

    😉 regards,
    Nigel

    (0) 
  4. Oliver Kohl
    Hey Abesh,

    nice work. I’m already curious what you are going to  do with it next. Maybe check some of the standard BC RFCs, there will probably some interesting functionalities. Log information, number of users/WP, something like that.

    Looks like it’s all about the command line, same as Twitter;)

    Best regards,
      ok

    (0) 
  5. Oliver Kohl
    Hey Abesh,

    nice work. I’m already curious what you are going to  do with it next. Maybe check some of the standard BC RFCs, there will probably some interesting functionalities. Log information, number of users/WP, something like that.

    Looks like it’s all about the command line, same as Twitter;)

    (0) 
  6. Oliver Kohl
    Hey Abesh,

    nice work. I’m already curious what you are going to  do with it next. Maybe check some of the standard BC RFCs, there will probably some interesting functionalities. Log information, number of users/WP, something like that.

    Looks like it’s all about the command line, same as Twitter;)

    (0) 
  7. Alvaro Tejada Galindo
    Woaw Abesh, thanks for that -:P Your gonna make me cry -:D
    Of course I’m to help out! Just tell what you need -;)
    It seems that Oliver really likes your blog -:O I wish someone make so many comments on my blogs LOL

    Greetings,

    Blag.

    (0) 

Leave a Reply