will give you some extra information about the method.. IE long name, descripton, version, author, and if it is #1 installed #2 available (I.E. all required options are entered).

There is a little more we are planning to add to this but it should be released soon, what we could do with for now is a realistic idea on extra things you the devs want added to this and also an idea if you would use this in a future project.

Well-known member

As Cezz started, the class also has methods to allow a new shortener to be installed easily via a well defined options() function. Users choose when to install these functions, and are available at will. The class also provides methods for you to find out which shorteners are available via a simple call in the class:

PHP:

Shorten_URL::getAvailableMethods();

This will give you all methods that are available and installed properly. If a method needs installing, the about() method mentioned above will called a custom function in the method class (Shorten_URL_method) and check to see if all options have necessary values.

Some powerful features are planned, but hopefully, you can utilize this. As this is a somewhat of a community effort, you may write your own shorteners (as well as suggest them!) and have them included by default.

It has been out a while but currently only supports shortener's that don't require any authentication etc. The mod that was created for XenForo supports many types of shorteners including things like awe.sm and bit.ly which require API's.

The options for the shortening services are included in the XF admin area so are easily configured, and the library we created allows for the site admin to set a single default method that all mods will then use, meaning they only have to change one setting for all the mods to update.