I am running into an issue streaming HTML. I tried to modify some code… apparently I didn’t go a very good job. Can you please look at the below and tell me where I went wrong? I think it’s on the <a class> line…
$streamHtml .= "<div class=\\"meta\\">\
";
$streamHtml .= "<strong class=\\"post-link\\">\
";
$streamHtml .= "<a class=\\"entry-title\\" href=\\"http://www.athleteswhotweet.com/$profileName\\">$profileName</a></strong> <span class="vcard"><span class="fn"> $statusRealName</span></span>\
";
$streamHtml .= "</div>\
";
Thanks for the help!
Jon
I realized that while line 96 (the line i called out) is getting the error, I may have messed something else up later as well… here is the full code:
$streamHtml .= "<div class=\\"post hentry\\">\
";
$streamHtml .= "<div class=\\"image-box\\">\
";
$streamHtml .= "<img class=\\"photo\\">\
";
$streamHtml .= "<a href=\\"http://www.athleteswhotweet.com/$profileName\\"><img class=\\"userPicThumb\\" src=\\"$profilePic\\" alt=\\"$profileRealName\\" /></a>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"text-box\\">\
";
$streamHtml .= "<div class=\\"meta\\">\
";
$streamHtml .= "<strong class=\\"post-link\\">\
";
$streamHtml .= "<a class=\\"entry-title\\" href=\\"http://www.athleteswhotweet.com/$profileName\\">$profileName</a></strong> <span class="vcard"><span class="fn"> $statusRealName</span></span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<p class=\\"entry-content\\">$status</p>\
";
$streamHtml .= "<div class=\\"time\\">\
";
$streamHtml .= "<span>$statusDateFormatted from $statusSource</span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"clear\\"></div>\
";
$streamHtml .= "</span>\
";
$streamHtml .= "</div>\
";
Help please!
So I figured it out, here’s the issue now… I want to alternate divs for different bg colors. For example, stream one, then the next, then the other.
The problem is that right now it is just doubling up with the same twitter post twice because I just pasted the code twice. Does anyone know a way I can tell it to alternate between the two divs on the first line and the div on the second set?
$streamHtml .= "<div class=\\"post hentry\\">\
";
$streamHtml .= "<div class=\\"image-box\\">\
";
$streamHtml .= "<img class=\\"photo\\">\
";
$streamHtml .= "<a href=\\"http://www.athleteswhotweet.com/$profileName\\"><img class=\\"userPicThumb\\" src=\\"$profilePic\\" alt=\\"$profileRealName\\" /></a>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"text-box\\">\
";
$streamHtml .= "<div class=\\"meta\\">\
";
$streamHtml .= "<strong class=\\"post-link\\">\
";
$streamHtml .= "<a class=\\"entry-title\\" href=\\"http://www.athleteswhotweet.com/$profileName\\">$profileName</a>\
";
$streamHtml .= "</strong>\
";
$streamHtml .= "<span class=\\"vcard\\"><span class=\\"fn\\"> $statusRealName</span></span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<p class=\\"entry-content\\">$status</p>\
";
$streamHtml .= "<div class=\\"time\\">\
";
$streamHtml .= "<span>$statusDateFormatted from $statusSource</span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"clear\\"></div>\
";
$streamHtml .= "</span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"post post-mark hentry\\">\
";
$streamHtml .= "<div class=\\"image-box\\">\
";
$streamHtml .= "<img class=\\"photo\\">\
";
$streamHtml .= "<a href=\\"http://www.athleteswhotweet.com/$profileName\\"><img class=\\"userPicThumb\\" src=\\"$profilePic\\" alt=\\"$profileRealName\\" /></a>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"text-box\\">\
";
$streamHtml .= "<div class=\\"meta\\">\
";
$streamHtml .= "<strong class=\\"post-link\\">\
";
$streamHtml .= "<a class=\\"entry-title\\" href=\\"http://www.athleteswhotweet.com/$profileName\\">$profileName</a>\
";
$streamHtml .= "</strong>\
";
$streamHtml .= "<span class=\\"vcard\\"><span class=\\"fn\\"> $statusRealName</span></span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<p class=\\"entry-content\\">$status</p>\
";
$streamHtml .= "<div class=\\"time\\">\
";
$streamHtml .= "<span>$statusDateFormatted from $statusSource</span>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "</div>\
";
$streamHtml .= "<div class=\\"clear\\"></div>\
";
$streamHtml .= "</span>\
";
$streamHtml .= "</div>\
";