0 Pasang Gambar / Video di Komentar Blogger!



Anda mungkin telah melihat posting link di komentar blogger atau posting smiley di komentar blogger. Tapi tips ini sama sekali berbeda! Posting smiley di komentar blogger hanya mungkin dengan smiley yang disediakan oleh pemilik blog. Tapi trik ini membantu pengunjung blog Anda untuk mengirim gambar apapun dari web dalam komentar. Jadi, menerapkannya dalam blog Anda sekarang!


Langkah 1




Pergi ke blogger> Desain> Edit HTML dan paste kode di bawah ini tepat di atas </ body>

<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<script type=’text/javascript’>
//<![CDATA[
function replaceText(){if(!document.getElementById){return;}
bodyText = document.getElementById("multimedia");
theText = bodyText.innerHTML;
theText = theText.replace(/\[img\]/gi, “<div style=’clear:both’></div><img style=’float:left;margin:10px 0;border:1px solid #DDD;max-width:590px;background:#FFF;padding:4px’ src=’”);
theText = theText.replace(/\[\/img\]/gi, “‘/><div style=’clear:both’></div>”);
theText = theText.replace(/\[youtube\]http:\/\/youtu.be/gi, “<iframe width=’480′ height=’390′ src=’http://www.youtube.com/embed”);
theText = theText.replace(/\[youtube\]http:\/\/www.youtube.com\/watch\?v=/gi, “<iframe width=’480′ height=’390′ src=’http://www.youtube.com/embed/”);
theText = theText.replace(/&amp;feature=/gi, “?rel=0′ ‘”);
theText = theText.replace(/\[\/youtube\]/gi, “?rel=0′ frameborder=’0′ allowfullscreen></iframe>”);
theText = theText.replace(/\[nct\]http:\/\/www.nhaccuatui.com\/nghe\?L=/gi, “<div style=’overflow:hidden’><embed style=’margin-top:-250px;width:300px;height:400px’ src=’http://www.nhaccuatui.com/l/”);
theText = theText.replace(/\[nct\]http:\/\/www.nhaccuatui.com\/nghe\?M=/gi, “<div style=’overflow:hidden’><embed style=’margin-top:-350px;width:300px;height:400px’ src=’http://www.nhaccuatui.com/m/”);
theText = theText.replace(/\[\/nct\]/gi, “‘ quality=’high’ wmode=’transparent’ type=’application/x-shockwave-flash’></embed></div>”);

bodyText.innerHTML = theText;
}replaceText();
//]]>
</script>
</b:if>

Langkah 2

Cari kode di bawah ini

<b:loop values=’data:post.comments’ var=’comment’> 


dan tambahkan kode di bawah ini sebelum


<div id=’multimedia’>  

sekarang temukan


</b:loop>

dan tambahkan tag penutup div (di bawah kode)


</div> 

Langkah 3

Blog Anda sekarang siap untuk posting gambar / video dalam komentar! Yang perlu Anda lakukan adalah memberitahu pengunjung bahwa mereka dapat memposting gambar / video dalam komentar. Anda dapat mengikuti langkah-langkah berikut ini
pergi ke

blogger.com > Settings > Comments > Comment Form Message  

dan paste kode di bawah ini dalam kotak teks/komentar dan simpan pengaturan


Hey ! Sekarang Anda dapat memposting gambar / video dalam komentar! Jadi, coba gunakan!
<b>[img]YOUR-IMAGE-URL[/img]</b> for posting images and 
<b>[youtube]YOUR-YOUTUBE-VIDEO-URL[/youtube]</b>




Tidak ada komentar:

Posting Komentar

Terima Kasih Telah Berkunjung di Blog Ini Update terus untuk mendapatkan Artikel terbaru

X