Thinking about designing a CMS sort of system...
Posted: Fri Sep 10, 2004 6:44 am
Well i've been a member here for a long time, havent really posted a lot, dunno why... anyways, one of my aspirations is to design a nice "CMS" for myself, and others (if they're interested). So yeah, "wow" another CMS... well, the only reason i want to take on the task of writing my own, is because I think i can improve some areas that really seem to be quite simple in CMS's that are already available. I want to include better theme support, more interactivity, and better member permissions... or easier to use anyways.
So, where i think this fits in with "advanced topics" is the member permission setup I have going. I think it will work, but I could use some expert opinions and advice.
My Idea for member permissions:
Group Table:
group_id int
permission_id int
group_name text
Permission Table:
permission_id int
group_id int
permission_array text
Member Table (applicable fields)
group_id int
preferences_id int (this is for site preferences, etc)
Preference Table:
preference_id int
preference_array text
So with this setup, i've contemplated that you can assign a user to a specific group... then that group is linked to a set of permissions... then as they go through the site, their permissions are determined... one thing though, if i need to give one user a specific, unique set of permissions... then i have to make one group especially for them... unless, i go around the group table, and assign a permission id instead of a group id, but then, it may become a bit confusing as it really goes around the way i've designed it.
thoughts and ideas about permissions setup?
anyways, for my theme stuff... i'm not going to be sharing a whole bunch, but i'm just wondering what you all think the preferred methods would be. As of now, i've created my own parsing functions. The parsing function reads a template file... looks for special XML-like tags, snatches them out and constructs an array of the values for it. I'm not having a problem with it, but I'm wondering if there'd be a better way to do themes, or if you have any links, or suggestions about "ideal" theme handling in PHP.
Anyways, with this bit said, I'd like to show you some of my progress on a test i've been working on to deal with menus and themes it would give you an idea of some of the stuff i'm trying to accomplish... so the main page: http://scripts.joshstmarie.com/menu.test/
theme test one: http://scripts.joshstmarie.com/menu.test/?theme.1
theme test two: http://scripts.joshstmarie.com/menu.test/?theme.2
menu movement test: http://scripts.joshstmarie.com/menu.tes ... oveLinks.1
source code to my functions file which handles pretty much everything (just for general interest... it's really chunky.. but Dreamweaver messed up the tabs!!)
http://scripts.joshstmarie.com/menu.test/Functions.phps
anyways yeah, thoughts and opinions on what i'm trying to do would be appreciated... (and yes, i know my code is messy as hell, but it's a working version... and i'm still trying to work it all out in my head
)
PS: i've looked at viewtopic.php?t=25565&postdays=0&postorder=asc&start=0 for ideas on my permission setup too.. just so you know it's not like i'm not looking around
So, where i think this fits in with "advanced topics" is the member permission setup I have going. I think it will work, but I could use some expert opinions and advice.
My Idea for member permissions:
Group Table:
group_id int
permission_id int
group_name text
Permission Table:
permission_id int
group_id int
permission_array text
Member Table (applicable fields)
group_id int
preferences_id int (this is for site preferences, etc)
Preference Table:
preference_id int
preference_array text
So with this setup, i've contemplated that you can assign a user to a specific group... then that group is linked to a set of permissions... then as they go through the site, their permissions are determined... one thing though, if i need to give one user a specific, unique set of permissions... then i have to make one group especially for them... unless, i go around the group table, and assign a permission id instead of a group id, but then, it may become a bit confusing as it really goes around the way i've designed it.
thoughts and ideas about permissions setup?
anyways, for my theme stuff... i'm not going to be sharing a whole bunch, but i'm just wondering what you all think the preferred methods would be. As of now, i've created my own parsing functions. The parsing function reads a template file... looks for special XML-like tags, snatches them out and constructs an array of the values for it. I'm not having a problem with it, but I'm wondering if there'd be a better way to do themes, or if you have any links, or suggestions about "ideal" theme handling in PHP.
Anyways, with this bit said, I'd like to show you some of my progress on a test i've been working on to deal with menus and themes it would give you an idea of some of the stuff i'm trying to accomplish... so the main page: http://scripts.joshstmarie.com/menu.test/
theme test one: http://scripts.joshstmarie.com/menu.test/?theme.1
theme test two: http://scripts.joshstmarie.com/menu.test/?theme.2
menu movement test: http://scripts.joshstmarie.com/menu.tes ... oveLinks.1
source code to my functions file which handles pretty much everything (just for general interest... it's really chunky.. but Dreamweaver messed up the tabs!!)
http://scripts.joshstmarie.com/menu.test/Functions.phps
anyways yeah, thoughts and opinions on what i'm trying to do would be appreciated... (and yes, i know my code is messy as hell, but it's a working version... and i'm still trying to work it all out in my head
PS: i've looked at viewtopic.php?t=25565&postdays=0&postorder=asc&start=0 for ideas on my permission setup too.. just so you know it's not like i'm not looking around