Movable Type: February 2008 Archives

2008 Feb 13

Don't know which template to put in your adsense codes?

With movable type widgets, adding in new stuff to the side has become more easier. Its so easy, all you need to do is to drag your newly created widget and drop it into your installed widget set.

If you have your adsense code right now, follow this simple steps:

1. Lets save our adsense code on a notepad, just in case we might accidentally copy something to the clipboard.

2. On your blog template list, go to the quickfilters pane and click on Widgets

3. Create a widget template, assign a desired name, like (vertical ads, horizontal banner, etc)

4. Paste in your adsense code from the notepad we have saved previously.

5. Navigate to your Widget Sets, select the desired widget set

6. Drag and drop your adsense widget on the available widgets to the installed widgets pane

7. Save and publish your blog.

8. Repeat the above steps to create more adsense ads. There a limit of 3 adsense ads and 2 adsense list ads per page.

 

2008 Feb 12
stats-widget.jpg The new version comes with additional tags. Although these tag s were not new t o Movable type using them together with the widget add in makes it easy play with movable type templates. Tracking the number of posts as displayed in the dashboard is very nice to keep us updated with our blog. It would even be better if its added to the blogs main page. We will be using 4 movable type tags namely:
<mt:BlogCategoryCount /> - Used to count the categories within a blog
<mt:BlogEntryCount /> - Used to count all the published entries in a blog
<mt:BlogCommentCount /> - the total number of comments
<$mt:AssetCount$> - the total number of assets uploaded

Lets start by making a Blog Statistics Widget:
1. Navigate to your blogs templates and on the quickfilter click on Widgets
2. Create a widget and name it Blog Statistics
3. Paste the following:
 <div class="widget-blog-statistics widget">
    <h3 class="widget-header">Statistics</h3>
    <div class="widget-content">
    Total Categories: <mt:BlogCategoryCount /><br />
    Total Entries: <mt:BlogEntryCount /><br />
    Total Comments: <mt:BlogCommentCount /><br />
    Total Uploaded Assets: <$mt:AssetCount$><br />
    </div>
</div>
4. Save your new widget
5. Navigate to your Widget sets
6. Drag and drop Blog Statistics from the Available widget to your Installed Widgets
7. Click on Save Changes
2008 Feb 12
login-widget.jpgWhats good with Movable type 4 is its enhanced widget system. Without touching the core movable template, we are able to add a new features to it with just a little additional code. Adding a login field for my multi authored blog is necessary since some my co-authors are not familiar with the Movable Type and i don't think giving in a complete path like cgi-bin/mt/mt.cgi can easily be remembered..


Here's how made it.

1. Navigate to your Blog Templates
2. On the Quickfilters click Widgets
3. Click on Create New Tempate Widget link
4. Paste the following:
<div class="widget-login widget">
    <h3 class="widget-header">Log In</h3>
    <div class="widget-content">
       <form method="post" action="<mt:CGIPath />mt.cgi">
           <label for="username">Username:</label><br>
           <input id="username" name="username" size="20">
           <label for="password">Password:</label><br>
           <input id="password" type="password" name="password" size="20">
           <input type="submit" value="Login" size="20">
        </form>
    </div>
</div>
5. Place in Login as its widget name
6. Click on Save
7. On the main Menu, Select Design-> Widget Sets
8. Depends on how many sidebar you have, click the appropriate widget set. Im using the 3 column widget set, if your using the same, click on it.
9. On the Available widgets column look for the Login widget we have created and drag it into the Installed widget column
10. Click Save Changes
11. Rebuild and publish your blog.

Today is

About this Archive

This page is a archive of entries in the Movable Type category from February 2008.

Movable Type: January 2008 is the previous archive.

Movable Type: March 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."