Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

Adding Quotations to Blog

August 13th, 2005 by Angsuman Chakraborty

I have started displaying interesting quotations (starting with my favorites from Dr. Albert Einstein) on this blog, and my other blogs too, at the very end of the page.

There are dozens of random quotation plugins available for displaying quotations. I decided to use my AdRotator plugin for this.

AdRotator displays an advertisement (which is randomly selected from a group of advertisements specified in a text file) at your chosen location.

The benefit of using this plugin is that it allows you to flexibly choose a file to display your Ads or random quotations (in this case) from. So you can use several files to display your ads at different locations or to display one or more quotations at one or more locations.

To achieve this (the plugin was already activated and used to display my ads) I created a file quotes.txt with my quotations (one per line) and uploaded it to my wp-content directory. Then I modified my template to include the line (below) to display quotations randomly:
<?php echo getad(’quotes.txt’); ?>

That’s it.

You can see it in action at the very bottom of this page.


Tags: CMS Software, Pro Blogging, Web, WordPress | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Changing IP's and Adding Servers
»Subscribe To Blog Comments
»Translator Plugin Pro 5.0 Release Update
»Translator Plugin Pro Version 4.0 Update
»How To Create AJAX Commenting System for Static HTML Pages
»Yahoo UI Library (JavaScript + AJAX) is Worth Looking
»WordPress 1.5: My Referrer Bouncer Blacklist
»Social Bookmarking is Back! Use It.
»How To Add Multiple IP Addresses On Linux / Fedora Core / Fedora
»Solving: Permission denied to get property HTMLDivElement.nodeType when calling method: [nsIDOMEventListener::handleEvent] nsresult: 0x8057001e (NS_ERROR_XPC_JS_THREW_STRING) location: <unknown> data: no
»Blog Comments Problem Solved
»Mysterious Call From Microsoft Inquiring About Windows! ... Evil Nexus With Dell?
»My 5 AdSense Resolutions For 2008
»Comment Guard Plugin Updated with New Features
»Anaconda 3 Column Theme Release Schedule

One Response to “Adding Quotations to Blog”

  1. stas Says:

    I recently came across your site. It contains a lot of good info.

    However, it is getting too crowded, and confusing to read. Way too many ads!

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"The secret to creativity is knowing how to hide your sources." - Albert Einstein