This page is no longer updated

We've left it here for reference. Find Out More.

PlanetHITOP

An Introduction to Plugins.

Calling a Plugin.

To use a plugins functionality, you need to call it from your template, to tell Hitop to use the extensions.

Calling a plugin is extremely easy - as long as you know the plugin name.

Inside the plugins directory should be a number of files with the extension '.so'. A quick look in my plugins directory reveals 13, including notify.so and ecommerce.so (the notification and e-commerce plugins).

To call a plugin, place the @REQUIRES command in your page. For calling plugins @REQUIRES has a very simple syntax:

<@REQUIRES PLUGIN="name">

where name is the file name of the plugin, but without the '.so' file extension. So for using the e-commerce plugin, we'd use:

<@REQUIRES PLUGIN="ecommerce">

And with that, you can start using your plugin.

@REQUIRES.

@REQUIRES has some additional functionality like checking for a minimum version of Hitop before using the plugin, and changing the command names. For more details, see Hitop.org's File section.


<back | top^

Planet Bods NetworkSites in the network