[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
SIMPLECommunity.org • View topic - deleting items causing problem

deleting items causing problem

Any technical questions (installation, configuration etc) should be posted here!

deleting items causing problem

Postby rsingh on Mon Sep 07, 2009 4:35 am

rsingh
Active
 
Posts: 22
Joined: Wed Aug 26, 2009 7:50 am

Re: deleting items causing problem

Postby mhughes2k on Mon Sep 07, 2009 1:35 pm

I'll look into the error message, it seems to be trying to update the "read" state with an invalid id...

The short answer is that you can't, without re-writing the SQL statement for "deleting" documents, which should be in the Document.class.php file

"Non-deletion" of especially documents is an explicit design decision that we made with SIMPLE as one of the more frequent queries that we get from students is "I've deleted a file I didn't mean to delete, can you get it back?". So SIMPLE doesn't delete files, it merely hides them (from students).

The flip side is that every user that has the "UseStaffTools" permission within a simulation can see both the normal AND "deleted" files (hence the 'striked-out' formatting), and can un-delete them.

Deleted files are *never* sent to the "student" ui (i.e. it's not just hidden in the html, it is never written in to the HTML stream).

This is a design decision that I don't expect that we'll change (for a start the overheads are fairly minimal, and cos its database-backed we don't have to worry about file-name collisions), so if you do change the deletion SQL, *you'll* have to make sure that future versions don't undo those changes.

It may be worth considering implementing a user-preference that would allow each user to choose whether they want "deleted" items appearing (or not) if they have the "UseStaffTools" permission in a simulation, although it's not on *our* current list of features.
Hope this helps.

M!

Application Developer, LTDU
SIMPLE Project Core Team
(w) http://personal.strath.ac.uk/michaelhughes/
(e) michaelhughes@strath.ac.uk
(twitter): http://twitter.com/mhughes2k
mhughes2k
SIMPLE Core Team
 
Posts: 130
Joined: Tue Jul 01, 2008 12:05 pm
Location: Glasgow

Re: deleting items causing problem

Postby mhughes2k on Mon Sep 07, 2009 1:58 pm

Hope this helps.

M!

Application Developer, LTDU
SIMPLE Project Core Team
(w) http://personal.strath.ac.uk/michaelhughes/
(e) michaelhughes@strath.ac.uk
(twitter): http://twitter.com/mhughes2k
mhughes2k
SIMPLE Core Team
 
Posts: 130
Joined: Tue Jul 01, 2008 12:05 pm
Location: Glasgow

Re: deleting items causing problem

Postby rsingh on Tue Sep 08, 2009 1:33 am

rsingh
Active
 
Posts: 22
Joined: Wed Aug 26, 2009 7:50 am


Return to Technical

Who is online

Users browsing this forum: No registered users and 2 guests

cron