Urdu English
English English Deutsch Deutsch Español Español Français Français Italiano Italiano Nederlands Nederlands Português Português Русский Русский Ελληνικά Ελληνικά
Login



 
Welcome to Jumi! >> Tutorial >> Google Gadgets into your Joomla!

Including Google gadgets into your Joomla! pages is really very simple with Jumi. It takes you just minutes.

If you want to show a gadget in a module position or in a content item install Jumi module or plugin respectively.

Go to Google gadgest. Choose one you like and get the code. Copy the code into your text editor (notepad).

The code looks like spilled characters and digits. E.g. like Mahatma Gandhi quotes code:

<script src="http://gmodules.com/ig/ifr?url=http://www.zytu.com/quotes/gandhi.xml&amp;
synd=open&amp;w=320&amp;h=120&amp;title=Mahatma+Gandhi+quotes&amp;
border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

For the security purpose insert the following line at the top of your script:

<?php
defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );
?>

So the whole code will look similarly to this one:

<?php
defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );
?>
<script src="http://gmodules.com/ig/ifr?url=http://www.zytu.com/quotes/gandhi.xml&amp;
synd=open&amp;w=320&amp;h=120&amp;title=Mahatma+Gandhi+quotes&amp;
border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

Save the code under arbitrary name with a php extension. E.g.: mygadget.php.

Upload it to your server into the arbitrary directory.

I will suppose that the pathname of your file is pathname. (For pathname explanation see Jumi usage).

Provided that you are using a module then open in the admin area Jumi module or its copy, find a line "File pathnname" and write there the pathname.

Save it, publish it. That is all.

If you are using plugin, just open any article for editing and into the appropriate place write

{jumi [pathname]}

And you see

Script output:

Is not it easy? I hope so. Enjoy your Google gadgets!