Ticking box

Get help developing custom BBCodes or request one.
Post Reply
SytonicX
Registered User
Posts: 16
Joined: Fri Apr 20, 2018 11:46 am

Ticking box

Post by SytonicX »

I was trying to find a ticking box bbcode for example something like:
[] and a tick inside it when I press on it.
Or even 2 bbcodes that I can use, 1 that will show a tick box and the other won't show anything and will just show the box empty.

Can someone help me with it please?
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3726
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Ticking box

Post by Kailey »

Not really the most elegant solution, but try the one below.

BBCode usage:

Code: Select all

[checkbox={CHOICE=check-square,square}][/checkbox]
HTML replacement:

Code: Select all

<i class="icon fa-{CHOICE}-o fa-fw icon-gray" aria-hidden="true"></i>
Help line:

Code: Select all

[checkbox=check-square][/checkbox] or [checkbox=square][/checkbox]
checkbox.png
checkbox.png (2.53 KiB) Viewed 3064 times
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
SytonicX
Registered User
Posts: 16
Joined: Fri Apr 20, 2018 11:46 am

Re: Ticking box

Post by SytonicX »

Is it possible to split them?
Like make each with a bbcode
For example:
[checkbox][/checkbox] for the with the a tick and the [box][/box] for the empty box.

Thank you very much for the help btw!
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Ticking box

Post by Brf »

What who be the purpose of the checkbox? It would not be saved anywhere if you have checked it....
SytonicX
Registered User
Posts: 16
Joined: Fri Apr 20, 2018 11:46 am

Re: Ticking box

Post by SytonicX »

I know what you are speaking about but what I wanted is to be atleast having the shape of the box and then it can be changed with another bbcode.
for example a bbcode for the box which is:
[box][/box]
and another bbcode to tick the box which is:
[cbox][/cbox]
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Ticking box

Post by Lumpy Burgertushie »

the question was, what is the point of this. just because you can put a checkbox in the post by using a bbcode serves no purpose unless you are going to somehow save the data about who checked or did not check the box etc.


what are you trying to achieve with this?


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Ticking box

Post by Brf »

If all you want is a picture of a box, checked or unchecked, simply use an image or an emoji

☑️
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: Ticking box

Post by Mick »

Is this to do with GDPR or something similar?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
k.haroon
Registered User
Posts: 55
Joined: Wed Sep 19, 2018 8:11 am

Re: Ticking box

Post by k.haroon »

You can check or uncheck the box as u like:
BBCode

Code: Select all

[box][/box]
HTML

Code: Select all

<input type="checkbox"></input>
In case you need a pre-checked box:
BBCode

Code: Select all

[cbox][/cbox]
HTML

Code: Select all

<input type="checkbox" checked>
Useage: while packing my camping equipment I use it to shortlist the stuff
Post Reply

Return to “Custom BBCode Development and Requests”