Showing posts with label Blog Tips. Show all posts
Showing posts with label Blog Tips. Show all posts

Creating pagination links on Classic Templates

/ Thursday, September 1, 2011 /
Option 1: Fully-customizable pagination links
This option allows you to completely customize the language of your pagination links to your liking. Simply add the following lines of code right after the [/blogger]and before the [/div][/div][/div] tags:

Remember to replace the Older Posts / Newer Posts text with your preferred text. After you've added the code, save your changes and you are all set!

Option 2: Simpler, automatically-translated pagination links
This option involves less code, and automatically generates Older Post / Newer Post links which will be translated to the language chosen in your blog's settings. For this option you'll only need to add one line of code. Again, it's right after the [/blogger] and before the [/div][/div][/div] tags:

From here you just need to save your changes, and then you are finished.

source: http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=179920

JavaScript Encryption and Decryption

/ Saturday, August 20, 2011 /
Visit this site to encrypt posts: http://www.vincentcheung.ca/jsencryption/?text=%0A
The instructions in how to use are here: http://www.vincentcheung.ca/jsencryption/instructions.html

Basically:

Add MP3 Audio to Blog

/ Saturday, June 25, 2011 /


width : width of the music player
height: height of the music player
autostart : you want the music to start playing automatically (values : false or true)
MUSIC FILE URL : the direct link to your music file

Energy Saving Mode Blogs

/ Saturday, April 30, 2011 /
http://www.onlineleaf.com/ is a project for green websites.

To add energy saving mode onto blogs, following the head tag  add

Tumblr Dashboard Themes

/ Sunday, April 3, 2011 /
Visit http://userstyles.org/styles/browse/tumblr.com

It uses Stylish or Greasemonkey

Pop-Up Image Viewer

/ Monday, March 28, 2011 /
Yay!! I'm so happy in finding out how to have pop-up image viewer on my blog just like allkpop =D Got the info from here: http://www.bloggerplugins.org/2009/08/light-box-image-viewer-for-blogger.html

Though there are still two problems: 1) the original photos in my post still takes up so much space. >___<;  Maybe I should add the read more function on this blog too. 2) it's all manual so it takes forever to code the photos for the pop-up image viewer @_@ bleh.

Code for a navbar on blog!

/ /


Go to layout on Blog.
To add a gadget.
Add a HTML/Javascript.
Enter the code above.
Change the desired urls and title.

Hide/Encrypt Posts in Blogger

/ Monday, November 1, 2010 /
Update: follow instructions here; encrypt here
-----------------------------------------------------------------------------------------------------------
First, you have to edit your blogger template. Go to Layout >>>>>Edit HTML and find [/head]. If you can't find it, mark the box "Expand Widget Templates". Then paste this code BEFORE the [/head].



Next, you need to encrypt your post and put it in your post. Go to this page, insert your desired key (which will act as the password) and also the text that you want to keep hidden. Press the [Encrypt] button and copy the encrypted text in the red/pink box.

Choose a unique_name and paste the text you copied from the pink/red box into PASTE_ENCRYPED_TEXT_HERE. Make sure the unique_name is same for both lines of the code below.

[a href="javascript:Decrypt_text('unique_name',%20'PASTE_ENCRYPED_TEXT_HERE');"]Show encrypted text[/a]

[div id="unique_name"]
[/div]

example: http://encrypted-blogger-post.blogspot.com/
**change [] to <>**
source: http://forum.lowyat.net/topic/690621

Setup and configuration for New Blogger Tag Cloud / Label Cloud

/ Friday, August 28, 2009 /
Here is the code and setup information to use the Label Cloud in New Blogger.

First you obviously have to have a blog on New Blogger, and you MUST be using the layouts templates, (this isn't available for classic templates, or FTP published blogs ) and you must have some posts labeled already. (There needs to be at least ONE label with more than ONE entry or the scripts hit a bug - so have at least one label with more than one entry before starting).

Make sure you backup your template before making any changes!

Log into Blogger and go to your layouts section. On the 'Page Elements' setup page make sure you have a label widget already installed where you want it (it can be moved around later). Then go to the Edit HTML settings and leave the widgets NOT exapanded. It will make things easier to deal with.

Now the code comes in 3 parts. A section for the stylesheet, a configurations section, and then the actual widget itself.

The first part to put in is the stylesheet section. The following code needs to be copied and inserted into your stylesheet, which in the layouts is marked out by the tags.
Easiest thing to do is find the closing skin tag

]]>


and place the code right BEFORE that. Here it is, copy and paste without modification right now. I'll explain what can be tweaked later.



This next section is the configuration section for the Cloud. It also goes in the head of the template, but outside of the stylesheet part. Easiest thing to do again is to find the closing stylesheet tag

]]>

But this time place the code right AFTER that line, but BEFORE the tag. Here it is.



All of these settings can be changed but I'll explain them in a moment. The defaults will work for now.

Now the widget itself. Scroll down and find the label widget in your sidebar. It should look
something like this.

Copy the following code (from beginning widget tag to ending widget tag) and replace
the line above with it.



Now if all has gone well, and you have posts already labeled, then if you preview the blog you should see some form of the Cloud appearing. If it doesn't appear, then somethingwent wrong. You should probably back out and try it again from the start.

Update : I've found 2 things to check for first if the label cloud isn't showing. First make sure that at least one of your labels has more than one entry. A bug in the script causes it to fail when all the labels have only one entry.(As soon as any label has more than one entry, then it should be ok from then on) Also, make sure that none of your labels contain quote marks " . Apostrophes or single ticks ' are ok. ------

Most likely the cloud with it's default settings won't be what you ultimately want. But all the colors and sizes are configurable to match your tastes. If the cloud is appearing in preview then you can go about changing some of the variables so they suit.

The settings in the Variables section will be where you make most of your adjustments. Here I'll explain what each setting does.

var cloudMin= 1;

This setting you can use to limit the number of labels shown (for example if you have a lot of labels). Leave the setting at 1 to show ALL labels. If you enter in a higher number, then only labels that have at least that number of entries will appear in the cloud.

var maxFontSize = 20;
var maxColor = [0,0,255];
var minFontSize = 10;
var minColor = [0,0,0];
var lcShowCount = false;

The lines for

maxFontSize
maxColor

do what you may think they do. The first one sets the size (in pixels) of the label with the most amount entries. The maxColor sets the color of that entry (in RGB format).

Similar with the next two

minFontSize
minColor

Just these are for the label with the least amount of entries. Again the size is in pixels, the color is in RGB format. Any labels between the two will get their color/sizes based on how many labels they are, and where their entry count falls, giving the much desired cloud effect.

From my experimenting, there are many factors that make up a pleasant looking cloud. From color/size choice, to the number of actual labels, to how well dispersed the entries are among the labels. 3 Labels don't make a good cloud as there isn't much to work with. You just have
to experiment around to see what looks good with your setup.

IMPORTANT, when change the color settings, Keep them in the format supplied. In between the [] and the numbers separated by commas. The default colors are BLUE for the max and BLACK for the min. You can select any valid RGB color combination. If you don't know what RGB colors are, don't worry. It's just a way of defining a color. You can use many charts on the Internet to get the correct RGB value for the color you want to try.

Remember, if you get the 3 sets of numbers to enter them in correctly. Inside the [ ] separated by commas.

Also experiment with different font sizes. Again it depends on how many entries, how dispersed
they are, and how much room for the cloud is available as to what looks good.

The last variable there is

lcShowCount

This can either be false (default) or true. All this does is turn off/on the post count displayed next to the label. Usually in a 'traditional' cloud the count isn't used. But if you go to a 'flat' listing then it's sometimes useful to turn it on.

Now to the CSS section. Most people won't need to tweak these much, and it's not necessary to
understand what all those entries are for. Most are just to make sure that other styling elements from the rest of your page don't inherit in and ruin the cloud. But there are a few
that you may want to change to suit.

The first line

#labelCloud {text-align:center;font-family:arial,sans-serif;}

You could change the fonts used in the cloud here if you wanted.
Also, the text-align statement can also be changed. I have it set to center by default but you could use

text-align:justify;
text-align:right;
text-align:left;

If those suit better.

The next line

#labelCloud .label-cloud li{display:inline;background-image:none!important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}

Well don't worry about most of it unless you are a hardcore CSS'er. The only one of real importance is the first entry

display:inline;

You can change that to

display:block;

To get the 'Flat' (each entry on it's own separate line) listing of the weighted entries.
Usually if that is set to block you would probably want to change the sort frequency from alphabetical to frequency. You do that by editing the widget from the Page Elements tab in Blogger.

And the last bit I'll mention is the line

#labelCloud .label-count

If you set the lcShowCount variable to true to show the post counts, you could change the color/size of those numbered entries with that line.

source: http://phy3blog.googlepages.com/Beta-Blogger-Label-Cloud.html

Table for Converting Blogger Classic to New Blogger

/ Saturday, June 20, 2009 /
This is a list of tags for classic = new blogger template ^.^
Classic | Layout
|
|

Expandable Posts

/ /
Conditional CSS
We're going to use conditional tags to change how posts display on different pages. Add the following code to your style sheet, depending on what kind of template you have:


(for classic templates)

(for layouts)


Note: Before making any changes to your HTML, you will need to make sure that the 'Expand Widget Templates' option is selected.

Your style sheet is usually near the top of your template, between the {style} and {/style} tags. If you have your style sheet in a separate file, you'll still need to add these lines in your template, so the conditional tags will work. Just make sure you add in the {style} tags around them.

IMPORTANT NOTE in the layouts template there is a ]]> tag just above the tag. Add the above code so that it lies between these two tags. What we did here was to define a class called “fullpost” that will appear only on post pages (permalinks).



"Read More" Links

Add the following code to your template, somewhere after the <$BlogItemBody$> or {data:post.body} tag:

(for classic templates)

(for layouts)


This link will only appear on the main page and archive pages, and it will redirect your reader to the post page containing the full text of your post. You can replace the "Read more!" text with whatever you like, of course.

Post Modifications

The final piece that we need is a little bit of code in your actual post. Each post that you want to use this feature on will need this code:


source: Blogger Help and www.technobuzz.net/

Use Emoticon in a Blogger Post

/ Thursday, June 18, 2009 /
Hooray! I have finally learned how to put emoticons on!! I'm so happy. Now I put the faces on whenever I want without the trouble of putting in image code all the time.

blogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.com

All thanks to blogger-emoticon.blogspot.com So here's how I did it.
 
Copyright © 2010 Tarobox, All rights reserved
Design by DZignine. Powered by Blogger