RSS Feed

Facebook

Twitter

Blogger

Google+

LinkedIn

Youtube

Gmail


You are here: Home » Ask - Nekonette.com | Musings of A Kitty

Ask questions

Is there something you want to know about me/the site/anything else? Just ask the questions here and I will reply them within a few hours so don't forget to check back later.

There are currently 144 answered, and 0 unanswered questions.

Please be reminded that this is not a chatbox.






Prev · [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 · Next

Clover asked: Hi Kitty! I tried it on another layout and it worked though it doesn't work for my existing one. Thank yo

Kitty:

Clover asked: Hello Kitty! Sorry to trouble you again. How may I install the javascript? Do I place the entire code directly into my 'body' part of the template? I tried doing so and it didn't work.

Kitty: Yes the code should be pasted in the body section where you want it to appear.

That is strange. They should work with no problem at all.

<script type="text/javascript">

function showrecentcomments(json){for(var i=0;i<a_rc;i++){var b_rc=json.feed.entry[i];var c_rc;if(i==json.feed.entry.length)break;for(var k=0;k<b_rc.link.length;k++){if(b_rc.link[k].rel=='alternate'){c_rc=b_rc.link[k].href;break;}}c_rc=c_rc.replace("#", "#comment-");var d_rc=c_rc.split("#");d_rc=d_rc[0];var e_rc=d_rc.split("/");e_rc=e_rc[5];e_rc=e_rc.split(".html");e_rc=e_rc[0];var f_rc=e_rc.replace(/-/g, " ");f_rc=f_rc.link(d_rc);var g_rc=b_rc.published.$t;var h_rc=g_rc.substring(0, 4);var i_rc=g_rc.substring(5, 7);var j_rc=g_rc.substring(8, 10);var k_rc=new Array();k_rc[1]="Jan";k_rc[2]="Feb";k_rc[3]="Mar";k_rc[4]="Apr";k_rc[5]="May";k_rc[6]="Jun";k_rc[7]="Jul";k_rc[8]="Aug";k_rc[9]="Sep";k_rc[10]="Oct";k_rc[11]="Nov";k_rc[12]="Dec";if("content" in b_rc){var l_rc=b_rc.content.$t;}else if("summary" in b_rc){var l_rc=b_rc.summary.$t;}else var l_rc="";var re=/<S[^>]*>/g;l_rc=l_rc.replace(re, "");if(m_rc==true)document.write('On '+k_rc[parseInt(i_rc, 10)]+' '+j_rc+' ');document.write('<a href="'+c_rc+'">'+b_rc.author[0].name.$t+'</a> commented');if(n_rc==true)document.write(' on '+f_rc);document.write(': ');if(l_rc.length<o_rc){document.write('<i>&#8220;');document.write(l_rc);document.write('&#8221;</i><br/><br/>');}else{document.write('<i>&#8220;');l_rc=l_rc.substring(0, o_rc);var p_rc=l_rc.lastIndexOf(" ");l_rc=l_rc.substring(0, p_rc);document.write(l_rc+'&hellip;&#8221;</i>');document.write('<br/><br/>');}}document.write('<div style="font-size:70%;text-align:center"></div>');}

</script>

<script style='text/javascript'>var a_rc=3;var m_rc=true;var n_rc=true;var o_rc=100;</script><script src='http://www.YOURBLOGNAME.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments'></script>


Cathy asked: Hey Kitty. :D I was wondering if there was a way of displaying the label count for a certain label (in classic blogger)?

Kitty: Hello Cathy, I'm not exactly sure on how to do that but you may want to read this. It might help you:

http://www.blogdoctor.me/2008/12/labels-gadget-for-classic-templates-in.html


Clover asked: Hello again Kitty! Are there any possible codes which will code for Recent comments per se? Any javascripts that you know of? I would love it to work like how a Recent comments widget would in the Layout template. Thank you for responding to my previous question! (:

Kitty: Hi Clover. Fortunately yes, I've just discovered a way on how to do it. The original website for the code no longer exist and several tweaks had to be done to make to work again but here it is.It is slightly long though, sorry.

<script type="text/javascript">

function showrecentcomments(json){for(var i=0;i<a_rc;i++){var b_rc=json.feed.entry[i];var c_rc;if(i==json.feed.entry.length)break;for(var k=0;k<b_rc.link.length;k++){if(b_rc.link[k].rel=='alternate'){c_rc=b_rc.link[k].href;break;}}c_rc=c_rc.replace("#", "#comment-");var d_rc=c_rc.split("#");d_rc=d_rc[0];var e_rc=d_rc.split("/");e_rc=e_rc[5];e_rc=e_rc.split(".html");e_rc=e_rc[0];var f_rc=e_rc.replace(/-/g, " ");f_rc=f_rc.link(d_rc);var g_rc=b_rc.published.$t;var h_rc=g_rc.substring(0, 4);var i_rc=g_rc.substring(5, 7);var j_rc=g_rc.substring(8, 10);var k_rc=new Array();k_rc[1]="Jan";k_rc[2]="Feb";k_rc[3]="Mar";k_rc[4]="Apr";k_rc[5]="May";k_rc[6]="Jun";k_rc[7]="Jul";k_rc[8]="Aug";k_rc[9]="Sep";k_rc[10]="Oct";k_rc[11]="Nov";k_rc[12]="Dec";if("content" in b_rc){var l_rc=b_rc.content.$t;}else if("summary" in b_rc){var l_rc=b_rc.summary.$t;}else var l_rc="";var re=/<S[^>]*>/g;l_rc=l_rc.replace(re, "");if(m_rc==true)document.write('On '+k_rc[parseInt(i_rc, 10)]+' '+j_rc+' ');document.write('<a href="'+c_rc+'">'+b_rc.author[0].name.$t+'</a> commented');if(n_rc==true)document.write(' on '+f_rc);document.write(': ');if(l_rc.length<o_rc){document.write('<i>&#8220;');document.write(l_rc);document.write('&#8221;</i><br/><br/>');}else{document.write('<i>&#8220;');l_rc=l_rc.substring(0, o_rc);var p_rc=l_rc.lastIndexOf(" ");l_rc=l_rc.substring(0, p_rc);document.write(l_rc+'&hellip;&#8221;</i>');document.write('<br/><br/>');}}document.write('<div style="font-size:70%;text-align:center"></div>');}

</script>

<script style='text/javascript'>var a_rc=3;var m_rc=true;var n_rc=true;var o_rc=100;</script><script src='http://www.codeislove.net/feeds/comments/default?alt=json-in-script&callback=showrecentcomments'></script>

Change the values in the code above.

var a_rc = 3 // this is the number of comments you want to display

var o _rc = 100 // this is the length of the comments you want to display

yourblogname.blogspot.com // change it to your own blog URL


Clover asked: Hey, is it possible to have a 'recent comments' widget for a classic blogspot template? I am currently searching for codes on it and I came across Codeislove. Really appreciate it if you could help me on this. Thanks!

Kitty: Hello Clover, to add the Recent Comments to Classic Blogger template, paste the following code where you want the Recent Comments to appear:

<h2>Recent Comments</h2>

<Blogger>

<MainPage>

<BlogItemCommentsEnabled>

<BlogItemComments>

<$BlogCommentAuthor$> //

<a href="<$BlogCommentPermalinkURL$>">

<$BlogCommentPermalinkURL$></a>

<p class="comment-body">

<$BlogCommentBody$>

</p>

</BlogItemComments>

</BlogItemCommentsEnabled>

</MainPage>

</Blogger>

The codes above will be shown only on the main page and not on individual pages. If you want them to appear on the individual pages as well, remove the <MainPage></MainPage> tags

However, this code does not show the Recent Comments per se. It shows recent comments for the post on the current page.


Arch asked: Hello! I've been having this problem, and I'm wondering if you could help. I've been coding a new blog skin (here: mochikari.blogspot.com.au). But when you scroll, you'll see that the actual blog entry scrolls over the top of the brown box (the one with the Oreo image) and renders it useless. I was wondering if you could help me with somehow getting it to scroll underneath?

Kitty: Look for this code in your CSS:

#top {left: 200px; padding:10px; width:500px; top:50px; position:fixed; height:135px; background:#A37E58; color:#FFFFFF;}

remove the position:fixed;


Prince asked: Hi! I was scrolling down your tutorials and they were great. Thank you. They are of so much help. I was just wondering if paginating entries is applicable in blogger?

Kitty: It should be possible since there are quite a lot of tutorials on the net on how to create numbered pagination for Blogger. But I've never tried them myself.

Here are the links:

http://www.doncaprio.com/2011/05/numbered-page-navigation-blogspost.html

http://www.bloggerbuster.com/2008/08/numbered-page-navigation-for-blogger.html

http://bloggerdummies.com/blogger-page-navigation-widget

You can try them yourself.


NorafifahRoshman asked: Hello there :D saya dah ada account blogskins. tapi nak design blogskins's profle saya tak tahu :D kalau boleh, i want to know macam mana nak design blogskins's profile tu. i hope you understand. thank you Kitty!!

Kitty: Hello Afifah, kalau nak design blogskin punya profile tu tak susah tapi kalau nak terangkan satu persatu dekat sini terlalu panjang lah pulak tapi you boleh baca guide ni: http://www.blogskins.com/forum/1/72292/

Ichaq asked: heyaa Kitty, i wonder if you could please tell me how can i add comment embedded below the post for blogskin..?? thank you... :)

Kitty: Hello Ichaq, read my tutorial here:

http://www.codeislove.net/2011/01/tutorial-adding-commenting-feature.html

If you have any questions about Blogger, just ask the question @ Codeislove.net


Cza asked: I checked your profile again and realized you were Bruneian. That is just so cool! Maybe it's just me, but I love

Kitty: Yes I do currently reside in Brunei. :)

Oh that is so cool! I love meeting fellow Asians on the internet too. Especially if they are bloggers. It's not often that I bump into another Asian blogger.

So you're a Pinoy yeah? That means we're not that far apart. (distance-wise) :D




Powered by BellaBuzz V2.