[3.1][3.2][BETA] DICEK BBCode

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

[3.1][3.2][BETA] DICEK BBCode

Post by ntvy95 »

DICEK BBCode

For more advance dice please visit hanelyp fancy dice extension. DICEK only works with integer and no more.

The difference: My extension saves the dice result into the database so that the user cannot cheat by re-dicing.

Usage:

The code:

Code: Select all

[dicek]max1-max2-max3-...-maxn[/dicek]
For example: [dicek]10-20-30[/dicek] or [dicek]3[/dicek]

The result:
[a random number from 1 to max1]-[a random number from 1 to max2]-...-[a random number from 1 to maxn]
For example:
[dicek]10-20-30-20[/dicek] => 8-11-25-5
[dicek]3[/dicek] => 2

Note:

Once you submit the post with [dicek]10-20-30-20[/dicek], you can later edit the post into:

Code: Select all

First dicek with 30 max: [dicek]30[/dicek]
First dicek with 20 max: [dicek]20[/dicek]
Second dicek with 20 max: [dicek]20[/dicek]
So the result will be:
First dicek with 30 max: 25
First dicek with 20 max: 11
Second dicek with 20 max: 5
Download / Repository: GitHub
Please try to cheat it and tell me how you cheated. If possible, please tell me if this extension slows down your forum. Thank you very much!
Last edited by ntvy95 on Tue Mar 13, 2018 7:19 am, edited 3 times in total.
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [DEV] DICEK BBCode

Post by ntvy95 »

Update: CHECKDICEK BBCode. This is used to quickly check what is the dice range and dice result of a post, especially in the case the user has deleted the dice result.

Code: Select all

[checkdicek][/checkdicek]
POST ID: <ID of the container post>
Dice Range: <if have>
Corresponding Dice Result: <if have>
For example, your container post has been diced like this:

[dicek]10-20-30-20[/dicek] => 8-11-25-5

Then the result of [checkdicek][/checkdicek] of that post will be:

POST ID: <ID of the container post>
Dice Range: 10-20-30-20
Corresponding Dice Result: 8-11-25-5

However, that is not the solely available syntax:

Code: Select all

[checkdicek]<post ID>[/checkdicek]
This will result in:
POST ID: <post ID>
Dice Range: <if have>
Corresponding Dice Result: <if have>
Have fun.
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [DEV] DICEK BBCode

Post by ntvy95 »

Update the ability to view checkdicek bbcode at the preview mode. Note that if you use [checkdicek][/checkdicek] bbcode with this quickreply extension, you may meet the error:
Something went wrong with the request and the server returned an invalid reply.
In that case, just remove the [checkdicek][/checkdicek] bbcode in your post. (However, the [checkdicek]<post id>[/checkdicek] syntax should work fine in all the cases.)
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [DEV] DICEK BBCode

Post by ntvy95 »

koutogima wrote:Update the ability to view checkdicek bbcode at the preview mode. Note that if you use [checkdicek][/checkdicek] bbcode with this quickreply extension, you may meet the error:
Something went wrong with the request and the server returned an invalid reply.
In that case, just remove the [checkdicek][/checkdicek] bbcode in your post. (However, the [checkdicek]<post id>[/checkdicek] syntax should work fine in all the cases.)
Never mind. I have just fixed that error.

Also, a little forgotten echo message has been removed.
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [DEV] DICEK BBCode

Post by ntvy95 »

I have had an important update on this BBCode. Now it can be parsed in many situations (except previewing, of course).
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [DEV] DICEK BBCode

Post by ntvy95 »

Fix the inconsistent result display on search page.
User avatar
Willowmore
Registered User
Posts: 31
Joined: Fri Jul 29, 2016 10:39 am

Re: [DEV] DICEK BBCode

Post by Willowmore »

This is really really awesome, I desperately needed someting like this and I'm happy I found it ^^
Is this going to work in 3.2?

Is it possible to add a button to the other bbcodes so I can choose whether the users can see it among the others when posting? And perhaps a possibility to be able to name the bbcode differently (e.g. my language), so they'd see something like [throw]6[/throw]? Since this is a bbcode, I think it would be really neat...
User avatar
Galixte de EzCom
Registered User
Posts: 1106
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: [DEV] DICEK BBCode

Post by Galixte de EzCom »

Is this extension still in development? I don’t think so.
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28654
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [ABD] DICEK BBCode

Post by Paul »

This topic has been marked as [ABD] - Abandoned as the extension author has not been active recently. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked.

Notice!
We do not recommend that a user of the phpBB software install this extension, or any other extension that is marked as “abandoned” or “in development”, on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Extension Customisations Team
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [3.1][RC] DICEK BBCode

Post by ntvy95 »

I am sorry for the long absence. I completed this extension a long time ago, however, I have just learned about the submission process recently. I tested it on phpBB 3.1.12 and it worked.
ntvy95
Registered User
Posts: 69
Joined: Wed Jun 10, 2015 12:58 pm

Re: [3.1][3.2][BETA] DICEK BBCode

Post by ntvy95 »

I deleted checkdicek links which can cause confuse. I verified that this extension also works on 3.2.2. While the bbcode "dicek" may confuse some people, I personally prefer this name and I have no intention to change it. If you would like to change the name of the BBcode, you can change it in line 39 and line 40 of event/main_listener.php.

Cheers.
Post Reply

Return to “Extensions in Development”