Showing posts with label Widgets. Show all posts
Showing posts with label Widgets. Show all posts

Thursday, September 30, 2010

Quote of the day with tabbed interface for iGoogle and blog released

Namaste,

Quote of the day with tabbed interface for iGoogle and blog sidebar is released. Tabbed interface saves space. I am not a professional programmer and hence I am not able to give flexibility to change font type and colour.

This gadget/widget is removed from the sidebar. Hope you enjoy this widget.

Hari Aum

INDIASPIRITUALITY

Embed in Blog

Embed in Blog

Saturday, May 8, 2010

Quote of the day - Code in Javascript

Namaste,

I could not find quote of the day code which could support up to 365 quotes. So my friend J.M. developed a code. We re thank full to him for developing this code for free. We are happy to release Quote of the day code.

Features:

1. Quotes are parsed and so that no quote is missed.

2. Quotes refresh daily and not on browser tab refresh.

3. Upto 365 quotes. So new quote for a year.

4. Contains date script.

5. Fully customizable.

Troubleshooting / Points to consider while uploading the code.

1. Do not use special characters. They may / may not be supported.

2. Do not use the characters like Opening and closing double quotes (" ") and semicolon (;) since they are used by the codes.

e.g. if you use this quote

The Mother said, "She devotes her energy to bring up . passing through all these experiences; so then . done"

Then the code will look like

Quotes[1]= " The Mother said, "She devotes her energy to bring up . passing through all these experiences; so then . done" ";

a. As you can see there are two opening and two closing quotes.

b. Again the semi colon is repeated twice (one in the quote and another at the end (needed to complete the line of code)

This will not allow the code to work ad nothing will be displayed.

So change it to

Quotes[1]= " The Mother said, 'She devotes her energy to bring up . passing through all these experiences, so then . done' ";

Here double opening and closing quotes ("") are replaced by single ones ('') and semicolon (;) by comma (,).

The best and fastest way according to me is to copy the quotes in word processer like MS word. Then find and replace all ( " ) by ( '), ( " ) by ( ') and ( ; ) by ( , ).

c. If the code is still not displayed, then remove other special characters like underscore (_), in short, make your quote in simple plain text and check if it works.

Please find code for Quote of the day.

Code:

<p><font face="Trebuchet MS" color="#800000" size="2">
<!-- date script starts -->
<div>
<script type="text/javascript">
var d=new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write(weekday[d.getDay()] + ", ")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getDate() + " ")
document.write(d.getFullYear())
</script>
</div>

<!-- date script ends ->
<!- QOTD Script developed by J.M. for http://indiaspirituality.blogspot.com/ starts -->

<script type="text/javascript">
var today= new Date();
var first = new Date(today.getFullYear(), 0, 1);
var day = Math.round(((today - first) / 86400000), 0);
var numquotes = 5;
Quotes = new Array(numquotes+1);
Quotes[1]= " Once you know maya, it runs away, it can no more influence you.";
Quotes[2]= " Only god is truth, everything else is false";
Quotes[3]= " The one you has created the laws of nature also has the powers to change, replace or break the laws of nature";
Quotes[4]= " He who has faith has everything, and he who lacks faith lacks everything. It is the faith in the name of the Lord that works wonders, FAITH IS LIFE & DOUBT IS DEATH.";
Quotes[5]= " You can also ask for Brahma Jnana to divine mother.";
var ran = (day % numquotes) + 1;
document.write(Quotes[ran] + '<p style="text-align: right"><i>' +  '</i></p>');
</script>

</font></p>

<!-- end of OFTD script by J.M. -->
<p><font face="Trebuchet MS" color="#800000" size="2"><p><i>- Sri Ramakrishna</i></p></font></p>

How to use the code

1. The lines marked in green are the comments, which the makes no difference to a browser but makes it easier for us to identify the codes.

2.  The date script contains

("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

You can change ( Sunday ) to ( Sun ) and/or ( Jan ) to ( January )

If you do not wish to add date, then just delete lines starting from (including)

<!-- date script starts ->
to

<!-- date script ends ->


3. Change the number of quotes.

Find

var numquotes = 5;

change 5 to any number. here 5 is any number 'n'

make sure that 'n' mentioned in var numquotes and the last number in square bracket after ( Quotes ) is the same.

Quotes[5]= " You can also ask for Brahma Jnana to divine mother.";

4.  I Have created the quote code which has only one saint. So Instead of adding the name in each quote I have added it in the last

<p><font face="Trebuchet MS" color="#800000" size="2"><p><i>- Sri Ramakrishna</i></p></font></p>

Here  ( - Sri Ramakrishna ) can be changed.

If you want to display quotes by more than one saints, then in each quote, the name has to be added manually.

e.g.

Quotes[5]= " You can also ask for Brahma Jnana to divine mother. - Sri Ramakrishna";

5. If you have some knowledge of CSS, then you can change way this script is displayed.

Hope you will find this script / code useful.

Hari Aum

INDIASPIRITUALITY

Sunday, November 15, 2009

Quote of the day widgets released

Dear Divine souls,

“Quote of the day” widgets of Sri Ramakrishna, Sri Sarada Maa, Swami Vivekananda and Paramhansa Hariharananda are developed, tested and found to be working fine. They are hosted at widgetbox Gallery.

These widgets are highly customizable to suit any blog / Website theme and colour scheme. Customization includes selection of font size, font type, Text colour, background colour, padding (margins)

There are 365 quotes, i.e. new quote every day for one year. We hope these quotes act as a source of inspiration and fill you with divinity.

Please find the details below.

 

Name of Widget Url

Gems from Gospel of Sri Ramakrishna

http://www.widgetbox.com/widget/gems-of-gospel

Sri Sarada Maa's Compassion (320 Quotes)

http://www.widgetbox.com/widget/sarada-maa

Golden Words of Swami Vivekananda

http://www.widgetbox.com/widget/golden-words-vivekananda

Nector Drops of Paramhansa Hariharananda

http://www.widgetbox.com/widget/nector-drops-hariharananda

*Name of Widget may change in future, but Url will remain the same.

Incase of any suggestions, please contact us at indiaspirituality[AT]gmail.com.

Namaste

INDIASPIRITUALITY

Friday, February 27, 2009

INDIASPIRITUALITY Toolbar Released

Namaste,

There is a lot of information on this blog. It is possible that in one session, you may not surf the whole blog to your hearts content. Many of you must be visiting the blog more than once. There are sections like INSPIRATIONAL QUOTES, LIVES OF SAINTS, and my favourite QUOTE OF THE DAY (QOTD) - automatically updated daily, which generally needs to be visited more than once specially “quote of the day”.

Since the blog takes to much time to load, I created another clone blog for faster surfing for regular users including me. (I know this is going to decrease the hits, but I do not care much about it). Sometimes I visit my blog only for “quote of the day” and it takes to much time and Mbs’ to load it.

To make things easier, I created INDIASPIRITUALITY Toolbar. This toolbar gets easily installed, in one click, in Firefox or Internet Explorer just like Google toolbar. It also contains an uninstaller, incase you wish to uninstall. It gives an easy access to this blog, so that on whatever page your are surfing, you are just a click away from INDIASPIRITUALITY. More, this toolbar can be customised, so if anybody wants to modify it, then it can be done. you can give me the links you wish to add. I will update it when I get time. Alternatively, you can yourself create a toolbar of your own at www.conduit.com. There is no need to own a website or a blog. It is easy to learn and create the toolbar in minutes.

To take a look at how this toolbar looks like and to download it, please visit http://indiaspirituality.ourtoolbar.com/

After the toolbar is installed, a welcome screen on new tab / window will appear stating that the toolbar is completely installed. Something like this

---------

Now you'll always have the best of our site delivered right to your browser.
You'll get our latest news, links, alerts, and more. It’s a great way to stay connected!
Check out the Toolbar Options , where you can choose these cool components and more...

-----

Toolbar options is a great way to customise the toolbar. You can remove the default radio button or any other component. Click on this link “Toolbar Options” and it will show you where are the options located.

The best part is, if I update the toolbar, then you do not need to reinstall it nor do you need to restart the browser. More, it updates or rather synchronizes in seconds. You can immediately find new links added in the toolbar.

Some Buttons / links in the INDIASPIRITUALITY toolbar

Home Page link

Search Box

Search Box with default “google search” and “Search this site option”. Search in other sites also available. Click the Small Triangle on the left in the search box to see the options.

Highlighter

Links

Links to some of the posts.

Recent Posts

This is a RSS Feed and gives the headlines of the posts. So now at the click of the button you can know that there is a new post.

Quote Of The Day (QOTD)

Daily updated Quotes by Famous Saints. These are not random quotes as generally found in the quote of the day widget. They are parsed so that none of the quote is missed.

Toolbar RSS

There is an option to directly communicate with the author of toolbar. It is labelled Toolbar RSS. If there is an update, or if somebody who has installed the toolbar needs to communicate with the creator of toolbar, then this can be found here. It is a kind of messaging centre, where you can directly communicate with the author and all other toolbar users.

Requests/comments/suggestions can also be emailed at the email id of blog (indianspirituality[a]gmail.com, replace [a] by @. This is for stopping spam spiders from catching the email id. I do not want my inbox to be flooded with spam)

Hope you find this toolbar useful.

AUM

INDIASPIRITUALITY

Featured Post

Introduction of Madhusūdana Sarasvatī’s Gūḍārtha Dīpikā, a unique commentary on Bhagavad Gītā

Update: 01/08/2016. Verses 8 a nd 9 are corrected. 'Thou' is correctly translated to 'tvam' and 't hat...