inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 10, 2021 16:20:42 GMT -8
Would it even be possible to make a plugin for this?;; Basically I'm trying to make a custom fictional currency symbol, and want to be able to use it on my forum.
This can technically be done by adding the symbol into a custom font and linking said font to the forum stylesheet, but in order to use the symbol I'd then only be able to use it with the one font. Which means I would have to either only ever use that font (as a graphic designer, that idea does not at all appeal to me), or I'd have to specifically put in the code for the custom font for just that character every time I want to use it. Which means that members of the forum would also have to deal with that headache.
So is there a way to make a plugin that makes this less complicated?
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Nov 10, 2021 17:08:38 GMT -8
In theory, what you could do is create a transparent PNG approximately the size of your default forum text and use the censored word list to swap it out. Of course, that wouldn't be ideal if images don't load, if your text changes size, etc.
You could expand on the custom font idea by having a font that consists of *only* that entity, then using the censored words list to convert your selected trigger phrase to the appropriate font code.
EG: If you have "MoneyFont" as a linked font, you could do something like :moneyfont: as a censored word, then set it to be replaced by [font style="font-family: 'MoneyFont';"]$[/font].
This way, you can pair the font with other fonts on your forum/themes, be able to change the font size/colour/whatever, your users would only have to memorise whatever censored word/phrase you decide to use, and you avoid using images.
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 10, 2021 19:17:53 GMT -8
Wait, you can put code into those fields?
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 10, 2021 21:05:49 GMT -8
Okay, so this works pretty well for posts, but I still have to change it manually anywhere I do coding. It also doesn't work at all in the News feed. Nor can I use code in the news feed. This is what it does in the news feed when I use the exchange character.
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Nov 10, 2021 21:26:16 GMT -8
Okay, so this works pretty well for posts, but I still have to change it manually anywhere I do coding. It also doesn't work at all in the News feed. Nor can I use code in the news feed. This is what it does in the news feed when I use the exchange character.
Yeah, this is just for posts. You can achieve a similar effect for HTML / the rest of the forum (sorry I thought you meant posts only), with this plug-in: www.proboards.com/library/plugins/item/194
I don't know if it will impact the news feed though, I never use the news field.
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 10, 2021 21:27:25 GMT -8
Oooh! Handy, thank you!
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 10, 2021 21:32:29 GMT -8
I spoke too soon;; It's actually not working with the code at all.
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Nov 10, 2021 22:10:20 GMT -8
I spoke too soon;; It's actually not working with the code at all.
How do you have it set up? Screenshots would be beneficial since I don't remember what the interface looks like haha (:
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 11, 2021 8:20:08 GMT -8
Like so. I'm going to just make a copy of the default font with the changed symbol, though, and set THAT one as the default font.
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Nov 11, 2021 8:56:54 GMT -8
<p>
Like so. I'm going to just make a copy of the default font with the changed symbol, though, and set THAT one as the default font. Try HTML not BB Code (**probably won't work on the news fader) and use a different trigger for the HTML version; you can use the same code just swap out the square brackets for pointed < > instead</p>
|
|
inherit
256000
0
Jul 1, 2023 20:17:36 GMT -8
Nyxira
46
August 2018
nyxiraulwun
|
Post by Nyxira on Nov 11, 2021 9:51:45 GMT -8
Noted, thanks. Tweaking the font seems to have done the trick, though, since I just made it the default.
|
|