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 » Sat Jun 02, 2018 3:02 am

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
kinerity
Community Team Member
Community Team Member
Posts: 1671
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Ticking box

Post by kinerity » Sat Jun 02, 2018 6:00 am

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 385 times
Kailey Truscott - Community Team

SytonicX
Registered User
Posts: 16
Joined: Fri Apr 20, 2018 11:46 am

Re: Ticking box

Post by SytonicX » Sun Jun 03, 2018 3:36 am

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: 51171
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Ticking box

Post by Brf » Sun Jun 03, 2018 2:29 pm

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 » Tue Jun 05, 2018 2:21 am

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: 64566
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Ticking box

Post by Lumpy Burgertushie » Tue Jun 05, 2018 2:36 am

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
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51171
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Ticking box

Post by Brf » Tue Jun 05, 2018 12:08 pm

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: 19542
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Ticking box

Post by Mick » Tue Jun 05, 2018 1:46 pm

Is this to do with GDPR or something similar?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 5 guests