Please install Flash® and turn on Javascript.

Archive for May, 2009

MySpaceID: Another way to login to a website without registration

Friday, May 29, 2009

What is MySpace?

If you have a profile of “Developer” on MySpace then you will be able to create applications. These can be of 2 types: internal or external. The first are developed to introduce into our profile iframes with our applications, the second type (which we are interested in remaining article) allow us to create ‘Lives App’ or  external applications of MySpace in order to extract information from the API and use it on our websites. This tool is known as MySpaceID.

Implementation:

The first thing we must do is create an application on our MySpace account developers (must have prior permission to develop, this procedure takes about 48hs).

When we have access, go http://developer.myspace.com/community/ -> MyApps -> Create New MySpace Application and choose type.

In ‘external callback’ Enter the URL of our site and remember to save OAuth Consumer Key and OAuth Consumer Secret.

Once created the application must publish, we should see a sign: Status changed to [Live], if this happens we are able to use our site.

(more…)

Facebook Connect: Login to a website without registration

Thursday, May 21, 2009

What is Facebook Connect?

Facebook’s new product called Facebook Connect allows us to use the same login on multiple sites without the need to record us as a new user.

With this new service, we may also import all our contacts and our social network, with full profile, to the other sites included in the agreement.

The rough idea is to share the record of Facebook on other sites to avoid having to register each time.

How to Link to Facebook?

1. Create a Facebook application development: we must start by having a user, then enter the  developers area http://www.facebook.com/developers/editapp.php to register a new application. We have to fill optional fields and CallBack URL with the URL of the site to which we link Facebook. Leave the other in default would be the right thing, then accept.

I recommend saving the API Key, because we use it in a moment.

2. File Connection: Now we return to our project. We can create a folder to save files in Facebook, or place them in the same root.

The first file you need to create is one that creates the connection to Facebook:

xd_receiver.htm

1
2
3
4
5
6
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript">
</script>
</body>
</html>

(more…)

Creating mambots for Joomla 1.0.x

Wednesday, May 13, 2009

This article will explain how to create a mambot on Joomla 1.0.x (Plugins from Joomla 1.5). It is recommended to have knowledge of PHP and HTML to read this article.

What is a Mambots?

Mambots are the applications that intercept the contents (documents or items of components) before being published and displayed by the system, and add or alter information dynamically, thus completing the total content that will be delivered the end user’s browser. The Mambots can be called by special commands, or can be displayed by default for certain content / components.

Mambots are located in the directory /mambots. As the components and modules can be installed/uninstalled, configured and published from the backend of Joomla.

Triggers:

At present there are 5 factors (documented) to trigger a Mambots:

  • onPrepareContent
  • onSearch
  • onInitEditor
  • onGetEditorContents
  • onEditorArea

Each event require a numer and parameters.

Example of a Mambot:

As modules, Mambots are composed of two core files. One is the .xml file that gives the configuration for the installation, and the other is .php file that allows us to codify what the mambots will do. Al the mambot files should start with “mos”.

(more…)

Creating modules for Joomla 1.0.x

Thursday, May 07, 2009

What is a module?

Modules are small programs that can be inserted anywhere in a site that uses Joomla.

Depending on the template (the part that handles the entire display) can be placed anywhere dynamically configuring it on the backend.

The function of the modules is basically display information in a small box, for example, could be used to show user data, date and time, temperature of a place in particular, etc. You can also use a module to link it to component and use it as a submenu.

Needed Files

You need 2 files to create a module: One is the XML file that is used for installing and configuring the module in Joomla. The other is the PHP file itself, which perform the task of displaying data on the site. Is necessary to respect the nomenclature putting “mod_” to the name of the module. This is important in order to install it on the Joomla´s backend.

(more…)