Quote:
Originally Posted by Simon Lloyd
Cellarius, don't get me wrong, i'm no coder by any means, it's just thats the way i have always (not too many times) done it.
|
Of course you are free to do so if you prefer that method, I just don't think it should be recommended, as it just is not how it is done in vB and does have drawbacks.
Quote:
As for the whole admin's....etc changing things, i was purely talking from ease of operation for myself, i have used a similar conditional to allow certain usergroups to view some content, then when i have added usergroups it made it ease for me to find and change.
|
Then it would be still better to add an AdminCP setting where you can add/change those usergroups easily. You still would have to remember to do it, and a code fragment at the top of a php file seems not harder to find than a conditional in a template, IMHO.
Quote:
I wasn't questioning your method & capability,
|
I did not take it that way.
Quote:
just asking for information as to why, now that i know i would implement that, but it does make it difficult for adding or removing usergroups access.
|
As I said: Not really. Opening a php file and changing the code there is not really harder than editing a template. If you don't want to do that, set up an AdminCP setting for it. That would probably be the most comfortable way.