Mod Request - Autho...
 
Notifications
Clear all

Mod Request - Authors cannot delete their stories without admin's approval

4 Posts
3 Users
0 Reactions
1,630 Views
(@emmekappa)
Posts: 27
Eminent Member
Topic starter
 

Hi,
I'm writing on behalf of fanfiction.eragonitalia.it.
He wanted to ask for a mod or a new option for efiction: authors cannot delete their stories without admin's approval (throught mail or similar).
Is it possible to have such an option?
Maybe activated throught the Submission Settings?

Thank you!

Maki


 
Posted : 04/05/2010 5:06 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

You will have to mod the stories.php file:

Find the delete() function:

function delete ( ) {

In that function, find:

	else if($confirmed == "yes") {

Replace with:

	else if($confirmed == "yes" && isADMIN) {

(OK, I modded our delete() so I'm not sure how to explain the latter bit/I didn't keep the original function.)

Find:

		$output = write_message(_ACTIONSUCCESSFUL."  ".($admin ? _BACK2ADMIN : viewstories( )));
}
else {

Now, within the else { } bracket, you will need to replace the current code with something like this:

if ($chapid) { # Chapter

if (isADMIN)
  $output .= write_message(_CONFIRMDELETE."<br /><br />[ <a href=""stories.php?action=delete&amp;confirmed=yes&amp;chapid=$chapid&amp;sid=$sid".(!empty($admin)" ? "&amp;admin=1&amp;uid=".$uid : "")."">"._YES."</a> | <a href=""stories.php?action=delete&amp;confirmed=no">"._NO."</a>" ]");
else
  $output .= write_message("Sorry, you are unable to delete this chapter; please contact the administration.");
 
}
else { # Story

if (isADMIN)
  $output .= write_message(_CONFIRMDELETE."<br /><br />[ <a href=""stories.php?action=delete&amp;confirmed=yes&amp;sid=$sid".(!empty($admin)" ? "&amp;admin=1&amp;uid=".$uid : "")."">"._YES."</a> | <a href=""stories.php?action=delete&amp;confirmed=no">"._NO."</a>" ]");
else
  $output .= write_message("Sorry, you are unable to delete this submission; please contact the administration.");

}

/untested.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 07/07/2010 1:31 pm
(@tammy)
Posts: 2577
Member Moderator
 

This mod isn't exactly what she's looking for.  This will make it so only admins can delete stories.  However, anything else would be very complicated to do.


 
Posted : 09/07/2010 2:07 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Ah right, she wants something that will allow the author to delete it if the admin okays it. 😐 Yessss, I imagine that would be pretty complicated. Hopefully, they already found a solution then. ]:


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 09/07/2010 6:15 am
Share: