L3010
New Member
Posts: 49
inherit
264353
0
Mar 4, 2023 7:57:32 GMT -8
L3010
49
May 2021
l3010
|
Post by L3010 on Nov 9, 2021 5:36:40 GMT -8
Hi! I want the posting page / wysiwyg editor and bbcode editor to display in different colors depending on what category a user is posting in. Does anyone know how to do this?
I have two ideas:
A: Getting a variable or a word representing the current category with CSS or JavaScript (at postingpage)
B: Saving a user-specific Plugin-key when clicking the "new post"-button (at thread) that stores information about what category the user is in Thanks! Leo
|
|
inherit
Official Code Helper
65613
0
1
Sept 28, 2022 13:12:14 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,835
December 2005
horace
|
Post by Chris on Nov 9, 2021 8:50:03 GMT -8
The category header is tailor-made for such a task EDIT:
If you're intending this for a theme-specific setting rather than across all themes then the summary page has the category_id variable necessary to get you started
|
|
L3010
New Member
Posts: 49
inherit
264353
0
Mar 4, 2023 7:57:32 GMT -8
L3010
49
May 2021
l3010
|
Post by L3010 on Nov 10, 2021 1:13:00 GMT -8
I solved the problem. Thanks for reminding me about category headers!
I solved the problem by cahnging CSS-variables in <style>-tags in category headers.
|
|