clio77

Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Mavrikii Спасибо, работает, но.. Твит репостит, а одноклассники начали возвращают ошибку HTTP ERROR 400. $url = urlencode("http://domain.ru/news.php?i=".$arItem[ID]."#".$arItem[ID]); <div id="social"> <a href="http://twitter.com/share?text=<?php echo $title; ?>&related=truemisha&hashtags=<?php echo $hashtags ?>&url=<?php echo $url; ?>" title="Поделиться ссылкой в Твиттере" onclick="window.open(this.href, this.title, 'toolbar=0, status=0, width=548, height=325'); return false" target="_parent"><div class="twit"></div></a> <a href="http://vkontakte.ru/share.php?url=<?php echo urlencode("http://domain.ru/news.php?i=".$arItem[ID]."#".$arItem[ID]); ?>&title=<?php echo $title; ?>&description=<?php echo $description; ?>&image=<?php echo $image_url; ?>&noparse=true" onclick="window.open(this.href, this.title, 'toolbar=0, status=0, width=548, height=325'); return false" title="Сохранить в Вконтакте" target="_parent"><div class="vk"></div></a> <a href="http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl=<?php echo urlencode("http://domain.ru/news.php?i=".$arItem[ID]."#".$arItem[ID]); ?>&title=<?php echo $title; ?>&description=<?php echo $description; ?>&image=<?php echo $image_url; ?> title="Рассказать в Одноклассниках" target="_parent"><div class="ok"></div></a> </div> |