Excellent Magazine Style Blogger Template "Falkner Press"

abufarhan

User avatar

Posts: 41

Joined: Thu Jul 16, 2009 7:04 am

Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)

Post Thu Jul 16, 2009 9:15 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

oo , Oke I'm sorry, I'm not checked the file only check xml file, Thanks for complete resource
Thanks for quick response, I'll like this forum because the owner directly reply, and I like your blog.

Re: Excellent Magazine Style Blogger Template "Falkner Press"


CyberDonkey

Posts: 13

Joined: Sun Jun 28, 2009 3:49 pm

New to the Forum

Post Thu Jul 16, 2009 12:10 pm

Re: Excellent Magazine Style Blogger Template "Falkner Press"

Switcher wrote:drewski1k,

I think I see what the issue is with your template.

The file you have hosted on Google Sites is a single line, that won't work.

The txt/javascript file needs to be like this.

  Code:
function removeHtmlTag(strx,chop){
   var s = strx.split("<");
   for(var i=0;i<s.length;i++){
      if(s[i].indexOf(">")!=-1){
         s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
      }
   }
   s =  s.join("");
   s = s.substring(0,chop-1);
   return s;
}

function showrecentposts(json) {
   document.write('<table width="'+tablewidth+'" border=0 bordercolor="#FF0000" cellspacing="'+cellspacing+'" bgcolor="'+borderColor+'" align="center">');
   j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
   img  = new Array();

     for (var i = 0; i < numposts; i++) {
       var entry = json.feed.entry[i];
       var posttitle = entry.title.$t;
      var pcm;
       var posturl;
       if (i == json.feed.entry.length) break;
       for (var k = 0; k < entry.link.length; k++) {
            if (entry.link[k].rel == 'alternate') {
              posturl = entry.link[k].href;
              break;
            }
       }
      
      for (var k = 0; k < entry.link.length; k++) {
            if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {
              pcm = entry.link[k].title.split(" ")[0];
              break;
            }
       }
      
       if ("content" in entry) {
            var postcontent = entry.content.$t;}
       else
       if ("summary" in entry) {
            var postcontent = entry.summary.$t;}
       else var postcontent = "";
       
       postdate = entry.published.$t;
   
   if(j>imgr.length-1) j=0;
   img[i] = imgr[j];
   
   s = postcontent   ; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);

   if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;

   cmtext = (text != 'no') ? '<i><font color="'+acolor+'">('+pcm+' '+text+')</font></i>' : '';


   var month = [1,2,3,4,5,6,7,8,9,10,11,12];
   var month2 = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];

   var day = postdate.split("-")[2].substring(0,2);
   var m = postdate.split("-")[1];
   var y = postdate.split("-")[0];

   for(var u2=0;u2<month.length;u2++){
      if(parseInt(m)==month[u2]) {
         m = month2[u2] ; break;
      }
   }

   var daystr = (showPostDate) ? '<i><font color="'+acolor+'"> - ('+day+ ' ' + m + ' ' + y + ')</font></i>' : "";

posttitle = (aBold) ? "<b>"+posttitle+"</b>" : posttitle;

   var trtd = '<tr><td valign="top" width="'+imgwidth+'" height="'+imgheight+'" style="background:'+bgTD+'"><a href="'+posturl+'"><img src="'+img[i]+'" width="'+imgwidth+'" height="'+imgheight+'"/></a></td><td style="background:'+bgTD+'" valign="top">'+icon+'<a href="'+posturl+'" style="color:'+acolor+'; font-size:'+fntsize+'px;">'+posttitle+'</a><br /> '+cmtext+ ' ' + daystr + '<div style="color:'+summaryColor+'; margin-top:2px; border-top:1px '+borderColor+' solid; font-size:'+summaryFontsize+'px;">'+icon2+removeHtmlTag(postcontent,summaryPost)+'...</div></td></tr>';

   if(summaryPost == 0) { trtd = '<tr><td valign="top" width="'+imgwidth+'" height="'+imgheight+'" style="background:'+bgTD+'"><a href="'+posturl+'"><img src="'+img[i]+'" width="'+imgwidth+'" height="'+imgheight+'"/></a></td><td style="background:'+bgTD+'" valign="top">'+icon+'<a href="'+posturl+'" style="color:'+acolor+'; font-size:'+fntsize+'px;">'+posttitle+'</a><br /> '+cmtext+ ' ' + daystr + '</td></tr>'; }

   document.write(trtd);

   j++;
}

document.write('</table>');
}
document.write("<script src=\""+home_page+"feeds/posts/default?max-results="+numposts+"&orderby=published&alt=json-in-script&callback=showrecentposts\"><\/script>");


I see, makes sense... But how do you add spaces to it? I'm not good with HTML, and each time I upload the files to google, it will always end up as a line.

Switcher

User avatar

Posts: 305

Joined: Sat May 09, 2009 3:19 pm

Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)Knows what he is doing ;)

Post Thu Jul 16, 2009 2:47 pm

Re: Excellent Magazine Style Blogger Template "Falkner Press"

I see, makes sense... But how do you add spaces to it? I'm not good with HTML, and each time I upload the files to google, it will always end up as a line.



Good point, sometimes when you copy & paste code (html/javascript) it will try & put all the code on a single line.

A very easy step to correct this problem is to follow these steps:

1) Copy this code (right click -> Copy)

  Code:
function removeHtmlTag(strx,chop){
   var s = strx.split("<");
   for(var i=0;i<s.length;i++){
      if(s[i].indexOf(">")!=-1){
         s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
      }
   }
   s =  s.join("");
   s = s.substring(0,chop-1);
   return s;
}

function showrecentposts(json) {
   document.write('<table width="'+tablewidth+'" border=0 bordercolor="#FF0000" cellspacing="'+cellspacing+'" bgcolor="'+borderColor+'" align="center">');
   j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0;
   img  = new Array();

     for (var i = 0; i < numposts; i++) {
       var entry = json.feed.entry[i];
       var posttitle = entry.title.$t;
      var pcm;
       var posturl;
       if (i == json.feed.entry.length) break;
       for (var k = 0; k < entry.link.length; k++) {
            if (entry.link[k].rel == 'alternate') {
              posturl = entry.link[k].href;
              break;
            }
       }
     
      for (var k = 0; k < entry.link.length; k++) {
            if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {
              pcm = entry.link[k].title.split(" ")[0];
              break;
            }
       }
     
       if ("content" in entry) {
            var postcontent = entry.content.$t;}
       else
       if ("summary" in entry) {
            var postcontent = entry.summary.$t;}
       else var postcontent = "";
       
       postdate = entry.published.$t;
   
   if(j>imgr.length-1) j=0;
   img[i] = imgr[j];
   
   s = postcontent   ; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);

   if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;

   cmtext = (text != 'no') ? '<i><font color="'+acolor+'">('+pcm+' '+text+')</font></i>' : '';


   var month = [1,2,3,4,5,6,7,8,9,10,11,12];
   var month2 = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];

   var day = postdate.split("-")[2].substring(0,2);
   var m = postdate.split("-")[1];
   var y = postdate.split("-")[0];

   for(var u2=0;u2<month.length;u2++){
      if(parseInt(m)==month[u2]) {
         m = month2[u2] ; break;
      }
   }

   var daystr = (showPostDate) ? '<i><font color="'+acolor+'"> - ('+day+ ' ' + m + ' ' + y + ')</font></i>' : "";

posttitle = (aBold) ? "<b>"+posttitle+"</b>" : posttitle;

   var trtd = '<tr><td valign="top" width="'+imgwidth+'" height="'+imgheight+'" style="background:'+bgTD+'"><a href="'+posturl+'"><img src="'+img[i]+'" width="'+imgwidth+'" height="'+imgheight+'"/></a></td><td style="background:'+bgTD+'" valign="top">'+icon+'<a href="'+posturl+'" style="color:'+acolor+'; font-size:'+fntsize+'px;">'+posttitle+'</a><br /> '+cmtext+ ' ' + daystr + '<div style="color:'+summaryColor+'; margin-top:2px; border-top:1px '+borderColor+' solid; font-size:'+summaryFontsize+'px;">'+icon2+removeHtmlTag(postcontent,summaryPost)+'...</div></td></tr>';

   if(summaryPost == 0) { trtd = '<tr><td valign="top" width="'+imgwidth+'" height="'+imgheight+'" style="background:'+bgTD+'"><a href="'+posturl+'"><img src="'+img[i]+'" width="'+imgwidth+'" height="'+imgheight+'"/></a></td><td style="background:'+bgTD+'" valign="top">'+icon+'<a href="'+posturl+'" style="color:'+acolor+'; font-size:'+fntsize+'px;">'+posttitle+'</a><br /> '+cmtext+ ' ' + daystr + '</td></tr>'; }

   document.write(trtd);

   j++;
}

document.write('</table>');
}
document.write("<script src=\""+home_page+"feeds/posts/default?max-results="+numposts+"&orderby=published&alt=json-in-script&callback=showrecentposts\"><\/script>");


2) Paste the code into Windows Notepad, when you paste the code into Notepad it should keep it's text format (multi line).

3) Now still inside Windows Notepad, save the file to your desktop etc... (File -> Save As...)


NOTE:
That should fix the txt/javascript file so the code isn't on a single line.
I used Windows Notepad because it's easy to work with & won't mess with the text format, don't use programs like Windows Wordpad

Kranthi

User avatar

Site Admin

Posts: 195

Joined: Wed May 06, 2009 7:11 pm

Blogging MasterBlogging MasterBlogging MasterBlogging MasterBlogging MasterBlogging MasterBlogging Master

Post Thu Jul 16, 2009 4:43 pm

Re: Excellent Magazine Style Blogger Template "Falkner Press"

why are you guys copying and pasting the javascript codes..? I included those original javascript files in the download file itself.. No one bother about them..? :D

CyberDonkey

Posts: 13

Joined: Sun Jun 28, 2009 3:49 pm

New to the Forum

Post Fri Jul 17, 2009 12:54 pm

Re: Excellent Magazine Style Blogger Template "Falkner Press"

Kranthi wrote:why are you guys copying and pasting the javascript codes..? I included those original javascript files in the download file itself.. No one bother about them..? :D


The code, when uploaded, always ends up as a single line causing the script to fail.

michaeldancrest

Posts: 1

Joined: Sat Jul 18, 2009 12:30 am

New to the Forum

Post Sat Jul 18, 2009 12:35 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

Hi. I saw that you will make a custom logo? Can you do Michael Dancrest for me please? Thanks. :thumbup:

CyberDonkey

Posts: 13

Joined: Sun Jun 28, 2009 3:49 pm

New to the Forum

Post Sat Jul 18, 2009 7:53 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

Hi,

I would like to correct myself on my previous post. Apparently, the file do not transform into a straight line when uploaded, however, it was already a straight line to begin with. As said by Switcher, single line codes won't work (which even someone like me who isn't good at HTML would understand why).

Although I have fixed my .txt file for recentposts, I would like to request the HTML for mootools this time (with spacings of course).

roshanjaswal

Posts: 1

Joined: Mon Jul 20, 2009 5:35 am

New to the Forum

Post Mon Jul 20, 2009 5:38 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

Please make my name logo thanks.

ROSHAN JASWAL VIKSHIPT

mukh17

Posts: 1

Joined: Mon Jul 20, 2009 7:15 am

New to the Forum

Post Mon Jul 20, 2009 7:21 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

what this template work in all browser??

rohan1202

Posts: 1

Joined: Mon Jul 20, 2009 9:44 am

New to the Forum

Post Mon Jul 20, 2009 9:50 am

Re: Excellent Magazine Style Blogger Template "Falkner Press"

hello dear :thumbup:

My blog address is http://bollywoodhotwallpapers.blogspot.com/ .Sir I could not manage to create the logo in your falknerpress theme.Sir could you create the logo for me?
My email-subhasish@1202@gmail.com
Thanks
PreviousNext


Related Topics


Return to Blogger Templates

Home | Privacy Policy | Contact us | Blogger Templates |
© 2009-10 Blogger Forum. All rights reserved.