Thursday, September 29, 2011

Techtive Blogger Template

Template Name: Techtive Blogger Template
By : www.freebloggertemplate.info
Download link: Click here

# SETUP TOP MENU NAVIGATION
Go to "Edit HTML" page
Search the codes like below
<ul id='pagenavigation'>
<li class='page_item'><a href='/'>Home</a></li>
<li class='page_item'><a href='#'>Categories</a>
<ul>
<li class='page_item'><a href='#'>SUB MENU</a></li>
<li class='page_item'><a href='#'>SUB MENU</a></li>
<li class='page_item'><a href='#'>SUB MENU</a></li>
</ul>
</li>
<li class='page_item'><a href='http://techtive-fbt.blogspot.com/p/about.html'>Test Static Page</a></li>
</ul>

Change "#" with your link anchor/url
Change "red text" with your text anchor

# SETUP CATEGORY MENU NAVIGATION
Go to "Edit HTML" page
Search the codes like below
<ul id='dmenu'>
<li class='cat-item'><a href='http://www.youtube.com'>Video</a>
<ul class='children'>
<li class='cat-item'><a href='http://www.youtube.com'>YouTube</a></li>

<li class='cat-item'><a href='http://www.metacafe.com'>Metacafe</a></li>
<li class='cat-item'><a href='http://www.dailymotion.com'>DailyMotion</a></li>
</ul>
</li>
<li class='cat-item'><a href='http://www.blogger.com'>Blog</a>
<ul class='children'>
<li class='cat-item'><a href='http://www.blogger.com'>Blogger</a></li>
<li class='cat-item'><a href='http://www.wordpress.com'>Wordpress</a></li>
</ul>
</li>
</ul>

Change "blue url" with your link anchor/url
Change "red text" with your text anchor

# SETUP SLIDE FEATURE
It's up to you want to use the slide feature or not. To add the slide feature, just go to "Page Elements", "Add a Gadget"(see picture below), choose "HTML/JavaScript", the copy the code below then paste it.
<div id="slider-wrapper">
<div id="slider">
<script style="text/javascript">
var showpostthumbnails_gal = true;
var showpostsummary_gal = true;
var random_posts = false;
var numchars_gal = 150;
var numposts_gal = 10;
function showgalleryposts(json) {
var numPosts = json.feed.openSearch$totalResults.$t;
var indexPosts = new Array();
document.write('<ul style="overflow:hidden;">');
for (var i = 0; i < numPosts; ++i) {
indexPosts[i] = i;
}
if (random_posts == true){
indexPosts.sort(function() {return 0.5 - Math.random()});
}
if (numposts_gal > numPosts) {
numposts_gal = numPosts;
}
for (i = 0; i < numposts_gal; ++i) {
var entry_gal = json.feed.entry[indexPosts[i]];
var posttitle_gal = entry_gal.title.$t;
for (var k = 0; k < entry_gal.link.length; k++) {
if ( entry_gal.link[k].rel == 'alternate') {
posturl_gal = entry_gal.link[k].href;
break;
}
}
if ("content" in entry_gal) {
var postcontent_gal = entry_gal.content.$t
}
s = postcontent_gal;
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 != "")) {
var thumburl_gal = d
} else var thumburl_gal = 'http://3.bp.blogspot.com/-P31NsA4q2JM/TnOBCJdtrUI/AAAAAAAABro/i9nt8wxvfz0/s1600/39130-bigthumbnail.jpg';
document.write('<li><div id="slide-container"><span class="slide-desc"><a href="' + posturl_gal + '"><h2 style="margin:10px 0px;">');
document.write(posttitle_gal + '</h2></a>');
var re = /<\S[^>]*>/g;
postcontent_gal = postcontent_gal.replace(re, "");
if (showpostsummary_gal == true) {
if (postcontent_gal.length < numchars_gal) {
document.write(postcontent_gal);
document.write('</span>')
} else {
postcontent_gal = postcontent_gal.substring(0, numchars_gal);
var quoteEnd_gal = postcontent_gal.lastIndexOf(" ");
postcontent_gal = postcontent_gal.substring(0, quoteEnd_gal);
document.write(postcontent_gal + '...');
document.write('</span>')
}
}
document.write('<a href="' + posturl_gal + '"><img src="' + thumburl_gal + '" width="640px"/></a></div>');
document.write('</li>');
}
document.write('</ul>');

}
</script>

<script style="text/javascript">
var numposts_gal = 6;
var numchars_gal = 300;
var random_posts = true; // random posts
</script>
<!-- replace with your web address (marked with red color) -->
<script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showgalleryposts&max-results=999999"></script>
</div>
</div>

Change "http://3.bp.blogspot.com/-P31NsA4q2JM/TnOBCJdtrUI/AAAAAAAABro/i9nt8wxvfz0/s1600/39130-bigthumbnail.jpg" with your own image url for default image slide if the post with no image.

"var numposts_gal = 6;" => Number of slide to show.
"var numchars_gal = 300;" => Number of characters of summary.
"var random_posts = true;" => set it "false" for recent post to show.
"/feeds/posts/default" => Show latest posts.
"/feeds/posts/default/-/YOURCATEGORY" => Show latest posts by category.

5 comments:

  1. the slider is not working!! pls help me!

    ReplyDelete
  2. Thanks-
    I have a Question ( i am sorry if my english not good )

    How can i remove the related post the end of my post ? i dont want it because it showing Undefine .. i have go to this forum(http://www.google.com/support/forum/p/blogger/thread?tid=70761362203f7de9&hl=en) and still not helped me . My blog example ( http://alwaysdejavu.blogspot.com/2011/12/magic-picture-how-many-people-did-you.html ) please help me sir :)

    Techtive Template

    ReplyDelete
  3. Great job im using it on my tempate ..Please Contact me i have an Offer For you :) caftan.me@gmail.com

    ReplyDelete