Expandable Posts Hack

This item was filled under [ News ]

I get a lot of mails daily from those who wanna know expandable posts hack for blogger, the hack i use is simple and now i will teach you how to do this thanks to Ramani.
1. Find the

</head>

tag in your template and add all the code from this page before it.

2. Find this div for the post-body and add the portion of code in red color.

   <div class='post-body'  expr:id='"post-" + data:post.id' >

     <b:if cond='data:blog.pageType == "item"'>
        <style>#fullpost{display:inline;}</style>
        <p><data:post.body/></p>
     <b:else/>
        <style>#fullpost{display:none;}</style>

        <p><data:post.body/></p>

       <span id='showlink'>
        <a expr:href='data:post.url'>Read More......</a>
       </span>
       <script type='text/javascript'>
         checkFull("post-" + "<data:post.id/>");
       </script>
     </b:if>

     <div style='clear: both;'/> <!-- clear for photos floats -->
   </div>

3. Goto Settings->Formatting and at the bottom, you will find the text box provided to specify the “Post template”. Copy/paste these lines into that text box and save the settings. (Please DON’T type these lines yourself because you might introduce some spaces that will break the functionality)

Type your summary here
<span id=”fullpost”>
Type rest of the post here
</span>

If you create a new post now, it shows you clearly where to type the summary and where to add the rest of the post. Please note that you could also divide some or all of your old posts into summary and full post by editing them. The “Read more” link will appear only for the posts that have been divided like this.

Note 1: If you are not able to find the lines to change, you may not have expanded the template. Select the checkbox named “Expand Widget Templates”, which is right above the template code, to expand it into more code.
Note 2: If you click “Older posts” link, the “Read more” link may appear even for the posts which you haven’t divided into summary and full post. This is a known problem which we haven’t solved yet.

You may like these

  • No Related Post
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

20 Comments on “Expandable Posts Hack”

  • Mozzy
    7 July, 2008, 19:40

    Hi! I try but blogger give me an error…
    i don’t understand why…

  • Gosu
    7 July, 2008, 21:44

    tell me the error so i cn help you

  • Mozzy
    8 July, 2008, 11:19

    I think yesterday was o blogger’s problem. I try again today and it’s ok!
    Thank’s!!!

  • Mozzy
    8 July, 2008, 11:41

    I’m going crazy!! Today blogger don’t give me an error and i save whithout problem. But when i go to my blog i see all the template broken, i don’t explain in English, if you see my blog you understand:
    http://comedovequandoguadagnareconinternet.blogspot.com/
    If you want, answer here:
    enricomaggio@gmail.com

    Thank’s!!

  • Gosu
    8 July, 2008, 13:25

    mozzy email me your blogger email and password , i ll fix your problem.

  • Orkut Guide | Tips and Tricks | Scripts | Themes | Music Scraps | Graphics | Proxy | Flodder | Oriya Scraps | Oriya Songs
    8 July, 2008, 14:39

    hey, this is not working with me. I did everything as it was explained, and also we both are using the same template. Then why it’s not working with me?

    my link is –> http://orkut-guide.blogspot.com

  • Gosu
    8 July, 2008, 14:58

    there must be something you missed , check tips again ..

  • Orkut| Music Scraps | Graphics | Proxy | Flodder | Oriya Scraps | Oriya Songs
    8 July, 2008, 15:10

    ^ no gosu, I did everything right. Still thats not happening? I rechecked those things several times, but allas! that’s not working dude!

    and also I tried ur method to add a logo. but my site’s description is showing up there in front of my logo. What to do on that?

  • Gosu
    8 July, 2008, 15:16

    i used this trick and it worken on me , i will put alternative tricks for your situation wait a min ,

    edit html , find div id=”header”

    and delete the blogger codes after that line

  • Orkut Tricks | Odia Scraps | Orkut Proxy
    8 July, 2008, 15:16

    check my template here –> http://jingles.njoy.googlepages.com/mytemplate.txt
    it’s done as you said. Still the problem is there…

  • Oriya Orkut Scraps | Odia Orkut Scraps
    8 July, 2008, 16:06

    check my mail dear!

  • Lisa (LGMB)
    11 July, 2008, 22:16

    I tried this hack too but no luck. I pasted the code before the head and after the post body section, and saved template.

    Then went to settings, formatting, and pasted the post template code, and saved.

    When I clicked new post, I saw the code in there but when I type a post it just doesn’t do what it’s supposed to do. Wierd :)

  • boss
    20 July, 2008, 22:49

    It doesnt work for me.I always get an error message.Can you message me?pls

  • Gosu
    20 July, 2008, 22:50

    what does it say ?

  • 17 September, 2008, 9:41

    co-sign on that error message, unfortunately :(

  • 19 September, 2008, 7:16

    so… can i expect some help / support??

  • 5 October, 2008, 0:24

    Hi, I fixed problem with this hack. The script in head should look like this.
    And the part in body like this.
    If you are writing a post, use:
    Type your summary here

    Type rest of the post here

    What’s the point? I changed every “id” to “class” (and also “#” to “.”) and a part in is not necessary.

    I don’t understand it, but it works O:)

  • 5 October, 2008, 0:28

    Edit (some words are missing :) ):
    If you are writing a post, use:

    Type your summary here

    Type rest of the post here


    What’s the point? I changed every “id” to “class” (and also “#” to “.”) and a part in is not necessary.

    I don’t understand it, but it works O:)

    P.S.: You should allow your readers to edit their commenst ;)

  • 5 October, 2008, 0:32

    Second edit:
    Still there are some missing sentences, so I use “[ ]” at the place of “”. Hope, you will understand:

    And when you are writing the post, use:

    Type your summary here
    [span class=”fullpost”]
    Type rest of the post here
    [/span]

    What’s the point? I changed every “id” to “class” (and also “#” to “.”) and a part in [div class=post-body] is not necessary.

    P.P.S.: Gosu, at least you should allow to preview the post :D

Trackbacks

  1. 15 Useful Hack & Widgets for Blogger « BLOGGER ONLINE

Leave a Comment