Deleting and Archive issues

Hello,
I am intending to use Drupal for a Corporate document repository but I have a minor problem which I would like assitance to resolve. When a user creates content the system provides the facility to track versions. This is excellent, but if the user then deletes the content, then the complete document appears to be physically deleted from the database, and this is not suitable for a versioning system.

What I would like to know, how would I remove or deactivate the delete button so that content cannot be deleted?

Alternatively, the Delete function should only be available to the Admin user as a structured system clean-up. When a user deletes content the system should flag the content as deleted and reflect this change, not physically delete the conent from the database.

The second point related to this is that there is a module called Archive, but as far as I can tell this only displays the content that was created on the selected date. The word Archive conjurs the image of removing content from the site and making it available as a separate search option. If the delete button was to flag the content as deleted, then I would expect using Archive would allow me to see what content was deleted.

Unfortunately I am not a programmer, but at the least I would like to limit or remove the delete button from general use, and at best I would like all deleted content to be treated as a new revision and a status flag set to indicate the content as deleted, rather than the content being totally deleted from the database.

problems of upgrading from 4.6.5 to 4.7.-beta4

I got the following three errors when upgrading the database:

Image upload - some direction please

I just can seem to solve this one: Error: The uploaded file was not an image.

Oh, yes it was: 150x150 at 30k

1) I have file_uploads = On and upload_tmp_dir set in my PHP.ini
2) Clean URLS disabled
3) File system path "files"
4) Temperary Directory "files\temp" (both exist and are writeable)
5) Download method Public

When I try to upload a image for the profile I get the error "The uploaded file was not an image." I have tried several other image files... any ideas??

Next step after Fantastico install

I have installed Drupal via Fantastico. At least I think that's an installation, not just a download. But now I don't know what to do next. I have nothing to convert or transfer. I'm just looking to experiment with themes and pick one for further work.

However I'm such a complete beginner at all this that I need some step-by-step instructions to get me started. Can you point me to some help for a newbie?

Oracle doens't support DISTINCT with CLOB columns...

I still struggle with my oracle DB schema and face a problem.

I'm trying to display correctly the first Drupal page and it comes with this query (user.module):

$result = db_query('SELECT DISTINCT(p.perm) FROM {role} r INNER JOIN {permission} p ON p.rid = r.rid INNER JOIN {users_roles} ur ON ur.rid = r.rid WHERE ur.uid = %d', $account->uid);

"perm" is defined as a text column in MySQL/PgSQL schema, so I convert it to a CLOB in Oracle. But Oracle doesn't support DISTINCT clause with CLOB column.

storing extra information on node form

Ok. It's been a long week, but now i understand the use of hook_form_alter. I've altered my node form and added extra fields. ( there are a lot of them , radio buttons )

How do i get these fields into the database? I'd like to use the method the profile module uses, and shovel them into a database text field ( so many yes/no on/off choices.)

What are fields called when submitted?
Where can i hook into the process to store my data?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x