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 Jan 29, 2013 12:56:40 GMT -8
I'll try to explain and make some sense!
If I write a plugin there is an option to select a cat/board. I can then add into the plugin a check to see if the current cat/board is on the selected list. BUT I think this be easier for the coder (not having to put this same code in multiple plugins) and for the Admin just to selct this from the ADMIN > PLUGINS > MANAGE > EDIT area? Have the default set to all and then if they dont want it to run on certain boards/cats they can just de-select it.
Also , I noticed that there isn't an option in the user tabs to select home page which means adding another tab..... (Sorry if I'm missing something obvious!)
Thanks for any feed back on this.
|
|
inherit
Graphics Ninja
3
0
Nov 19, 2012 12:17:26 GMT -8
Ryan Roos
Wordsmyth
35,133
November 2003
ryan
|
Post by Ryan Roos on Jan 29, 2013 14:19:41 GMT -8
Plugins are not by Category and Board. They are by Member Group and Themes (click the Permissions button).
If (and that's a fairly large if) a plugin author creates a plugin that is only going to be used in a certain plugin or board then they can add that code themselves.
Now you can argue this two ways, but both arguments defeat each other. Either "A" the code for making a plugin work in categories and boards is simple and always the same; in which case you can just keep a copy of it on your computer somewhere in a notepad if you;re an author who makes lots of plugins. Or "B" the code is more complex and unique in each plugin because of the things it ties into; in which case you need to write the code in the plugin each time you make one from scratch. Either way it means that external control is not the best option.
And just to reiterate, most plugins don't require that level of specificity. However in the event that they do we already provided the tools necessary to authors.
Thank you though.
Edit: I don't understand what you're saying about the user tabs and the home thing.
|
|
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 Jan 29, 2013 14:44:49 GMT -8
Thanks for the reply Ryan. I didn't explain myself properly (and reading my post again my grammar isn't that good either!) I might come back to this in the future (in this thread) if you don't mind but by the time I've decided how to explain it I could have just added a board/cat check into the plugins to see if the plugin should run.
Cheers, keep up the good work!
|
|