Lets start with its installation
Go to Layout > Edit HTML in your Blogger dashboard and check the "expand widget templates" box.
Find the closing
</head> tag in your blog template, and paste the following section of code immediately before it:<!-- JavaScript Posts Summaries -->
<script language='javascript' src='http://www.sigmirror.com/files/16723_kc9lz/jquery-1.2.3.pack.js' type='text/javascript'/>
<script language='javascript' src='http://www.sigmirror.com/files/16722_nbdvm/jquery.extractor.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function() {
$('.excerpt').expander({
slicePoint: 450, // default is 100
expandEffect: 'fadeIn',
expandText: '[...]', // default is 'read more...'
userCollapseText: '[^]' // default is '[collapse expanded text]'
});
});
</script>
<!-- End JavaScript Posts Summaries -->
Now, find this section of code (or similar) in your template:
<div class='post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
Replace this section of code in green with the following instead:
<b:if cond='data:blog.pageType != "item"'>
<div class='excerpt post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
<a expr:href="data:post.url">Read More..</a>
<b:else/>
<div class='post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
</b:if>
Now Preview the template you will see Read More... link below your each post like this in image below.

You can Now save Your template.
Now How to add Expand /Collapse hack Link below each Post If You not liked this Read more hack.
Now in the beggining you added the javascript codes before the
</head> tag in your blog template, Find that code i.e written below :-<script language='javascript' src='http://www.sigmirror.com/files/16722_nbdvm/jquery.extractor.js' type='text/javascript'/>
And replace it with this instead:
<script language='javascript' src='http://www.sigmirror.com/files/16742_fgkbf/jquery.expander.js' type='text/javascript'/>
I have only edited extractor.js to expander.js
Please Upload these scripts to your server and change the script links to yours as mine might not work because of exceeded bandwidth problems of my sever.
Now, find the below codes you have added before while going through this tutorial and delete the line in bold red..
<b:if cond='data:blog.pageType != "item"'>
<div class='excerpt post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
<a expr:href="data:post.url">Read More..</a>
<b:else/>
<div class='post-body entry-content'>
<data:post.body/>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>
</b:if>
Now Save and View Your blog. Posts will Look like this in image below.

You can click this link to expand or collapse the posts on that page itself without leaving that page as in read more case ypu are redirected to blo post link.
Some Tips.. About it..
1.You can use both read more.. and expnad collapse hack together also.Just use second tutorial and dont remove that read more line in red i exlained above and use expander.js script.
2.Its working in all browsers now as it has been fixed but can create problems sometimes if you are using so many scripts in your blog.
3.In the javascript codes you added at top there is a line like this slicePoint: 280.Now you can change that slice point from 100-1000 i.e upto from which % it should put your expand/collapse link or Read More.. link . Enjoy...This HAck
One More Important Tip :-- You can use any image Link instead of showing read more link also just In the codes above in red line written is read more..... just use embeded image link there and save it.
Image will be shown to click and read the post as check it here.
Source :- Blogger Buster



32 comments:
This is a good plugins for all blogger. I do have try it on my WP site. But, why I can not use it on my blogger. Is there any tips or trick? Tks.
Nops Buddy it works fine in blogger just simple steps written in my blog will do this.
You must be making some mistake in implementing it.
Nice blog! Hey can you message me and help me with the expandable hack on my blog please! I got banned for having too many infractons on Digital Point until April..
nice hack buddy... i want to talk to you abt blog promotions...please mail me at clwolvi@gmail.com
ya sure i will help you no problem friend.
Mail me at:anshulaffprg@gmail.com
Hi Anshul,
I tried applying the hack into my page but it doesn't work. Can you help me out with mine? http://richmondi.blogspot.com Thanks!
Thanks Anshul.
Works like charm.
Works almost perfectly!
Great job, but why when I use the collapse/expand function, after it expands, the words "undefined" appears?
Thanks a lot!
Can someone help me? After I implemented it, "read more" always appear under my posts (not in my decided location)...
your posts seem too small make it big and and hen alter slice point in script added in first stp which is 450 in my tutrial post reduce it to 100.
Not like other widgets, your Post "Expandable Post i.e Display Post Summary hack" if very good... its automatic when posing (new or older post), not like other widgets who must put HTML script on post template.
I recommend other blogger to use this good widgets, and my suggest to get the hi speed load (good for support netter with low speed connection), I recommend don't display all the post (display less than 10 post, if you have many long post with many picture) on the first homepage blog, and to display other post use recent post widgets who can display many of the post (more than 10), put the recent post in other location (side, up or bottom)
Once again Thanks very much for "Anshul" Blogger Widgets (anshuldudeja.blogspot.com)
Thanks for good widgets, its has no like other Expandable Post / Post Summary widgets. This one is good.
This hack is fantastic! This install was quick and easy and I can appreciate it being retroactive. My only concern is that it has greatly slowed down my loading speed. You mention uploading the scripts to my own server to speed them up, but I use blogger's hosting, so I am not sure how to add an additional scripts page.
Any suggestions?
Thanks again!
@ michael friend the script link that is .js file you are using of mine first of all please download them and then create account with geocities.com and upload that script there ,then take the script links from your account and replace it with mine.then it will work fast as script are now on your yahoo server which loads very fast
Thanks Anshul. I used many tricks you provided on your blog. Excellent!
Thanks Anshul.
I tried the Expander, and it works well. However, to reiterate what "AndyStorm" mentioned above, the word "undefined" pops up whenever I expand.
Do you have a fix/suggestion for this?
Many thanks in advance.
Please all of you leave your problem as on demo blog as i can suggest straight to solve the problem,it becomes easy to solve.
Looks like both your Expander and Extractor JS files are not working. I can't download them either - I get 403 error.
Maybe it is a problem with sigmirror.. because I can't even access www.sigmirror.com - I get 403 when I try to do that. In case you need my XML of my blog, you can find it in Rapidshare (http://rapidshare.com/files/234252344/AYFOT_Backup_-_18May09.xml)
Ya buddy i think sigmirror sevice has gone.Just check my post where to upload these .js files for you to upload it and give me some time to update the links to make you download.As this has created a lot problem for me as google pages and geocities too closed.
I'm getting the "undefined" problem too. It shows up right after you click the "read more" between the words.
@ andystorm,somewhere,SQT As all you said about undefined error in expandable /collapse codes,i checked about this error and will resolve as soon as possible.
Thanx for your valuable feedback..
thx for the wonderful hack, ive put it on www.nyonyakost.web.id
im using the Expand /Collapse hack, it changes the font size, doesnt it? if yes, how can i change it..
@decogzz no i dont think it chnages font.
ive found an easy fix for "undefined" in expandible posts
delete the 2 lines that contains
div style clear both clear for photos floats
worked for me
Hi Anshul,
The files are removed from your sigmirror it seems :(
Can't access them anymore. Can you please email the "Extractor.JS" file to me? I will upload it to my account.
Thanks!
how to add read more in sidebar?pl guide.
Great script! After I've tried many others without success, finally this worked!!! Thanks :)
Hey great script man,
But the files are missing... Where can we find them and upload them to our own servers? Can you guide us please?
@hamza ya files are missing me too have to find but this hack has become too old now use other latest hacks.
Post a Comment