I've been using a plugin for musicians to be able to type their MySpace Friend ID into a profile field and have their MySpace player show up in their profile. The plugin uses CURL. But for some reason, it looks PERFECT in FireFox. While in IE7, anything below the MySpace player doesn't show up. It even takes my footer out.
Here is the code from the plugin hooking member_customfields...
Code:
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$url = "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=".$bbcode_parser->parse($userinfo["field71"],0, true);
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init(); // initialize curl handle
curl_setopt($ch, CURLOPT_URL, $url); // set url to post to
curl_setopt($ch, CURLOPT_FAILONERROR, 1); // Fail on errors
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_PORT, 80); //Set the port number
curl_setopt($ch, CURLOPT_TIMEOUT, 15); // times out after 15s
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
$document = curl_exec($ch);
$myplayercode = "";
if (stripos(html_entity_decode($document),"<object id=\"mp3player\""))
{
$start=stripos(html_entity_decode($document),"<object id=\"mp3player\"");
$end=stripos(html_entity_decode($document),"</object>");
$myplayercode = substr(html_entity_decode($document),$start,$end-$start);
}
Now, I know it says compatible; MSIE 5.01; Windows NT 5.0, but is there any way at all to "make" it compatible for the later versions of IE?
Here's some of the code in my MEMBERINFO template to be sure it isn't an error on my part, or maybe a style issue. Couldn't paste it all due to the character limit.
Code:
<if condition="$userinfo[field71]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="alt2">
<td class="alt2" align="left" valign="top">
<center>$myplayercode</center>
</td>
</tr>
</table>
<br />
</if>
<if condition="$template_hook[memberinfo_foruminfo]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td><strong><if condition="$userinfo[field53] OR $userinfo[field54]"><if condition="$userinfo[field53]">$userinfo[field53]'s</if><if condition="$userinfo[field54]">$userinfo[field54]'s</if><else />$userinfo[username]'s</if> Blogs</strong></td>
</tr>
<tr class="alt2">
<td class="alt2" valign="top">
$template_hook[memberinfo_foruminfo]
</td>
</tr>
</table><br /></if>
And below are two screen shots of what it looks like in both versions. Any help would be GREATLY appreciated.