inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 13, 2018 7:51:03 GMT -8
Hey Chris I spotted your post in this thread support.proboards.com/post/7091062/thread about making a 'blackout/redact text' button. Love it! Gave it a try, but as I already have a 'highlight text' button using the span tag for highlight, the blackout/redact just overrode it, leaving me with two 'redact' buttons. Is there a way to have two different button using span, without one cancelling out the other? Using: Control Freak™Version 0.9.2 Beta
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 14, 2018 6:37:01 GMT -8
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 14, 2018 8:44:58 GMT -8
adminabp there really should be no naming conflict since there is a process in place to generate a random name if such conflicts arise. Can you give me the configuration used or better yet a link to a forum where you have both custom buttons setup and is exhibiting this behavior? abetterplace.boards.net/board/33/guest-boardThe two buttons should be beside each other, instead the 'redact' replaces the 'highlight'. If I move them to separate groups, I end up with two 'redact' buttons.
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 14, 2018 12:19:08 GMT -8
Hit quote to reply, had to leave my desk for a bit and by the time I made it back and posted, I'd missed your edit. Updating to that version of Control Freak™ fixed it, it's working fine now. Thanks!
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 14, 2018 17:01:19 GMT -8
ChrisSomething weird going on. All the buttons are showing up fine on the quick reply, but on the full reply, nothing added by the Control Freak plugin is showing up. Problem with that build of the Nightly or something else? abetterplace.boards.net/board/33/guest-board
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 19, 2018 0:45:06 GMT -8
Sorry adminabp , I've been a bit on the busy side lately so I've only found some time today to take a look at this, it seems I rushed this one out the door. The problem appears to be failure on my part to account for case. On line 434 of the Javascript component you can add the red to hopefully rectify the problem if(!plugin_button && exposed.hasEditor(editorData.name.toLowerCase(), custom_button.apply_to_editor)){
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 19, 2018 6:01:42 GMT -8
Sorry adminabp , I've been a bit on the busy side lately so I've only found some time today to take a look at this, it seems I rushed this one out the door. The problem appears to be failure on my part to account for case. On line 434 of the Javascript component you can add the red to hopefully rectify the problem if(!plugin_button && exposed.hasEditor(editorData.name.toLowerCase(), custom_button.apply_to_editor)){That fixed it! Thanks! Been busy myself. I figured you probably were, too, so I didn't pester. I hate to do this, but...one more thing Chris , I noticed the redaction effect doesn't appear in the 'recent posts' widget on my homepage. abetterplace.boards.net/While 'highlight' however does. Redaction also doesn't appear when previewing on the full reply, though that is obviously not as big a deal.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 19, 2018 10:06:35 GMT -8
Since the redact is based on a CSS variable it would only be applicable in areas where that CSS is also applicable. The preview is an iframe thus has a separate and isolated document with its own separate CSS rules and the widget if I remember correctly has its own unique HTML structure and classes rendering any CSS that targeted the standard post structure ineffective. If you wish those areas to be affected then you would need to remove the dependency on CSS variables and use the static but fully contained inline CSS proposed by Scott, the variable version is meant for themes that may have widely varying post font colors to dynamically detect that color and react the redact accordingly
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Feb 19, 2018 15:09:37 GMT -8
Since the redact is based on a CSS variable it would only be applicable in areas where that CSS is also applicable. The preview is an iframe thus has a separate and isolated document with its own separate CSS rules and the widget if I remember correctly has its own unique HTML structure and classes rendering any CSS that targeted the standard post structure ineffective. If you wish those areas to be affected then you would need to remove the dependency on CSS variables and use the static but fully contained inline CSS proposed by Scott, the variable version is meant for themes that may have widely varying post font colors to dynamically detect that color and react the redact accordingly I went with Scott's CSS, works great everywhere. Thank you so much for all the help!
|
|
SG
New Member
Posts: 15
inherit
157504
0
May 18, 2021 11:56:19 GMT -8
SG
15
August 2010
wyrdfayth
|
Post by SG on Feb 28, 2018 21:30:00 GMT -8
Chris - I hate to bother you, but is there any way to add a dropdown menu as opposed to a button? Something similar to the font face/size menus? I have a bunch of custom dice options set with VDice Advanced and I'd like to have some dropdown menus with different categories of options so that users don't need to remember as much to efficiently use them or risk misspelling things, etc. Might you be able to direct me in figuring out how to do that?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 28, 2018 22:32:22 GMT -8
Chris - I hate to bother you, but is there any way to add a dropdown menu as opposed to a button? Something similar to the font face/size menus? I have a bunch of custom dice options set with VDice Advanced and I'd like to have some dropdown menus with different categories of options so that users don't need to remember as much to efficiently use them or risk misspelling things, etc. Might you be able to direct me in figuring out how to do that? There are two types of "dropdowns" associated with this plugin, one for attribute options and one for grouped buttons (Control Freak version only). I know of the VDice plugin but not enough about the possible bbcode format to know which dropdown would fit what you are asking. Perhaps if you posted examples of different types of VDice that you are looking use then I would get a better grasp of what you are asking Version 0.9.2 of the Control Freak version (aka "nightly") released. Issues addressed: - selecting to "compact" a control group only created a menu containing the group's buttons on the quick reply but not the full reply page
I've been meaning to mention this but kept forgetting. I'm using the current version of the "Nightly", version 0.9.1, and while the new button shows up in the quick reply, it doesn't show up on the full reply page at all. It's like the exact opposite of the problem people were having with the regular version with it showing up on the full reply and not the quick reply. No rush, Chris , but any help would be appreciated. Thanks. Added recognition of the embed button to the control freak version. The control freak version is inclusive meaning you have to actively include a button for it to appear unlike the simpler version where you tick off which buttons you want to exclude so this means the embed button won't appear unless you specifically choose to have it appear in a control group
an update to version 0.8.6 is available in the previous post with a fix for a multiple custom buttons sharing same handler bug thanks to Stinky666 This version will also expand on input types to include textareas, selects (aka dropdowns) and V5's custom selectMenu. So now in addition to the standard input field You can specify a 'select' element to limit responses to valid choices or 'selectMenu' to give it that V5 look To be continued...
|
|
SG
New Member
Posts: 15
inherit
157504
0
May 18, 2021 11:56:19 GMT -8
SG
15
August 2010
wyrdfayth
|
Post by SG on Feb 28, 2018 22:56:06 GMT -8
Chris - Ah, yes! The second one is what I want. The VDice advanced plugin lets you preconfigure formulas and give specific outputs so like... It's a Pokemon forum and I set up dice to do things like... if you type "[roll=Smog]" or "[roll=Twineedle]" it will roll the chance of being poisoned by those moves, and read out "Poisoned!" on a purple graphic or "No effect" on a gray one, etc, so members don't have to remember what % each move has and check if the roll was successful or not. And things like Tri Attack that can yield multiple possible effects, there's no argument over which one it landed on, etc. But it's case sensitive, so like if someone wanted the paralysis chance for DragonBreath, typing it as Dragonbreath would yield an error, so I want to put all the valid options in a select menu so they can just click what they need instead of risking input errors or having to memorize how each thing is supposed to be written. Ideally I had wanted the select menus directly on the UI, in a row below the other buttons. Like, one for accuracy rolls, one for moves with secondary effects, etc. But appearing in a popup like that would also work fine if that's the only current option. : o How do I make it do that, and is that option available with the basic version? (ControlFreak put the buttons all out of order when I tried it earlier so I'd prefer to stick to the basic if possible.) --------- Edit: To better explain, this was what I was hoping for if possible?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 1, 2018 8:37:40 GMT -8
So the attributes dropdown form is what you're after where there is a finite list of choices presented to the user and yes that only appears in the popup when the attributes are actually presented to the user for selection. The problem however is you are using attributeless bbcode tags which the plugin does not support so I did a quick peek at the support thread for vdice and saw that it supported both attributeless and attributed forms of the bbcode ( [roll range="Smog"] instead of [roll=Smog]) so if you wanted to create a roll button that accepted "Smog" or "Twineedle"as the options you would simply construct the attribute for that button as follows: range(Poison Attack)=["select",["Smog","Smog"],["Twineedle", "Double Needle"], "value", "Smog"]|noendtag=1 The dropdown directly on the UI (without a button image) is only in the advanced version and only for groups of buttons not attributes. The advanced version also has a "sequence" field where you have full control over the order in which the buttons appear.
|
|
SG
New Member
Posts: 15
inherit
157504
0
May 18, 2021 11:56:19 GMT -8
SG
15
August 2010
wyrdfayth
|
Post by SG on Mar 1, 2018 11:53:28 GMT -8
Ahhh, thank you very much! This will certainly work.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 8, 2018 8:22:43 GMT -8
Hello Chris I've just started using this wonderful plugin (v1.0.0). So far, so good. Would it be possible to add buttons that just drop in characters such as µ, ?, and ? (without tags) and if so, would you be willing to talk a code n00b through the process? ps, I like the way you named the tabs.
|
|