travillaintim Posted January 21, 2009 Share Posted January 21, 2009 Heres the code: if ($player['skype'] == "n/a") { $skypename = "n/a"; $skypepic = ""; } else { $skypename = $player['skype']; $skypepic = "<a href='skype:$skypename'><img border='1' src='images/skype.gif' align='absmiddle' alt='skypename' /></a>"; } Works to a point - all it does is when I select the image it launches the skype application, but it is not calling the contact ($player[skype]) that is being pulled from the db. what am I missing? Link to comment https://forums.phpfreaks.com/topic/141687-launch-skype-and-connect-to-users-name-in-the-app/ Share on other sites More sharing options...
MadTechie Posted January 21, 2009 Share Posted January 21, 2009 I think your missing the call option "?call" $skypepic = "<a href='skype:$skypename?call'><img border='1' src='images/skype.gif' align='absmiddle' alt='skypename' /></a>"; also hover other the link and check the url is correct ie skype:MadTechi?call if you don't see the number then we probablt need more code Link to comment https://forums.phpfreaks.com/topic/141687-launch-skype-and-connect-to-users-name-in-the-app/#findComment-741698 Share on other sites More sharing options...
travillaintim Posted January 21, 2009 Author Share Posted January 21, 2009 Thanks, but that didnt work Hovering over the image and all I see is: skype:?call ahh take that back If I hover over another user in the db I get that, but if I hover over myself I see skype:myname?callso I think I have something session dependent somewhere here? Link to comment https://forums.phpfreaks.com/topic/141687-launch-skype-and-connect-to-users-name-in-the-app/#findComment-741752 Share on other sites More sharing options...
MadTechie Posted January 21, 2009 Share Posted January 21, 2009 update if ($player['skype'] == "n/a") { to if ($player['skype'] == "n/a" || empty($player['skype'])) { and check the results but without more info/code it hard for us to say Link to comment https://forums.phpfreaks.com/topic/141687-launch-skype-and-connect-to-users-name-in-the-app/#findComment-741758 Share on other sites More sharing options...
travillaintim Posted January 21, 2009 Author Share Posted January 21, 2009 That didnt work either but found I was going about it wrong way anyways I need the chat flag, got some more exploring to do - will be back if I dont get anywheres Link to comment https://forums.phpfreaks.com/topic/141687-launch-skype-and-connect-to-users-name-in-the-app/#findComment-741767 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.