This article is about the Crown dependencies. For the islands off Southern California, see Channel Islands (California). For the French Channel Islands, see Chausey. Channel Islands Îles Anglo-Normandes (French) Îles d'la Manche (Norman) Satellite photo of the Channel Islands in 2012 Location of the Channel Islands Geography Location Western Europe Coordinates 49°26′N 2°19′W / 49.433°N 2.317°W / 49.433; -2.317 Coordinates: 49°26′N 2°19′W / 49.433°N 2.317°W / 49.433; -2.317 Adjacent bodies of water English Channel Total islands 8 inhabited Major islands Jersey and Guernsey Area 198 km 2 (76 sq mi) Highest point Les Platons Administration Bailiwick of Guernsey Capital and largest settlement Saint Peter Port, Guernsey Area covered 78 km 2 (30 sq mi; 7001394000000000000♠ 39.4%) Bailiwick ...
(function() {
var items = ['id': '5647078607828737111', 'body': 'Can I do guest posting for this website?', 'timestamp': '1460446058127', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1460446058127#c5647078607828737111', 'author': 'name': 'Shakir Hassan', 'avatarUrl': '//lh5.googleusercontent.com/-ooSwu42z54Y/AAAAAAAAAAI/AAAAAAAAAZc/SpvsG5E0JoY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15016474338769958437', 'displayTime': 'Apr 12, 2016, 12:27:00 PM', 'deleteclass': 'item-control blog-admin pid-64415914', 'id': '1197216752050111738', 'body': 'media$thumbnail shows the first images only, is there a way to use the second image instead?x3cbr /x3ex3cbr /x3eThanks for the detailed information!', 'timestamp': '1460657970589', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1460657970589#c1197216752050111738', 'author': 'name': 'Chase Micha', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/13053643817445502798', 'displayTime': 'Apr 14, 2016, 11:19:00 PM', 'deleteclass': 'item-control blog-admin pid-220238200', 'id': '1347535001511605638', 'parentId': '5647078607828737111', 'body': 'Buddy we have stopped accepting guests posts since a year. We may allow it later this year when we feel we need help in posting ', 'timestamp': '1460668091498', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1460668091498#c1347535001511605638', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAQeo/f7nmpa1_dQ0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Apr 15, 2016, 2:08:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', \.png]x26quot;)/)x3cbx3e[2]x3c/bx3ex3cbr /x3ex3cbr /x3ex3cbr /x3eWhat this code does that it will scan your entire post for images. It will pick all images from inside the post. You can then choose which image to display by mentioning the image index inside [*]x3cbr /x3ex3cbr /x3eLet me know if you needed more help. I am glad you are trying the code and actually trying to learn by implementing. :)', 'timestamp': '1460668342136', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1460668342136#c2421180325868806771', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAQeo/f7nmpa1_dQ0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Apr 15, 2016, 2:12:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '6905524791919489909', 'body': 'Hey Mustafa, I wanted to know is there a way to know when was the blog last updated without getting rest huge data along in response. Though x26quot;max-resultx3d1x26quot; helps but still x26quot;categoryx26quot; in response is huge and is responsible for large size of response. How to solve this issue.', 'timestamp': '1465218600931', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1465218600931#c6905524791919489909', 'author': 'name': 'Chahit Kumar', 'avatarUrl': '//lh5.googleusercontent.com/-gts70aggd7c/AAAAAAAAAAI/AAAAAAAAAXQ/sTNLMUOmRP8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09553974895098811053', 'displayTime': 'Jun 6, 2016, 6:10:00 PM', 'deleteclass': 'item-control blog-admin pid-566057152', 'id': '800282349039654871', 'body': 'nice', 'timestamp': '1466162032591', 'permalink': 'https://www.mybloggertricks.com/2016/04/blogger-json-feed-api.html?showCommentx3d1466162032591#c800282349039654871', 'author': 'name': 'Anna', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/05734220215058808818', 'displayTime': 'Jun 17, 2016, 4:13:00 PM', 'deleteclass': 'item-control blog-admin pid-1119761311'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '1380393177742290379', 'feed': 'https://www.mybloggertricks.com/feeds/1380393177742290379/comments/default', 'authorName': 'M. Mustafa Ahmedzai', 'authorUrl': 'https://www.blogger.com/profile/11681339458447132019', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;
var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';
return entry.content.$t;
var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;
if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;
if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];
comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;
comments.push(comment);
return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();
window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length
Shakir HassanApr 12, 2016, 12:27:00 PM
Can I do guest posting for this website?
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiApr 15, 2016, 2:08:00 AM
Buddy we have stopped accepting guests posts since a year. We may allow it later this year when we feel we need help in posting
Delete
Chase MichaApr 14, 2016, 11:19:00 PM
media$thumbnail shows the first images only, is there a way to use the second image instead?
Thanks for the detailed information!
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiApr 15, 2016, 2:12:00 AM
Hi Micha,
media$thumbnail is an object and not an array so by mentioning an index [2] wont work. There is a easy work around which I already shared in this part of the series:
Display Posts by Label with 3rd Party Images
Simple replace this part of the code:
ListImage = json.feed.entry[i].content.$t.match(/src=(.+?[.jpg|.gif|.png]")/)[1]
with this
ListImage = json.feed.entry[i].content.$t.match(/src=(.+?[.jpg|.gif|.png]")/)[2]
What this code does that it will scan your entire post for images. It will pick all images from inside the post. You can then choose which image to display by mentioning the image index inside [*]
Let me know if you needed more help. I am glad you are trying the code and actually trying to learn by implementing. :)
Delete
Chahit KumarJun 6, 2016, 6:10:00 PM
Hey Mustafa, I wanted to know is there a way to know when was the blog last updated without getting rest huge data along in response. Though "max-result=1" helps but still "category" in response is huge and is responsible for large size of response. How to solve this issue.
ReplyDelete
AnnaJun 17, 2016, 4:13:00 PM
nice
ReplyDelete