Ebony
New Member
Eheheh?
Posts: 85
inherit
217054
0
Oct 12, 2021 21:15:01 GMT -8
Ebony
Eheheh?
85
December 2014
deathsex666
|
Post by Ebony on Jun 8, 2015 6:47:05 GMT -8
So I feel really stupid for asking this, but I need some help with the settings and all for a plugin.
So I decided to modify the My Notes plugin so that it allows me to choose the colors I want for the notepad. After I made that happen I planned to make it so that other users could decide what colors they wanted for the background and text of their own notepads.
However, I can't quite understand how to work my variables "background_color" and "text_color". Not sure what to do about it, and I would really like some help on this...
Sorry for asking, the answers are prolly right in front of my face X3
Thanks in advance!
-Ebony
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 8, 2015 10:13:57 GMT -8
Hey Ebony, When it comes to plugin settings, those are things that only staff members will be able to modify, so using plugin settings to allow users to change their own notepad colors is not really viable. You will need a way to save the choice of any given user so the color can be re-applied on pageload as they move around the forum. If you wanted my recommendation, I would put in a field that allows users to input a hex code for the text color, then one for the background color, then just save those values to localStorage so you don't have to use a key to keep track of users' preferences.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Jun 8, 2015 13:15:41 GMT -8
So I feel really stupid for asking this, but I need some help with the settings and all for a plugin. So I decided to modify the My Notes plugin so that it allows me to choose the colors I want for the notepad. After I made that happen I planned to make it so that other users could decide what colors they wanted for the background and text of their own notepads. However, I can't quite understand how to work my variables "background_color" and "text_color". Not sure what to do about it, and I would really like some help on this... Sorry for asking, the answers are prolly right in front of my face X3 Thanks in advance! -Ebony Definitely don't want to do it in the plugin settings. Since the colors are defined in the css, it's not going to be simple to allow a user to set their own colors. I only spent an hour on making My Notes plugin because it was for a sole user and he did all the work on it. Having that been said, I added that feature to the current plugin for you. You can hit the download link here: support.proboards.com/thread/550272/or click download here: My Notes 2-0.pbp (1.56 KB) Note: The Library Link is still not updated for 2.0 The feature is a new Button called colors so you can't miss it. Also under manage section you can add your own defaults. Thank you for choosing Pastuleo23's Plugins and have a nice day Also if you want to do it yourself that is still fine. However if you compare the old and new plugin, you will realize it practically doubles the size of the plugin (showing that it really wasn't simple to begin with) But I properly used the variables you haven't figured out how to use and you can spectate the source to understand it's workings.
|
|
Ebony
New Member
Eheheh?
Posts: 85
inherit
217054
0
Oct 12, 2021 21:15:01 GMT -8
Ebony
Eheheh?
85
December 2014
deathsex666
|
Post by Ebony on Jul 6, 2015 15:04:05 GMT -8
Definitely don't want to do it in the plugin settings. Since the colors are defined in the css, it's not going to be simple to allow a user to set their own colors. I only spent an hour on making My Notes plugin because it was for a sole user and he did all the work on it. Having that been said, I added that feature to the current plugin for you. You can hit the download link here: support.proboards.com/thread/550272/or click download here: Note: The Library Link is still not updated for 2.0 The feature is a new Button called colors so you can't miss it. Also under manage section you can add your own defaults. Thank you for choosing Pastuleo23's Plugins and have a nice day Also if you want to do it yourself that is still fine. However if you compare the old and new plugin, you will realize it practically doubles the size of the plugin (showing that it really wasn't simple to begin with) But I properly used the variables you haven't figured out how to use and you can spectate the source to understand it's workings. Thank you so much, Pastule! Greatly appreciated ^^
|
|