Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: ~DS~ on November 22, 2011, 03:16:58 AM

Title: [TIP/TRICK] Skype Profile
Post by: ~DS~ on November 22, 2011, 03:16:58 AM
Quote from: Oldiesmann on November 16, 2011, 12:38:18 AM
It's quite easy to just add it as a custom profile field - no mod required.

Here's how you can do it...

First, enable custom profile fields if you haven't already done so:
Admin -> Configuration -> Core Features
Click the "Switch" icon next to "Advanced profile fields" (it will change from gray to green)
Scroll down and click "Save"

Create a new profile field (Admin -> Configuration -> Features and Options -> Profile Fields)
(If an option isn't listed here, use whatever you want for it)
Name: Skype
Profile Section: Forum Profile
Show on topic view: Checked
Choose Placement: With Icons

Show enclosed with text:
<a href="skype:{INPUT}?call"><img src="http://mystatus.skype.com/smallicon/{INPUT}" alt="Skype - {INPUT}" title="Skype - {INPUT}" /></a>

Type: Text
Maximum Length: 32
Input Mask: No HTML
Privacy: Users can see this field; owner can edit it
Active: Checked

After that, just save the field and it will be there for users to edit. The code I've given you will show an icon based on the user's online status, if they've chosen to make that available over the web. If you want to use a different icon, just replace the "mystatus.skype.com" URL in the img code with the URL for the image you wish to use.

All credits goes to Oldiesmann :)
Title: Re: [TIP/TRICK] Skype Profile
Post by: vanGils on November 28, 2011, 04:14:27 PM
@ ~DS~

Thanks man.

Still I have a question.
It works but.
The logo is gray and not green when I am online on Skype.
Is that normal?
Title: Re: [TIP/TRICK] Skype Profile
Post by: ~DS~ on November 28, 2011, 04:17:38 PM
Quote from: vanGils on November 28, 2011, 04:14:27 PM
@ ~DS~

Thanks man.

Still I have a question.
It works but.
The logo is gray and not green when I am online on Skype.
Is that normal?
It should be green, if your profile page is refreshed
Title: Re: [TIP/TRICK] Skype Profile
Post by: vanGils on November 28, 2011, 04:32:52 PM
Ok.
Check that and it stil is still gray.   ;)
And I am online on Skype.
Is it checking the online status?
Title: Re: [TIP/TRICK] Skype Profile
Post by: ~DS~ on November 28, 2011, 07:00:35 PM
Quote from: vanGils on November 28, 2011, 04:32:52 PM
Ok.
Check that and it stil is still gray.   ;)
And I am online on Skype.
Is it checking the online status?
Offline:
http://cl.ly/342d2n0H1D0u031j3q1X

Online:
http://cl.ly/1M0y2K2Z3s3k263M0N1T
Title: Re: [TIP/TRICK] Skype Profile
Post by: societyofrobots on November 30, 2011, 06:42:52 AM
Hi, this mod works for me. But . . . when going to Profile -> Forum Profile . . .

it doesn't include Skype listed next to the other messenger options (ICQ, AIM, MSN, etc). Instead, it's separated and located at the bottom of the page, making it hard to find.

I'm assuming there is no way around this without manually editing files?

(not a biggie, just asking if I've overlooked something)
Title: Re: [TIP/TRICK] Skype Profile
Post by: td_bms on December 08, 2011, 04:48:46 PM
Hi there,
I have done all as explain above, but the icon is still gray with an X in the middle of the icon.
I have refreshed as suggested, but nothing it remains gray even though is working.

Another question is it possible to replace the icon with the official of Skype or there are some right to be paid for it?
Second: where do I find that default icon??
Third: in the section
<a href="skype:{INPUT}?call"><img src="http://mystatus.skype.com/smallicon/{INPUT}" alt="Skype - {INPUT}" title="Skype - {INPUT}" /></a>

Is there the field {INPUT}?call that can be replaced just for a chat and NOT for a call?


Thanks

PS.
I think I have solved for what I have asked above. Is necessary to replace the word "call" in "chat".
But the question on the gray icon remain: why is it gray, while I am on line?

Thank again
Title: Re: [TIP/TRICK] Skype Profile
Post by: live627 on December 08, 2011, 05:51:51 PM
Quote from: societyofrobots on November 30, 2011, 06:42:52 AM
Hi, this mod works for me. But . . . when going to Profile -> Forum Profile . . .

it doesn't include Skype listed next to the other messenger options (ICQ, AIM, MSN, etc). Instead, it's separated and located at the bottom of the page, making it hard to find.

I'm assuming there is no way around this without manually editing files?

(not a biggie, just asking if I've overlooked something)
correct-o
Title: Re: [TIP/TRICK] Skype Profile
Post by: TaKeOveR on December 18, 2011, 06:42:12 AM
thanks bro for the info
Title: Re: [TIP/TRICK] Skype Profile
Post by: Arvacon on January 09, 2013, 06:48:49 AM
Hi. This topic is old, but as I see, there is a question that never anwsered.
I had the same problem about the icon that was seems always offline, so I found that you have to make a change at your skype settings, to make this work.

Here is a screenshot about what you need to change, in order to have your online status work.

http://devforum.skype.com/t5/image/serverpage/image-id/52i4AD96129D7123668/image-size/original?v=mpbl-1&px=-1

I hope that helps as helped me.
By the way, thanks for this great tip :)
Title: Re: [TIP/TRICK] Skype Profile
Post by: teos55 on January 16, 2013, 10:02:36 AM
smf 2.0.3  default theme simple portal 2.3.5

  I have so many mods, so it was very diffucult for me to apply "additional instant messengers" mod .
http://custom.simplemachines.org/mods/index.php?mod=3338

failed in so many php's as expected.

So I decided to use this trick and great...  Though I'm missing goole talk as per the above mod adds. 

Maybe another trick for google talk ?
Title: Re: [TIP/TRICK] Skype Profile
Post by: hcfwesker on February 19, 2013, 12:50:23 AM
Quote from: teos55 on January 16, 2013, 10:02:36 AMMaybe another trick for google talk ?

Not sure if it's already been done, but you would pretty much follow the same instructions.  Changing skype to GoogleTalk , and for the show enclosed text block add this :

<a href="mailto:{INPUT}" target="_blank" title="GoogleTalk - {INPUT}"><img src="' . $settings['images_url'] . '/gtalk.gif" alt="GoogleTalk - {INPUT}" /></a>

Just save this image as gtalk.gif and upload it to your theme's images folder.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F55o849.jpg&hash=9c41c3dd0c88d51927bacd20b894d218bab612a4)
Title: Re: [TIP/TRICK] Skype Profile
Post by: Arantor on April 09, 2013, 04:04:50 PM
Since it's embedding HTML into the page, it's going to have to be a link to the image, based on the contents of the field... might be useful to either post your attachment elsewhere or at least post the code you're trying to use.
Title: Re: [TIP/TRICK] Skype Profile
Post by: MrTrane on April 26, 2013, 02:32:33 PM
As MSN is now officially dead I have noticed that more people have started using this so I will just drop my version of this.
Instead of calling the user when you click on their Skype image you can make it to show the user profile which is way better than receiving calls from people that you do not know.

Here's the code for it:
<a href="skype:{INPUT}?userinfo"><img src="http://mystatus.skype.com/smallicon/{INPUT}" alt="Skype - {INPUT}" title="Skype - {INPUT}" /></a>

Also, to be able to see someone's status on the image they have to enable the "Allow my online status to be visible on the web" from their Skype > Privacy Settings.
Title: Re: [TIP/TRICK] Skype Profile
Post by: AumoeLooure on May 12, 2013, 01:13:43 PM
It's a good idea...but...You don't specify exactly where we are to put the code, and how to find said code?
Title: Re: [TIP/TRICK] Skype Profile
Post by: Arantor on May 12, 2013, 02:15:02 PM
If you read the first post, it does actually say so. You use the in-built custom profile fields feature ;)
Title: Re: [TIP/TRICK] Skype Profile
Post by: AumoeLooure on May 12, 2013, 02:34:39 PM
Arantor, thanks, but I did do that already. That part I understood. I just don't understand where to put the code?
Title: Re: [TIP/TRICK] Skype Profile
Post by: Arantor on May 12, 2013, 02:38:58 PM
In the box given in the Custom Profile Fields screen...
Title: Re: [TIP/TRICK] Skype Profile
Post by: AumoeLooure on May 12, 2013, 05:15:56 PM
Haha, thanks! Got it! :)
Title: Re: [TIP/TRICK] Skype Profile
Post by: Mister X on July 18, 2013, 02:13:00 AM
Great Work, I love this whole Thing, and instead of installing those old Skype Mods and blah blah blah, Love it absolutely Love it. Thanks So Much Guys, Thanks Sooooo Much.
Title: Re: [TIP/TRICK] Skype Profile
Post by: JordanP on October 09, 2013, 01:21:10 PM
Quote from: live627 on December 08, 2011, 05:51:51 PM
Quote from: societyofrobots on November 30, 2011, 06:42:52 AM
Hi, this mod works for me. But . . . when going to Profile -> Forum Profile . . .

it doesn't include Skype listed next to the other messenger options (ICQ, AIM, MSN, etc). Instead, it's separated and located at the bottom of the page, making it hard to find.

I'm assuming there is no way around this without manually editing files?

(not a biggie, just asking if I've overlooked something)
correct-o

The original post states for the option "Choose Placement" to select "With Icons".  Could you change that to "Above Signature" so it's placed along with the rest of the Active profile fields?  Will changing its placement stop it from working with icons?  Or are the icons covered with the Input Mask?
Title: Re: [TIP/TRICK] Skype Profile
Post by: Arantor on October 09, 2013, 01:22:38 PM
Except the 'Above Signature' isn't where you think it is. It is literally 'above the signature', complete with the field's name, meaning you'd end up with "Skype: <Skype icon>" above your signature.

The input mask is for validating the content, not making an icon out of it.
Title: Re: [TIP/TRICK] Skype Profile
Post by: JordanP on October 09, 2013, 07:47:51 PM
Thanks for the clarification.  I tested it out after posting (because all good admins patch before testing!) so I'll enjoy the foot in mouth.
Title: Re: [TIP/TRICK] Skype Profile
Post by: Werldklass on October 11, 2013, 06:27:49 AM
Thanks. I tested.
Title: Re: [TIP/TRICK] Skype Profile
Post by: ValerieCasady on October 28, 2013, 05:34:51 AM
Amazing!
Thank you so much for sharing. It works!
Title: Re: [TIP/TRICK] Skype Profile
Post by: Mr Robville on January 20, 2014, 08:37:15 AM
Quote from: Arvacon on January 09, 2013, 06:48:49 AM
Hi. This topic is old, but as I see, there is a question that never anwsered.
I had the same problem about the icon that was seems always offline, so I found that you have to make a change at your skype settings, to make this work.

Here is a screenshot about what you need to change, in order to have your online status work.

http://devforum.skype.com/t5/image/serverpage/image-id/52i4AD96129D7123668/image-size/original?v=mpbl-1&px=-1

I hope that helps as helped me.
By the way, thanks for this great tip :)

The link posted here has been expired in the meantime. I'm currently struggling with the same problem with the grey icon. Does anyone still know what settings to change in order to appear correctly?
Title: Re: [TIP/TRICK] Skype Profile
Post by: hcfwesker on January 20, 2014, 12:19:04 PM
Quote from: Mr Robville on January 20, 2014, 08:37:15 AMThe link posted here has been expired in the meantime. I'm currently struggling with the same problem with the grey icon. Does anyone still know what settings to change in order to appear correctly?

Nothing to do with forum settings, you'll want to make an announcement topic for your members, because they must change settings on their skype control panel.

The link below explains and with visual aid attachments. ;)

http://www.simplemachines.org/community/index.php?topic=467631.msg3530471#msg3530471

Title: Re: [TIP/TRICK] Skype Profile
Post by: Mr Robville on January 20, 2014, 06:45:18 PM
That did the trick, thanks a lot!
Title: Re: [TIP/TRICK] Skype Profile
Post by: oroedel on February 14, 2014, 09:38:31 AM
someone has an idea why it doesn´t works in my forums? Don´t call, don`t show userprofile, just opens Skype and does nothing!?