inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 14, 2015 12:20:02 GMT -8
I'd like to request a plugin that can create a warning BBCode. Basically, the format would be: [warning]Warning text here[/warning] and have it display like in this post by David Clark: support.proboards.com/post/6215310/threadThe box would have to adjust to the amount of text included (if possible) so it's not too big for the text or cuts text off. If an icon can be added to the BBCode tray, this would be an added bonus, but not necessary. If an icon is added, it could ask for the text and then (if possible) create the box to contain the text. Thank you. EDIT: Thanks to Pebble, this is no longer needed.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 15, 2015 13:17:14 GMT -8
Does anyone know if this is possible?
Thanks!
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Feb 16, 2015 16:00:30 GMT -8
Where do you want this box to display?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 16, 2015 16:07:14 GMT -8
Thank you, Pebble, for replying. Wherever the User puts it in their post - creating a thread, Reply and Quick Reply - no need for message boxes (at least for me). An example of a post: Some text here ... [warning]Warning text[/warning] ... Some text here Basically, the box would be placed at the position the code called for it in a post (wherever in the post the warning was called) - much like images or video. If you need me to elaborate more, I'd be happy to.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Feb 16, 2015 16:12:47 GMT -8
You can do this through your censored word list.
Add [warning] and the text to change it to : [div style="text-align:center;width:340px;height:100px;border:1px solid red;"][span style="vertical-align:middle;"]
And add: [/warning] and the text to change it to : [/span][/div]
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 16, 2015 16:18:46 GMT -8
Thank you very much, Pebble! I had no idea you could use the censored word list in this fashion. Thank you again!
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 16, 2015 16:29:35 GMT -8
It works great, Pebble. Just one question (I don't know HTML very well). Is it possible to have it automatically add the word Warning! and insert enough CR's to where the user enters it like this: [warning]Warning text here.[/warning]
and have it show like this: Warning!
Warning text here.
where the word Warning! and a blank line are automatically added?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 16, 2015 16:58:00 GMT -8
Nevermind. I played around with it and changed this:
[div style="text-align:center;width:340px;height:100px;border:1px solid red;"][span style="vertical-align:middle;"]
to this:
[div style="text-align:center;width:340px;height:100px;border:1px solid red;"]Warning![ br ][ br ][span style="vertical-align:middle;"]
Basically adding the Warning! and 2 breaks in between the div and span.
Thanks again for your help!
EDIT: apparently the '[ br ]' (without the spaces) still execute inside a code box. I've edited the 2nd code box (using spaces) to denote where the 2 breaks are.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Feb 16, 2015 17:25:10 GMT -8
Seen in action here with credit given to Pebble for the technique used. Editing OP to reflect this is no longer needed.
|
|