Former Member
inherit
guest@proboards.com
211826
0
Dec 2, 2024 9:47:00 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 4, 2015 6:50:37 GMT -8
I presume this is the place to come if I've got a question about your BBC Buttons plugin.
It's been working perfectly so far, just one thing that bugs me. When you visit the forum for the first time it uses the default icons for the buttons instead of what I have in our theme.
Do you think you could add a setting to change what the default ones are?
It doesn't have to be complicated, just something for more advanced users. Like putting the hash in a text field and reading it out in the script using JSON.parse.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 4, 2015 7:54:32 GMT -8
As you know, the plugin cannot know what buttons you have set for a particular theme until you visit the full reply page at least once so it can then record them and from then on use the customized buttons. What you are suggesting is some sort of setting in the plugin to define those buttons on a per theme basis which might be fine for forums that have a handful of themes (and an admin not adverse to putting in some work) but that might not be feasible since there are capacity limits to even plugin settings and the forum with 66 installed themes would reach that limit way before reaching number 66. An alternative might be to place something in the wrapper layout that the plugin can first check then use if present. This would allow an unlimited amount of storage since stored directly in the theme and also avoid that deer in the headlights look some people get when viewing plugin settings that require anything more than a click to configure (and not scare them away). I'll post back once I've formulated what shape this should take (and of course find some free time to do it)
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 9, 2015 19:44:59 GMT -8
I presume this is the place to come if I've got a question about your BBC Buttons plugin. It's been working perfectly so far, just one thing that bugs me. When you visit the forum for the first time it uses the default icons for the buttons instead of what I have in our theme. Do you think you could add a setting to change what the default ones are? It doesn't have to be complicated, just something for more advanced users. Like putting the hash in a text field and reading it out in the script using JSON.parse. Please see first post in this thread for version 0.9.9 (manual install, not library) which now recognizes per theme button images without first having to "see" the buttons on the full reply page. To use this optional feature add the following to the <head> portion of your forum wrapper template. <script id="bbcode_images" type="text/javascript"> var bbimg = { buttons:{ "underline" : "//images.proboards.com/v5/images/bbcode/underline.png", "createLink" : "//images.proboards.com/v5/images/bbcode/link.png", "italic" : "//images.proboards.com/v5/images/bbcode/italic.png", "justifyFull" : "//images.proboards.com/v5/images/bbcode/justify-full.png", "insertHorizontalRule" : "//images.proboards.com/v5/images/bbcode/horizontal-rule.png", "insertVideo" : "//images.proboards.com/v5/images/bbcode/movie.png", "justifyCenter-active" : "//images.proboards.com/v5/images/bbcode/justify-center-active.png", "italic-active" : "//images.proboards.com/v5/images/bbcode/italic-active.png", "justifyRight-active" : "//images.proboards.com/v5/images/bbcode/justify-right-active.png", "bold-active" : "//images.proboards.com/v5/images/bbcode/bold-active.png", "strikethrough" : "//images.proboards.com/v5/images/bbcode/strikethrough.png", "justifyLeft" : "//images.proboards.com/v5/images/bbcode/justify-left.png", "justifyFull-active" : "//images.proboards.com/v5/images/bbcode/justify-full-active.png", "subscript-active" : "//images.proboards.com/v5/images/bbcode/subscript-active.png", "underline-active" : "//images.proboards.com/v5/images/bbcode/underline-active.png", "createEmail" : "//images.proboards.com/v5/images/bbcode/email.png", "foreColor" : "//images.proboards.com/v5/images/bbcode/color.png", "insertCode" : "//images.proboards.com/v5/images/bbcode/code.png", "insertQuote" : "//images.proboards.com/v5/images/bbcode/quote.png", "justifyRight" : "//images.proboards.com/v5/images/bbcode/justify-right.png", "insertTable" : "//images.proboards.com/v5/images/bbcode/table.png", "bold" : "//images.proboards.com/v5/images/bbcode/bold.png", "justifyCenter" : "//images.proboards.com/v5/images/bbcode/justify-center.png", "subscript" : "//images.proboards.com/v5/images/bbcode/subscript.png", "insertSmiley" : "//images.proboards.com/v5/images/bbcode/smiley.png", "strikethrough-active" : "//images.proboards.com/v5/images/bbcode/strikethrough-active.png", "superscript" : "//images.proboards.com/v5/images/bbcode/superscript.png", "removeFormat" : "//images.proboards.com/v5/images/bbcode/remove-format.png", "insertUserLink" : "//images.proboards.com/v5/images/bbcode/membersearch.png", "superscript-active" : "//images.proboards.com/v5/images/bbcode/superscript-active.png", "insertImage" : "//images.proboards.com/v5/images/bbcode/image.png", "justifyLeft-active" : "//images.proboards.com/v5/images/bbcode/justify-left-active.png", "insertUnorderedList" : "//images.proboards.com/v5/images/bbcode/list.png", "insertEmbed" : "//images.proboards.com/v5/bbcode/embed.png" }, smiles:["(puke)", "//images.proboards.com/v5/smiley/sick.png", "(:))", "//images.proboards.com/v5/smiley/ninja.png"] } </script> The id of the button (e.g "insertSmiley") is paired with the image URL to be used for that button. Those URLs in the above example are for the default images provided by Proboards so change to whatever is applicable in your theme. You'll also notice I've added a smiles entry should you wish to also define smileys on a per theme basis and not have to use the shoutbox workaround. The format of the smileys is a bit different since it uses an array with two entries per smiley, the first being the characters that create the smiley then followed by the image URL for that smiley. Please let me know if you run into any problems.
|
|
Former Member
inherit
guest@proboards.com
211826
0
Dec 2, 2024 9:47:00 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 10, 2015 1:49:18 GMT -8
Thank you, it works wonderfully.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 10, 2015 5:19:12 GMT -8
Thanks for the feedback @sollace, that is very much appreciated
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Feb 12, 2015 12:18:12 GMT -8
Chris - can you create custom bbcode with this (say for example I wanted to make it so [align=center] [/align] was translated to <div style="text-align: center;"> <div>
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 12, 2015 14:16:12 GMT -8
Chris - can you create custom bbcode with this (say for example I wanted to make it so [align=center] [/align] was translated to <div style="text-align: center;"> <div> The plugin does not create bbcode, that bbcode has to already exist. There is no [align] bbcode as in your example but there is a [div] bbcode supported by Proboards which means you could create a button that outputs a div with an align attribute set to center: [div align="center"][/div].
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Mar 26, 2015 2:01:57 GMT -8
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.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 27, 2015 23:50:00 GMT -8
Thanks for the info adminabp, I'll look into this at my earliest opportunity
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 2, 2015 19:06:08 GMT -8
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
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Apr 5, 2015 12:58:44 GMT -8
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
Thank you! It seems to be working great.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 9, 2015 15:30:08 GMT -8
Thanks for the feedback adminabp, please don't hesitate let me know if you encounter any other problems or wish to make a suggestion.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 17, 2015 20:18:54 GMT -8
pragma_content=[hr][c][img]http://storage.proboards.com/3201702/i/O_Bnp1cyjeQKkiDOnr2H.png[/img][/c][c]This player has cast Cure! A green leaf appears over their head and heals a small portion of their damage, recovering 25 HP! [/c][c] Cure may not be used again for three turns.[/c] The problem looks to be the use of a square bracket as the first character in the attribute (i.e. after the "=" sign). This is because that is also the way to create a drop down menu You can specify a 'select' element to limit responses to valid choices or 'selectMenu' to give it that V5 look
*hover over images to see attribute format
I do remember changing the attribute detection method in the basic version back when you were using that version so it could tell the difference between a menu and your bbcodes in pragma_content but I never did the same for the Control Freak version. You should be able to start the attribute with a letter or number as the first character then you can add any combination of bbcode you want after that until I have a chance to make the change to the Control Freak version as well.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Dec 2, 2024 9:47:00 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 18, 2015 16:34:17 GMT -8
pragma_content=[hr][c][img]http://storage.proboards.com/3201702/i/O_Bnp1cyjeQKkiDOnr2H.png[/img][/c][c]This player has cast Cure! A green leaf appears over their head and heals a small portion of their damage, recovering 25 HP! [/c][c] Cure may not be used again for three turns.[/c] The problem looks to be the use of a square bracket as the first character in the attribute (i.e. after the "=" sign). This is because that is also the way to create a drop down menu You can specify a 'select' element to limit responses to valid choices or 'selectMenu' to give it that V5 look
*hover over images to see attribute format
I do remember changing the attribute detection method in the basic version back when you were using that version so it could tell the difference between a menu and your bbcodes in pragma_content but I never did the same for the Control Freak version. You should be able to start the attribute with a letter or number as the first character then you can add any combination of bbcode you want after that until I have a chance to make the change to the Control Freak version as well. Ill wait for the update. But I am having a problem. I cant seem to get the settings right to convert lists to a drop down properly.
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 19, 2015 20:58:12 GMT -8
|
|