Jump to content


- - - - -

Automatc MSN contact adding


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 Mark

Mark

    Needs Life

  • IPS Staff
  • 7,722 posts

Posted 29 March 2007 - 07:18 AM

This only works in IE (obviously) but it's a neat little piece of javascript I came accross today and added to my own forum, and it works well, thought you might want to add it in original.gif

In skin bit personal_portal_main find this:
CODE
<{PRO_MSN}> <span id='pp-entry-contact-entry-msn'>{$member['_msn_name']}</span>


Change it to this:
CODE
<{PRO_MSN}> <span id='pp-entry-contact-entry-msn'><a href = "msnim:add?contact={$member['_msn_name']}">{$member['_msn_name']}</a></span>


Now when you click on an MSN address in someone elses profile, if you're using a recent version of IE and MSN Messenger, it will automatically add them to your contacts list.

Mark Wade
Developer

Posted Image Posted Image


#2 .Ryan

.Ryan

    Needs Serious Help

  • +Clients
  • 1,597 posts

Posted 29 March 2007 - 12:14 PM

Oh very nice thanks Professor P. I don't know if it will make it in to the standard board, because not everyone like me uses IE, but still I'll give it an add. Very nice.

#3 Mark

Mark

    Needs Life

  • IPS Staff
  • 7,722 posts

Posted 29 March 2007 - 03:09 PM

Even if you don't use IE, it doesn't hurt, the link just won't do anything.
If you wanted you could use something like this instead:

CODE
<!--[if IE]>
<{PRO_MSN}> <span id='pp-entry-contact-entry-msn'><a href = "msnim:add?contact={$member['_msn_name']}">{$member['_msn_name']}</a></span>
<![endif]--><!--[if !IE]>
<{PRO_MSN}> <span id='pp-entry-contact-entry-msn'>{$member['_msn_name']}</span>
<![endif]-->


That would make it only clickable to IE users, and display it how it currently is for firefox/opera/etc users.

I thought it was a nifty feature - I saw it on an ad for a MSN robot and thought "that would work quite well if put on IPB" - I thought it would be a massive code, but when I saw how simple it was, I thought I'd post original.gif

Mark Wade
Developer

Posted Image Posted Image


#4 Digi

Digi

    Needs Life

  • +Clients
  • 7,474 posts

Posted 29 March 2007 - 03:25 PM

They did have something similar to this back in like 1.3 (or 1.2). Basically for all the im clients it opened a new pop-up that allowed you to start a conversation with the person, check if they were only, and add them to your list. No idea why this was ever removed, but I'd like to see it again original.gif
"Rarity by itself shouldn't necessarily be evidence of anything. When one is dealt a bridge hand of thirteen cards, the probability of being dealt that particular hand is less than one in 600 billion [1 in 6 x 1011]. Still, it would be absurd for someone to be dealt a hand, examine it carefully, calculate that the probability of getting it is less than one in 600 billion, and then conclude that he must not have been [randomly] dealt that very hand because it is so very improbable." -John Allen Paulos, Innumeracy: Mathematical Illiteracy and Its Consequences

Chris T I've just realised what [someone] reminds me of: [*]

#5 Working4computers

Working4computers

    Advanced Member

  • +Clients
  • 395 posts

Posted 30 March 2007 - 11:35 AM

This might make me change to IE if it was implemented. Any chance it could work with other browsers? *looks hopefully*

Posted Image


#6 Mark

Mark

    Needs Life

  • IPS Staff
  • 7,722 posts

Posted 31 March 2007 - 09:17 AM

Well if you could convince the Firefox developers wink.gif

Mark Wade
Developer

Posted Image Posted Image