
04-11-2008, 01:18 AM
|
 |
Master Babbler
|
|
Join Date: Mar 2008
Posts: 107
|
|
Blogger Template Question
i was just looking for new template for my blog...i have found a template which exactly like Lisa's blog...i liked that template so i uploaded it. Lisa dont fire me
now i have few problem with this template. thinking Lisa can answer this....
on right side bar.....there is search & categories..but i want to add archives on this..lisa help pls. also i am unable to match background color..which is adsense
with template color.
it would be great help for me...thx in advance.
|

04-11-2008, 08:29 AM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
You must not have the same template because mine had archives already included. I certainly wouldn't have known how to code that myself. LOL
To find out what the background color is, look at the template's stylesheet. The background color will either be in the body or container section of the stylesheet.
I'm still not convinced you have the same template as me though.
|

04-11-2008, 08:31 AM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
I just checked your site and yes it does look very similar. Hmmmm.... that's weird. You're using WP Premium right?
|

04-11-2008, 08:32 AM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
Oh wait... you're using Blogger so that might be a difference. Did you find this template on a site for Blogger?
|

04-11-2008, 09:53 AM
|
 |
Master Babbler
|
|
Join Date: Mar 2008
Posts: 107
|
|
you are still not convinced  but this is a free template and believe me thousands of ppl r using this template on blogger platform.
yap..i found this template from a site....sorry for using this template but i really liked it.
|

04-11-2008, 02:21 PM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
But that's my point. It's not quite the same. The Blogger template is going to be configured a little differently than mine which is for WordPress. So even if I did know how to add the Archives, the instructions would be a little different because the code may not be compatible.
Unless, I'm mistaken I can't just give you the code on my template because it wouldn't work since we are using different platforms.
Granted, both blogs are run with PHP but I still don't believe you could just use my WordPress code. I'm not even sure I would know how to tell you to set this up since I don't know much about PHP.
Am I incorrect in this assumption? Anyone?
See, my template came with the Archives tab. I didn't have to add it.
|

04-11-2008, 07:09 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2007
Location: Canada
Posts: 1,169
|
|
Mind if I jump in.
I think you can create the archives tab in blogger, however, you can't use PHP, you have to use the blogger language.
I haven't done anything like this on my blog but you may need to do the following:
1. Create an archives widget to display the archives.
2. Wrap the widget in a DIV tag.
3. Create Javascript to display or hide the DIV tag when a visitor clicks on the Archives link.
I believe this is what needs to be done to get it to work. I haven't done it before, but I may try it out on my test site to see if it works.
|

04-11-2008, 08:34 PM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
Thanks TG! I was hoping someone with more technical knowledge would jump in 'cause I have no idea.
|

04-12-2008, 07:29 AM
|
 |
Master Babbler
|
|
Join Date: Mar 2008
Posts: 107
|
|
Wrong....TG... i tried what u have said...but it didnt work.
lisa...i know ur template came with 3 major tab. mine is 2. i think if u give me code of those 3 tab where is located... i can do the rest...as i know little bit
php,html,css.....still learning hard
lol..u r a professional webmaster...go learn all those things and help me out
|

04-12-2008, 08:48 AM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
Quote:
Originally Posted by KRH
lol..u r a professional webmaster...go learn all those things and help me out 
|
I never claimed that. And just for the record I'm an affiliate marketer. Big difference. I've never liked or claimed to be good at programming. Nor will I ever try to be.
Here's the code, but as TechieGuy said, how are you going to use PHP with Blogger? My blog calls up the below code by referencing a file called archives.php This is the contents of the file below.
PHP Code:
<?php get_header(); ?> <div id="content"> <!--the loop--> <?php if (have_posts()) : ?>
<h1 class="btmspace"> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <?php echo single_cat_title(); ?> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> Archive for <?php the_time('F jS, Y'); ?> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> Archive for <?php the_time('F, Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> Archive for <?php the_time('Y'); ?> <?php /* If this is a search */ } elseif (is_search()) { ?> Search Results <?php /* If this is an author archive */ } elseif (is_author()) { ?> Author Archive
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archives
<!--do not delete--> <?php } ?> </h1> <!--loop article begin--> <?php while (have_posts()) : the_post(); ?> <!--post title as a link--> <div class="comm"><span><?php comments_popup_link('0', '1', '%'); ?></span></div> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <!--Post Meta--> <div class="post-meta-top"> <div class="auth"><span>Posted by <strong><?php the_author_posts_link(); ?></strong></span></div> <div class="date"><span><?php the_time('F j, Y'); ?></span></div> </div> <div class="clearboth"></div> <!--optional excerpt or automatic excerpt of the post--> <?php the_excerpt(); ?>
<!--Post Meta--> <hr /> <!--one post end--> <?php endwhile; ?>
<!-- Previous/Next page navigation --> <div class="page-nav"> <div class="nav-previous"><?php previous_posts_link('Previous Page') ?></div> <div class="nav-next"><?php next_posts_link('Next Page') ?></div> </div> <!-- do not delete--> <?php else : ?>
Not Found
<!--do not delete--> <?php endif; ?> <!--archive.php end-->
</div> <!--include sidebar--> <?php get_sidebar();?> <!--include footer--> <?php get_footer(); ?>
Then my sidebar.php file references the archives.php file by using this code. This is what creates the archives tab.
Code:
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
I still don't get how you are going to make wordpress blog code compatible with Blogger. It's almost like trying to use Mac software on Windows... unless I'm missing something.
|

04-12-2008, 11:53 AM
|
 |
Master Babbler
|
|
Join Date: Mar 2008
Posts: 107
|
|
lol....lisa..i was just joking...i just tried to make u laugh as i like u very much.dont get me wrong darling.
thx u for giving me those code..lets see what can i do.
TechieGuy thx dude...i go check how to implement it. i have a question to ask..how can i add search button on right side in navigational/menu bar like ur blog if u dont mind...pls dont say little bit  or u going to make a post on it..do whatever u like i would follow u.
|

04-12-2008, 12:01 PM
|
 |
Administrator
|
|
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,268
|
|
Quote:
Originally Posted by KRH
lol....lisa..i was just joking...i just tried to make u laugh as i like u very much.dont get me wrong darling.
|
I figured were joking.  I just re-read my reply and realize it came off kinda cold. That's the problem with writing sometimes... no voice inflection. Hope you get your blog working.
|

04-13-2008, 11:06 AM
|
 |
Super Moderator
|
|
Join Date: Jul 2007
Location: Canada
Posts: 1,169
|
|
Maybe I will do a post on it in the future. For me, that is simply a Google search bar.
You may want to look at http://draft.blogger.com. This is the site where they test out Blogger enhancements, and you can use them for your blog as well.
There is a search widget included in the widgets on that site, that you can easily include in your blog just like the other widgets. Try it out. I will have a look at it on my development site and let you know how it goes as well.
I would definitely look at using that seach widget first.
|

04-14-2008, 02:01 AM
|
 |
Master Babbler
|
|
Join Date: Mar 2008
Posts: 107
|
|
i know about draft.blogger....but right now i dont want to use it. i wanna add adsense for search.
anyway thx for the information...
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 04:54 AM.
|
WB Sponsors
Profit Lance Review
Houston Web Design
Search Engine Optimization
flash chat
|