Dice

Unmaintained Dice 1.0.2

No permission to download
Version 1.0.2 released
This new release was made by Xon. Changelog:
  • Bug fix when unserializing data
  • Standardization of the error management
  • Move dice rolling into Model to make it easier to extend
  • New options to check the dice format and to limit their numbers

I repeat that this addon is just a demo (that was coded to test the Bbm pre-cache system). Using Bb Codes to create a dice addon is not necessary the best way to do. An other addon has been recently launched, you can see it here (at the 2015/08/25 it seems it still needs some tweaks - see the thread).
  • Like
Reactions: Deriel and Xon
Version 1.0.1 released

To read first
This update is going to be a little complicated. Since I've made a mistake with the plural of the word dice and I used this word in the class names, in the database and in the Bb Code config, I had to modify everything.

This update will be considered as a new installation. So after install it, you will have two addons installed : "[BBM] Dice" (the new addon) & "[BBM] Dices" (the former addon).

Don't remove the former addon before installing the new one, otherwise you will lose your previous dice results.

Steps to follow
  1. Update the BBM addon to at least the version 3.0.3
  2. Install the new addon [BBM] Dice
  3. Uninstall the former addon [BBM] Dices
  4. Import in the Bbm the "dice" Bb Code
  5. Delete in the Bbm the "dices" Bb Code
  6. Rename the "dices" tag to "dice" in posts.
    To perform this task, you can use the tool "Post Content Find / Replace" written by Kier ; use this regex:
    Code:
    #\[dices\](.*?)\[/dices\]#i
    And this replacement code:
    Code:
    [dice]$1[/dice]
  7. (Optional) Connect to your ftp and delete this folder:
    {yourForumDirectory}/library/Sedo/Dices

Sorry for all these steps, but it will allow you to have something clean.

What's new?
  • This release fixes several bugs
  • Dice can be quoted. The results displayed inside those quotes should be the ones related to their quoted post
Reminder
This Bb Code is using two systems :
  1. A tag map system which allows Bb Code permissions and, more particularly in this addon, to have the post id of the tag being processed (needed to save the results).
    I've always described this tag map system as experimental. But on the other side it has been tested for more than 18 months.
  2. A pre-cache system that allows to only use 1 database query
The purpose of this addon was to make both systems work together and to provide a reference demo. I will for example use it for a private addon. So if you see errors, I will try to fix them, but if you want to ask customizations, I will not do them.
Top Bottom