Showing posts with label read. Show all posts
Showing posts with label read. Show all posts
Saturday, March 4, 2017
Auto Read More Button With Thumbnails For Blogger
Auto Read More Button With Thumbnails For Blogger
By default on blogger you have the option to add a jump break to your blog post, Using this option blogger displayed only a part of your posts on index pages and the link to read the full post will be below. This is a conventional read more option provided by blogger in post editor. In this conventional read more hack, every time you need to insert code in post.

In todays post we will share auto read more hack with thumbnail for blogger blog, This script will automatically create post summaries with thumbnail. You dont need to add any extra code in every blogger post and if you insert image, it appears thumbnail.
Applying Auto Read More
- Go to Design > edit HTML
- Backup your template
- Tick on "Expand Widget Templates"
- In the code window Find this code..
<data:post.body/>
- Replace with this code below,
<b:if cond=data:blog.pageType == "static_page">
<data:post.body/>
<b:else/>
<b:if cond=data:blog.pageType != "item">
<div expr_id="summary" + data:post.id><data:post.body/></div>
<script type=text/javascript>createSummaryAndThumb("summary<data:post.id/>");
</script> <span class=rmlink style=float:right;padding-top:20px;><a expr_href=data:post.url>Read more...</a></span>
</b:if>
<b:if cond=data:blog.pageType == "item"><data:post.body/></b:if>
</b:if>
<data:post.body/>
<b:else/>
<b:if cond=data:blog.pageType != "item">
<div expr_id="summary" + data:post.id><data:post.body/></div>
<script type=text/javascript>createSummaryAndThumb("summary<data:post.id/>");
</script> <span class=rmlink style=float:right;padding-top:20px;><a expr_href=data:post.url>Read more...</a></span>
</b:if>
<b:if cond=data:blog.pageType == "item"><data:post.body/></b:if>
</b:if>
- Now, search for </head> and paste the following section of code immediately before it:
<script type=text/javascript>var thumbnail_mode = "no-float" ;
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 100;
img_thumb_width = 120;
</script>
<script type=text/javascript>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
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);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!= && strx.indexOf( ,chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+...;
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = <span style="float:left; padding:0px 10px 5px 0px;"><img src="+img[0].src+" width="+img_thumb_width+px" height="+img_thumb_height+px"/></span>;
summ = summary_img;
}
var summary = imgtag + <div> + removeHtmlTag(div.innerHTML,summ) + </div>;
div.innerHTML = summary;
}
//]]>
</script>
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 100;
img_thumb_width = 120;
</script>
<script type=text/javascript>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
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);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!= && strx.indexOf( ,chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+...;
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = <span style="float:left; padding:0px 10px 5px 0px;"><img src="+img[0].src+" width="+img_thumb_width+px" height="+img_thumb_height+px"/></span>;
summ = summary_img;
}
var summary = imgtag + <div> + removeHtmlTag(div.innerHTML,summ) + </div>;
div.innerHTML = summary;
}
//]]>
</script>
Customizing the code above :
You can customize the Read more option by changing the value of the variables below:
- If you want to change image thumbnail size then find these numbers 100 and 120
- To change post cut height without image find these line of code - summary_noimg = 430;
- To change post cut height with image find these line of code - summary_img = 340;
Available link for download
Thursday, March 2, 2017
Are You What You Read or Do You Read What You Are
Are You What You Read or Do You Read What You Are
The environment plays a significant role in our health. We are exposed to multiple physical, chemical and biological challenges, including information - like news and gossip stories related to health and wellness. How exactly is it affecting us?
University of Pennsylvania researchers surveyed over two thousand US adults 40 to 70 years of age on how they scanned for information about specific health behaviors. The researchers followed up one year later to see how participants behaviors changed. The result? Consumption of health information does affect specific behaviors. But the effect is not as straightforward or as strong as one might think.
As was shown earlier, people who seek information about particular health issues are typically in the middle of making a decision, and need information to ease anxiety or reinforce confidence in their already made decision. The recent study also shows that people already motivated to change their behavior may be more motivated to scan information about this change of behavior. But exposure to information might not be helpful if they have not made a decision yet.
For example, women actively scanning information about breast cancer after getting a mammogram are more likely to get another one next year compared to those who consume the same amount of information but have not made up their mind about getting a mammogram yet. People that exercise and eat healthy are more likely to continue doing so one year later than those not adhered to healthy behaviors yet, despite the same amount of health-related information consumed during the past year.

Online content discovery platform Outbrain did their own research and found similar if not more dramatic results. Analysis based on total U.S. page views across Outbrains network of 100,000+ publisher sites during the month of June 2013 as well as data from the external sources is captured on the figure. Surprised? Health content consumption actually positively correlates with unhealthy weight.
The more obese people live in the region, the more they read online about health. Reading a lot about jobs does not lower unemployment rates either. Information about relationships does help to avoid divorce though. So reading can be good for you. But not sufficient. After all, it was Albert Einstein who said - Any man who reads too much and uses his own brain too little falls into lazy habits of thinking.
REFERENCES
Hornik R, Parvanta S, Mello S, Freres D, Kelly B, & Schwartz JS (2013). Effects of Scanning (Routine Health Information Exposure) on Cancer Screening and Prevention Behaviors in the General Population. Journal of health communication PMID: 24083417
Bennett, A. 7 Surprising (or not?) Facts about the Content Americans Consume. Outbrain blog. October 16, 2013
University of Pennsylvania researchers surveyed over two thousand US adults 40 to 70 years of age on how they scanned for information about specific health behaviors. The researchers followed up one year later to see how participants behaviors changed. The result? Consumption of health information does affect specific behaviors. But the effect is not as straightforward or as strong as one might think.As was shown earlier, people who seek information about particular health issues are typically in the middle of making a decision, and need information to ease anxiety or reinforce confidence in their already made decision. The recent study also shows that people already motivated to change their behavior may be more motivated to scan information about this change of behavior. But exposure to information might not be helpful if they have not made a decision yet.
For example, women actively scanning information about breast cancer after getting a mammogram are more likely to get another one next year compared to those who consume the same amount of information but have not made up their mind about getting a mammogram yet. People that exercise and eat healthy are more likely to continue doing so one year later than those not adhered to healthy behaviors yet, despite the same amount of health-related information consumed during the past year.

Online content discovery platform Outbrain did their own research and found similar if not more dramatic results. Analysis based on total U.S. page views across Outbrains network of 100,000+ publisher sites during the month of June 2013 as well as data from the external sources is captured on the figure. Surprised? Health content consumption actually positively correlates with unhealthy weight.
The more obese people live in the region, the more they read online about health. Reading a lot about jobs does not lower unemployment rates either. Information about relationships does help to avoid divorce though. So reading can be good for you. But not sufficient. After all, it was Albert Einstein who said - Any man who reads too much and uses his own brain too little falls into lazy habits of thinking.
REFERENCES
Hornik R, Parvanta S, Mello S, Freres D, Kelly B, & Schwartz JS (2013). Effects of Scanning (Routine Health Information Exposure) on Cancer Screening and Prevention Behaviors in the General Population. Journal of health communication PMID: 24083417
Bennett, A. 7 Surprising (or not?) Facts about the Content Americans Consume. Outbrain blog. October 16, 2013
Available link for download
Subscribe to:
Posts (Atom)