Опера говорит следующее:
Цитата |
Inline script compilation Syntax error at line 1 while loading: in character escape sequence: unexpected end of script \n \n});\n\n |
<script type="text/javascript">
{literal}
$(function()
{
$("#js_item_feed_{/literal}{$aFeed.feed_id}{literal} div").eq(2).addClass("js_user_feed_div_text").attr("title", "{/literal}{$aFeed.owner_full_name}{literal}");
var bIn = 1;
var bOut = 1;
var timer = 0;
if( bIn == 1 )
{
$("#display_user_for_feed_{/literal}{$aFeed.feed_id}{literal}").hover(function()
{
timer = setTimeout(function() {
if ( bIn == 1 )
{
bIb = 0;
{
if($("span#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").text() >= 1)
{
$("#list_like_user_{/literal}{$aFeed.feed_id}{literal}").fadeIn(300, function(){ bIn = 1; });
}
}
}
}, 500);
},
function()
{
clearTimeout(timer);
if ( bOut == 1 )
{
bOut = 0;
$("#list_like_user_{/literal}{$aFeed.feed_id}{literal}").fadeOut(150, function(){ bOut = 1; });
}
});
}
$("#js_item_feed_{/literal}{$aFeed.feed_id}{literal}").hover(function ()
{
$("#js_feed_rating{/literal}{$aFeed.feed_id}{literal}").fadeIn("fast");
$("#report_feed_{/literal}{$aFeed.feed_id}{literal}").css("display","block");
$("#delete_feed_{/literal}{$aFeed.feed_id}{literal}").css("display","block");
},
function ()
{
$("#js_feed_rating{/literal}{$aFeed.feed_id}{literal}").fadeOut("fast");
$("#report_feed_{/literal}{$aFeed.feed_id}{literal}").css("display","none");
$("#delete_feed_{/literal}{$aFeed.feed_id}{literal}").css("display","none");
});
var removeLikeFirst = "{/literal}{if $my_like != 0}js_feed_link_like_my{elseif isset($aFeed.like_rows) && is_array($aFeed.like_rows) && count($aFeed.like_rows)}js_feed_link_like_yes{else}js_feed_link_like_no{/if}{literal}";
var removeLike = "{/literal}{if isset($aFeed.like_rows) && is_array($aFeed.like_rows) && count($aFeed.like_rows) > 1}js_feed_link_like_yes{elseif isset($aFeed.like_rows) && is_array($aFeed.like_rows) && count($aFeed.like_rows) <= 1}js_feed_link_like_no{else}js_feed_link_unlike{/if}{literal}";
var feed_like_first = "#js_feed_like_first_{/literal}{$aFeed.feed_id}{literal}";
var feed_like_second = "#js_feed_like_second_{/literal}{$aFeed.feed_id}{literal}";
$(feed_like_first).click(function()
{
if($(feed_like_first).attr("class") == "js_feed_link_like_no")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#cdcdcd");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_yes")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
});
$(feed_like_second).click(function()
{
if($(feed_like_first).attr("class") == "js_feed_link_like_no")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
else if ($(feed_like_second).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#cdcdcd");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#f88307");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_yes")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_{/literal}{$aFeed.feed_id}{literal}").css("color", "#f88307");
$(feed_like_second).removeClass("js_feed_link_like_no");
$(feed_like_second).addClass("js_feed_link_like_my");
}
});
});
{/literal}
</script>
<script type="text/javascript">
$(function()
{
$("#js_item_feed_39515 div").eq(2).addClass("js_user_feed_div_text").attr("title", "Roman");
var bIn = 1;
var bOut = 1;
var timer = 0;
if( bIn == 1 ){
$("#display_user_for_feed_39515").hover(function()
{
timer = setTimeout(function() {
if ( bIn == 1 )
{
bIb = 0;
{
if($("span#count_likes_number_39515").text() >= 1)
{
$("#list_like_user_39515").fadeIn(300, function(){ bIn = 1; });
}
}
}
}, 500);
},
function()
{
clearTimeout(timer);
if ( bOut == 1 )
{
bOut = 0;
$("#list_like_user_39515").fadeOut(150, function(){ bOut = 1; });
}
});
}
$("#js_item_feed_39515").hover(function ()
{
$("#js_feed_rating39515").fadeIn("fast");
$("#report_feed_39515").css("display","block");
$("#delete_feed_39515").css("display","block");
},
function ()
{
$("#js_feed_rating39515").fadeOut("fast");
$("#report_feed_39515").css("display","none");
$("#delete_feed_39515").css("display","none");
});
var removeLikeFirst = "js_feed_link_like_no";
var removeLike = "js_feed_link_unlike";
var feed_like_first = "#js_feed_like_first_39515";
var feed_like_second = "#js_feed_like_second_39515";
$(feed_like_first).click(function()
{
if($(feed_like_first).attr("class") == "js_feed_link_like_no")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_39515").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_39515").css("color", "#cdcdcd");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_yes")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_39515").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
});
$(feed_like_second).click(function()
{
if($(feed_like_first).attr("class") == "js_feed_link_like_no")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_39515").css("color", "#f88307");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass("js_feed_link_like_my");
}
else if ($(feed_like_second).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_39515").css("color", "#cdcdcd");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_my")
{
$(feed_like_first).css("display", "block");
$(feed_like_second).css("display", "none");
$("#count_likes_number_39515").css("color", "#f88307");
}
else if ($(feed_like_first).attr("class") == "js_feed_link_like_yes")
{
$(feed_like_first).css("display", "none");
$(feed_like_second).css("display", "block");
$("#count_likes_number_39515").css("color", "#f88307");
$(feed_like_second).removeClass("js_feed_link_like_no");
$(feed_like_second).addClass("js_feed_link_like_my");
}
});
});
</script>
$(feed_like_second).addClass(\'js_feed_link_like_my\');\n }\n });\n \n});\n\n</script>\n
Цитата (RCuPeR @ 1.02.2012 - 16:01) |
Когда я хочу добавить запись на стену, после заполнения формы данные отправляются в базу и тут же AJAX-ом возвращаются в готовом виде. Вот на этом этапе и происходит ошибка. |
<script type="text/javascript">top.fwall.fetchItem('<div class=\"row1 js_user_feed\" id=\"js_item_feed_39524\">
<script type=\"text/javascript\">
$(function()
{
$(\"#js_item_feed_39524 div\").eq(2).addClass(\"js_user_feed_div_text\").attr(\"title\", \"Dmytro\");
var bIn = 1;
var bOut = 1;
var timer = 0;
if( bIn == 1 )
{
$(\"#display_user_for_feed_39524\").hover(function()
{
timer = setTimeout(function() {
if ( bIn == 1 )
{
bIb = 0;
{
if($(\"span#count_likes_number_39524\").text() >= 1)
{
$(\"#list_like_user_39524\").fadeIn(300, function(){ bIn = 1; });
}
}
}
}, 500);
},
function()
{
clearTimeout(timer);
if ( bOut == 1 )
{
bOut = 0;
$(\"#list_like_user_39524\").fadeOut(150, function(){ bOut = 1; });
}
});
}
$(\"#js_item_feed_39524\").hover(function ()
{
$(\"#js_feed_rating39524\").fadeIn(\"fast\");
$(\"#report_feed_39524\").css(\"display\",\"block\");
$(\"#delete_feed_39524\").css(\"display\",\"block\");
},
function ()
{
$(\"#js_feed_rating39524\").fadeOut(\"fast\");
$(\"#report_feed_39524\").css(\"display\",\"none\");
$(\"#delete_feed_39524\").css(\"display\",\"none\");
});
var removeLikeFirst = \"js_feed_link_like_no\";
var removeLike = \"js_feed_link_unlike\";
var feed_like_first = \"#js_feed_like_first_39524\";
var feed_like_second = \"#js_feed_like_second_39524\";
$(feed_like_first).click(function()
{
if($(feed_like_first).attr(\"class\") == \"js_feed_link_like_no\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39524\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39524\").css(\"color\", \"#cdcdcd\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_yes\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39524\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
});
$(feed_like_second).click(function()
{
if($(feed_like_first).attr(\"class\") == \"js_feed_link_like_no\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39524\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
else if ($(feed_like_second).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39524\").css(\"color\", \"#cdcdcd\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39524\").css(\"color\", \"#f88307\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_yes\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39524\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(\"js_feed_link_like_no\");
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
});
});
</script>
<div style=\"padding-bottom:10px; min-height:47px;word-wrap: break-word;\">
<div class=\"t_center\" style=\"width:54px;float:left;height: 54px;margin-right: 8px;\">
<a href=\"http://uezo.roman/index.php?do=/Dmytro/\" title=\"Dmytro в сети.\"><img src=\"http://uezo.roman/file/pic/user/2011/10/f64bdb107e1c9da61c2e56a8e9e51502.jpg\" alt=\"Dmytro в сети.\" class=\"image_online_status\" height=\"50\" width=\"50\" /></a> </div>
<a href=\"http://uezo.roman/index.php?do=/Dmytro/\">Dmytro</a> <div title=\"feedMsg\">dsad</div><div class=\"feed_wrap feed_no_thumb\"><div class=\"feed_inner\">
<div class=\"feed_title\">
<span class=\"feed_title\"><a href=\"\" target=\"_default\"></a></span>
</div>
<div class=\"feed_subtitle\">
<span class=\"feed_subtitle\"></span>
</div>
<div class=\"feed_description\">
<span class=\"feed_description\"></span>
</div>
</div>
<div class=\"clear\"></div>
<div class=\"feed_touch\"></div>
</div>
</div>
<div class=\"wall_extra_info\" style=\"margin-top:5px; margin-left: 63px; font-size: 10px; display: inline-table;\">
<div class=\"feed_entry_rate\" id=\"switch_ratings_39524\" style=\"display:block;\">
<div style=\"width:105px;float: left; margin-right: 40px;\">
<div id=\"js_feed_rating39524\" class=\"voting_icons\" style=\"display:none;text-align:right;float: left;width:105px;font-size: 8pt;height: 17px;padding-top: 6px;\">
0 голосов
<a href=\"#\" onclick=\"$.ajaxCall(\'feed.rate\', \'id=39524&type=up\'); return false;\" title=\"Проголосовать положительно\">
<img src=\"http://uezo.roman/theme/frontend/uezo/style/uezo/image/misc/vote_up.png\" alt=\"\" style=\"vertical-align:middle;\" /> </a>
<a href=\"#\" onclick=\"$.ajaxCall(\'feed.rate\', \'id=39524&type=down\'); return false;\" title=\"Проголосовать отрицательно\">
<img src=\"http://uezo.roman/theme/frontend/uezo/style/uezo/image/misc/vote_down.png\" alt=\"\" style=\"vertical-align:middle;\" /> </a>
</div>
</div>
<div id=\"switch_like_39524\" style=\"float:right;\" class=\"\">
<table cellpadding=\"0\" cellspacing=\"0\" width=\"65\" id=\"display_user_for_feed_39524\">
<tr>
<td width=\"20\">
<a href=\"#\" onClick=\"$.ajaxCall(\"wall.like\", \"feed_id=39524&type_id=1\"); return false;\" id=\"js_feed_like_first_39524\" class=\"js_feed_link_like_no\"><!--Интересно--></a>
<a href=\"#\" onClick=\"$.ajaxCall(\"wall.like\", \"feed_id=39524&type_id=0\"); return false;\" id=\"js_feed_like_second_39524\" class=\"js_feed_link_unlike\" style=\"display: none;\"><!--Интересно--></a>
<div class=\"list_like_user_wrap\" id=\"list_like_user_39524\" style=\"display: none;\">
<div class=\"list_like_top_pointer\"><div class=\"list_like_top_pointer_img\"></div></div>
<div style=\"height: 2px; width: 100%; background-color: #f88307;\"></div>
<div class=\"list_like_user\">
<div class=\"list_like_info\" style=\"padding-top: 1px;\">
<span style=\"padding: 2px;\" id=\"liked_users_39524\">
Заинтерисовались человека
</span>
</div>
<div style=\"padding-left: 1.5pt; padding-top: 1px;\" id=\"list_like_user_logo_39524\">
</div>
</div>
</div>
</td>
<td align=\"left\" style=\"padding-top: 2px;\">
<span id=\"count_likes_number_39524\" style=\"color: #cdcdcd;margin-right: 3px;\">
</span>
</td>
</tr>
</table>
</div>
</div>
<div class=\"feed_entry_time_stamp\">
<a href=\"http://uezo.roman/index.php?do=/Dmytro/feed_39524/#feed\" class=\"feed_permalink\">1 секунду назад</a>
</div>
<a style=\"color: #a46d55;\" href=\"#\" onclick=\"var bDoScroll = false; var iScrollCount = 0; $(\".js_feed_comment_border39524\").find(\".js_mini_feed_comment\").each(function () { iScrollCount++; if (iScrollCount == 5) { bDoScroll = true; } }); $(\"#js_feed_comment_form_mini_39524\").hide(); $(\".js_feed_comment_border39524\").find(\".js_feed_comment_form\").html($(\"#js_feed_comment_holder\").html()).show(); $(\".js_feed_comment_border39524\").find(\".js_feed_comment_item_id\").val(\"39524\"); $(\".js_feed_comment_border39524\").find(\".js_feed_comment_block\").val(\"1\"); $(\"#js_item_feed_39524\").find(\".js_comment_feed_textarea:first\").focus(); if (bDoScroll) { $.scrollTo(\"#js_feed_comment_form_39524\", 340, {over:-4}); } if (function_exists(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment\")) { eval(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment(39524);\"); } return false;\">Комментировать</a>
<a href=\"#\" style=\"display:none; position:absolute;right:0;top:4px;\" id=\"delete_feed_39524\" class=\"delete_link_wall\" onclick=\"if (confirm(\"Вы уверены?\")) { $.ajaxCall(\"feed.delete\", \"id=39524\"); } return false;\"></a>
<a href=\"#\" style=\"display:none; position:absolute;right:0;top:4px;\" id=\"delete_feed_39524\" class=\"delete_link_wall\" onclick=\"if (confirm(\"Вы уверены?\")) { $.ajaxCall(\"feed.delete\", \"id=39524\"); } return false;\"></a> </div>
<div style=\"margin:5px 0px 0px 0px;\" class=\"js_feed_comment_border39524\">
<!--<div id=\"js_feed_like_holder_39524\">
</div>-->
<div id=\"js_feed_comment_post_39524\">
</div>
<div id=\"js_feed_comment_form_mini_39524\" class=\"js_feed_comment_form_mini\" style=\"display:none;\">
<div class=\"comment_mini\">
<div style=\"border: 4px solid #f0f0f0;\">
<input type=\"text\" name=\"null\" value=\"Написать комментарий ...\" class=\"default_value\" style=\"width: 97.6%; font-size:8pt; border: 1px solid #ccc;padding: 3px 0 3px 10px;margin: 0;color: #666;\" onfocus=\"$(\".js_feed_comment_border39524\").find(\".js_feed_comment_form\").html($(\"#js_feed_comment_holder\").html()).show(); $(\".js_feed_comment_border39524\").find(\".js_feed_comment_item_id\").val(\"39524\"); $(\"#js_item_feed_39524\").find(\".js_comment_feed_textarea:first\").focus(); $(\"#js_feed_comment_form_mini_39524\").hide(); if (function_exists(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment\")) { eval(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment(39524);\"); }\" />
</div>
</div>
</div>
<div id=\"js_feed_comment_form_39524\" class=\"js_feed_comment_form\" style=\"display:none;\"></div>
</div>
</div>
');</script>
Цитата (RCuPeR @ 1.02.2012 - 16:15) |
В общем, вот весь код который возвращает аякс: в аттаче первого поста. |
ob_start();
Phpfox::getLib('template')->assign(array('aFeed' => $aFeeds[0]))->getTemplate('wall.block.entry');
$str = ob_get_clean();
$str = addslashes($str);
echo "<script type=\"text/javascript\">top.fwall.fetchItem('" . $str . "');</script>";
Цитата (RCuPeR @ 1.02.2012 - 16:29) |
Далее все это дело парсится функцией top.fwall.fetchItem |
echo '<script type="text/javascript">top.fwall.fetchItem('. $str . ');</script>';
Цитата |
Да, скрипт действительно уродский |
Цитата |
echo '<script type="text/javascript">top.fwall.fetchItem('. $str . ');</script>'; |
$str = "'".implode("'+\r\n'", explode("\r\n", addslashes($str)))."'";
echo '<script type="text/javascript">top.fwall.fetchItem(' . $str . ');</script>';
Цитата |
можно попробовать так |
<script type="text/javascript">top.fwall.fetchItem('<div class=\"row1 js_user_feed\" id=\"js_item_feed_39531\">
index.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
<script type=\"text/javascript\">
$(function()
{
$(\"#js_item_feed_39531 div\").eq(2).addClass(\"js_user_feed_div_text\").attr(\"title\", \"Dmytro\");
var bIn = 1;
var bOut = 1;
var timer = 0;
if( bIn == 1 )
{
$(\"#display_user_for_feed_39531\").hover(function()
{
timer = setTimeout(function() {
if ( bIn == 1 )
{
bIb = 0;
{
if($(\"span#count_likes_number_39531\").text() >= 1)
{
$(\"#list_like_user_39531\").fadeIn(300, function(){ bIn = 1; });
}
}
}
}, 500);
},
function()
{
clearTimeout(timer);
if ( bOut == 1 )
{
bOut = 0;
$(\"#list_like_user_39531\").fadeOut(150, function(){ bOut = 1; });
}
});
}
$(\"#js_item_feed_39531\").hover(function ()
{
$(\"#js_feed_rating39531\").fadeIn(\"fast\");
$(\"#report_feed_39531\").css(\"display\",\"block\");
$(\"#delete_feed_39531\").css(\"display\",\"block\");
},
function ()
{
$(\"#js_feed_rating39531\").fadeOut(\"fast\");
$(\"#report_feed_39531\").css(\"display\",\"none\");
$(\"#delete_feed_39531\").css(\"display\",\"none\");
});
var removeLikeFirst = \"js_feed_link_like_no\";
var removeLike = \"js_feed_link_unlike\";
var feed_like_first = \"#js_feed_like_first_39531\";
var feed_like_second = \"#js_feed_like_second_39531\";
$(feed_like_first).click(function()
{
if($(feed_like_first).attr(\"class\") == \"js_feed_link_like_no\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39531\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39531\").css(\"color\", \"#cdcdcd\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_yes\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39531\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
});
$(feed_like_second).click(function()
{
if($(feed_like_first).attr(\"class\") == \"js_feed_link_like_no\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39531\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(removeLike);
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
else if ($(feed_like_second).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39531\").css(\"color\", \"#cdcdcd\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_my\")
{
$(feed_like_first).css(\"display\", \"block\");
$(feed_like_second).css(\"display\", \"none\");
$(\"#count_likes_number_39531\").css(\"color\", \"#f88307\");
}
else if ($(feed_like_first).attr(\"class\") == \"js_feed_link_like_yes\")
{
$(feed_like_first).css(\"display\", \"none\");
$(feed_like_second).css(\"display\", \"block\");
$(\"#count_likes_number_39531\").css(\"color\", \"#f88307\");
$(feed_like_second).removeClass(\"js_feed_link_like_no\");
$(feed_like_second).addClass(\"js_feed_link_like_my\");
}
});
});
</script>
<div style=\"padding-bottom:10px; min-height:47px;word-wrap: break-word;\">
<div class=\"t_center\" style=\"width:54px;float:left;height: 54px;margin-right: 8px;\">
<a href=\"http://uezo.roman/index.php?do=/Dmytro/\" title=\"Dmytro в сети.\"><img src=\"http://uezo.roman/file/pic/user/2011/10/f64bdb107e1c9da61c2e56a8e9e51502.jpg\" alt=\"Dmytro в сети.\" class=\"image_online_status\" height=\"50\" width=\"50\" /></a> </div>
<a href=\"http://uezo.roman/index.php?do=/Dmytro/\">Dmytro</a> <div title=\"feedMsg\">123123</div><div class=\"feed_wrap feed_no_thumb\"><div class=\"feed_inner\">
<div class=\"feed_title\">
<span class=\"feed_title\"><a href=\"\" target=\"_default\"></a></span>
</div>
<div class=\"feed_subtitle\">
<span class=\"feed_subtitle\"></span>
</div>
<div class=\"feed_description\">
<span class=\"feed_description\"></span>
</div>
</div>
<div class=\"clear\"></div>
<div class=\"feed_touch\"></div>
</div>
</div>
<div class=\"wall_extra_info\" style=\"margin-top:5px; margin-left: 63px; font-size: 10px; display: inline-table;\">
<div class=\"feed_entry_rate\" id=\"switch_ratings_39531\" style=\"display:block;\">
<div style=\"width:105px;float: left; margin-right: 40px;\">
<div id=\"js_feed_rating39531\" class=\"voting_icons\" style=\"display:none;text-align:right;float: left;width:105px;font-size: 8pt;height: 17px;padding-top: 6px;\">
0 голосов
<a href=\"#\" onclick=\"$.ajaxCall(\'feed.rate\', \'id=39531&type=up\'); return false;\" title=\"Проголосовать положительно\">
<img src=\"http://uezo.roman/theme/frontend/uezo/style/uezo/image/misc/vote_up.png\" alt=\"\" style=\"vertical-align:middle;\" /> </a>
<a href=\"#\" onclick=\"$.ajaxCall(\'feed.rate\', \'id=39531&type=down\'); return false;\" title=\"Проголосовать отрицательно\">
<img src=\"http://uezo.roman/theme/frontend/uezo/style/uezo/image/misc/vote_down.png\" alt=\"\" style=\"vertical-align:middle;\" /> </a>
</div>
</div>
<div id=\"switch_like_39531\" style=\"float:right;\" class=\"\">
<table cellpadding=\"0\" cellspacing=\"0\" width=\"65\" id=\"display_user_for_feed_39531\">
<tr>
<td width=\"20\">
<a href=\"#\" onClick=\"$.ajaxCall(\"wall.like\", \"feed_id=39531&type_id=1\"); return false;\" id=\"js_feed_like_first_39531\" class=\"js_feed_link_like_no\"><!--Интересно--></a>
<a href=\"#\" onClick=\"$.ajaxCall(\"wall.like\", \"feed_id=39531&type_id=0\"); return false;\" id=\"js_feed_like_second_39531\" class=\"js_feed_link_unlike\" style=\"display: none;\"><!--Интересно--></a>
<div class=\"list_like_user_wrap\" id=\"list_like_user_39531\" style=\"display: none;\">
<div class=\"list_like_top_pointer\"><div class=\"list_like_top_pointer_img\"></div></div>
<div style=\"height: 2px; width: 100%; background-color: #f88307;\"></div>
<div class=\"list_like_user\">
<div class=\"list_like_info\" style=\"padding-top: 1px;\">
<span style=\"padding: 2px;\" id=\"liked_users_39531\">
Заинтерисовались человека
</span>
</div>
<div style=\"padding-left: 1.5pt; padding-top: 1px;\" id=\"list_like_user_logo_39531\">
</div>
</div>
</div>
</td>
<td align=\"left\" style=\"padding-top: 2px;\">
<span id=\"count_likes_number_39531\" style=\"color: #cdcdcd;margin-right: 3px;\">
</span>
</td>
</tr>
</table>
</div>
</div>
<div class=\"feed_entry_time_stamp\">
<a href=\"http://uezo.roman/index.php?do=/Dmytro/feed_39531/#feed\" class=\"feed_permalink\">1 секунду назад</a>
</div>
<a style=\"color: #a46d55;\" href=\"#\" onclick=\"var bDoScroll = false; var iScrollCount = 0; $(\".js_feed_comment_border39531\").find(\".js_mini_feed_comment\").each(function () { iScrollCount++; if (iScrollCount == 5) { bDoScroll = true; } }); $(\"#js_feed_comment_form_mini_39531\").hide(); $(\".js_feed_comment_border39531\").find(\".js_feed_comment_form\").html($(\"#js_feed_comment_holder\").html()).show(); $(\".js_feed_comment_border39531\").find(\".js_feed_comment_item_id\").val(\"39531\"); $(\".js_feed_comment_border39531\").find(\".js_feed_comment_block\").val(\"1\"); $(\"#js_item_feed_39531\").find(\".js_comment_feed_textarea:first\").focus(); if (bDoScroll) { $.scrollTo(\"#js_feed_comment_form_39531\", 340, {over:-4}); } if (function_exists(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment\")) { eval(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment(39531);\"); } return false;\">Комментировать</a>
<a href=\"#\" style=\"display:none; position:absolute;right:0;top:4px;\" id=\"delete_feed_39531\" class=\"delete_link_wall\" onclick=\"if (confirm(\"Вы уверены?\")) { $.ajaxCall(\"feed.delete\", \"id=39531\"); } return false;\"></a>
<a href=\"#\" style=\"display:none; position:absolute;right:0;top:4px;\" id=\"delete_feed_39531\" class=\"delete_link_wall\" onclick=\"if (confirm(\"Вы уверены?\")) { $.ajaxCall(\"feed.delete\", \"id=39531\"); } return false;\"></a> </div>
<div style=\"margin:5px 0px 0px 0px;\" class=\"js_feed_comment_border39531\">
<!--<div id=\"js_feed_like_holder_39531\">
</div>-->
<div id=\"js_feed_comment_post_39531\">
</div>
<div id=\"js_feed_comment_form_mini_39531\" class=\"js_feed_comment_form_mini\" style=\"display:none;\">
<div class=\"comment_mini\">
<div style=\"border: 4px solid #f0f0f0;\">
<input type=\"text\" name=\"null\" value=\"Написать комментарий ...\" class=\"default_value\" style=\"width: 97.6%; font-size:8pt; border: 1px solid #ccc;padding: 3px 0 3px 10px;margin: 0;color: #666;\" onfocus=\"$(\".js_feed_comment_border39531\").find(\".js_feed_comment_form\").html($(\"#js_feed_comment_holder\").html()).show(); $(\".js_feed_comment_border39531\").find(\".js_feed_comment_item_id\").val(\"39531\"); $(\"#js_item_feed_39531\").find(\".js_comment_feed_textarea:first\").focus(); $(\"#js_feed_comment_form_mini_39531\").hide(); if (function_exists(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment\")) { eval(\"\" + Editor.sEditor + \"_wysiwyg_feed_comment(39531);\"); }\" />
</div>
</div>
</div>
<div id=\"js_feed_comment_form_39531\" class=\"js_feed_comment_form\" style=\"display:none;\"></div>
</div>
</div>
');</script>
Цитата |
А зечем top? Это все во фрейме что-ли? |
ob_start();
Phpfox::getLib('template')->assign(array('aFeed' => $aFeeds[0]))->getTemplate('wall.block.entry');
$str = ob_get_clean();
$str = mysql_escape_string($str);
$str = str_replace(array('<script type=\"text/javascript\">', '</script>'), array('\x3Cscript type=\"text/javascript\">', '\x3C/script>'), $str);
echo '<script type="text/javascript">top.fwall.fetchItem("' . $str . '");</script>';