Additional Info
Type
Package ID
karlbenson:randombbcode
First Created
August 17, 2007, 08:05:40 PM
Last Updated
January 19, 2008, 12:01:38 AM

Random BBCode v1.1

Enables [random] bbcode to randomly select one or more items
Compatible With 1.1.3, 1.1.4
Latest version v1.1
Downloads 1,992
Reviews 0
Rating 0/5
Subscribers 0
License (View License)
Author(s)
This mod has been taken over by WDM2005
The new link for which is http://custom.simplemachines.org/mods/index.php?mod=1247


RANDOM BBCODE v1.1
By Karl Benson



Introduction
Enables [random][/random] bbcode to randomly select one or more from your random tags
Use | as a delimiter

Examples
[random]One|Two|Three|Four[/random] would select 1 at random eg Two

To select multiple randomly (between 1-9)
[random=3]One|Two|Three|Four|Five|Six[/random] would select 3 at random eg Three Five Two

You cannot use bbcode or html between the tags. ONLY text.
The function will make a UNIQUE selection. (Never two the same).

Features
o BBCode Button

Installation
Simply install the package to install this modification on the Default theme.

You will also need to place a copy of the random.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['random_desc'] = 'Random BBCode';

Languages
o Supports
- English/English-utf8
- English_British/English_British-utf8
I welcome translations for any other languages which SMF Supports.
Please translate the following and post them in the mods support topic.
$txt['random_desc'] = 'Random BBCode';

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 17th August 2007
o Initial release
1.0 - 23rd November 2007
o Added English-utf8 support
o Added English_British/English_British-utf8 support
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: