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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.