Mar 19th, 2009, 3:52 PM
Heya,
Unfortunately not. This seems like a very reasonable addition, though, so I'll add it to the feature request list.
If you're going to edit the pages, I'd suggest just removing the field and adding it as a hidden field. This won't be hacker proof, but it'll be by far the simplest from a coding standpoint.
Also (and I apologize for speaking in general terms), I'd suggest making a new theme for it, then override this page only. This will make it as upgrade-friendly as possible. Themes work by using the theme's file IF it exists, if it doesn't, it uses the appropriate file in the default theme. There's loads more info on theme development here:
http://docs.formtools.org/theme_development/
Hacking IS the way, unfortunately. I may well add a custom module for this at a later stage, but right now I'm focusing on the essentials.
Frankly it's a pretty sizable job: you'll need to first create new fields in the database for your info (or use the account_settings table - which would probably be a better approach), second you'll need to first edit the template files (I'd suggest a new theme for this, as mentioned above), to include your new fields for both the admin and client pages. Then you'd need to update the actual PHP code to store the new values.
The problem is modifications of this nature will almost certainly cause problems if you plan on upgrading any time in the future. So on that note, you might want to wait a month or so until most of the more substantial bugs are weeded out of the Core code - just so your own version will be based on a more stable foundation.
Sorry for the rather general nature of my remarks... it's certainly very do-able to make these mods, but it WILL take a little work.
- Ben
Quote:1. Client Username permission. I would prefer that the client NOT be able to modify the Username at all. I want to allow the remainder of the information, just not that one. So my question is this... is there a way to turn this off without having to hack files and remove the <input> altogether? If not, what pages should I make the changes on to prevent them from making changes?
Unfortunately not. This seems like a very reasonable addition, though, so I'll add it to the feature request list.
If you're going to edit the pages, I'd suggest just removing the field and adding it as a hidden field. This won't be hacker proof, but it'll be by far the simplest from a coding standpoint.
Also (and I apologize for speaking in general terms), I'd suggest making a new theme for it, then override this page only. This will make it as upgrade-friendly as possible. Themes work by using the theme's file IF it exists, if it doesn't, it uses the appropriate file in the default theme. There's loads more info on theme development here:
http://docs.formtools.org/theme_development/
Quote:Is there a simple way to add these additional fields (globally) or is this something else I would need to hack at? And if hacking is the way, what files need the updating?
Hacking IS the way, unfortunately. I may well add a custom module for this at a later stage, but right now I'm focusing on the essentials.
Frankly it's a pretty sizable job: you'll need to first create new fields in the database for your info (or use the account_settings table - which would probably be a better approach), second you'll need to first edit the template files (I'd suggest a new theme for this, as mentioned above), to include your new fields for both the admin and client pages. Then you'd need to update the actual PHP code to store the new values.
The problem is modifications of this nature will almost certainly cause problems if you plan on upgrading any time in the future. So on that note, you might want to wait a month or so until most of the more substantial bugs are weeded out of the Core code - just so your own version will be based on a more stable foundation.
Sorry for the rather general nature of my remarks... it's certainly very do-able to make these mods, but it WILL take a little work.
- Ben