Mod Request -Allow ...
 
Notifications
Clear all

Mod Request -Allow Rejection/Acceptance Letter to also be sent to admin address

24 Posts
8 Users
0 Reactions
4,139 Views
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

I am hoping somebody can help me out. I have my site set to open submissions. I am using the 'invalidate' mod by jrabbit and I only use the acceptance/rejection letter if I have to invalidate a story for some reason. Is there a way that when an admin sends the rejection/acceptance letter that it could also be sent to an admin e-mail too? It would be fine if it just went to all the admins that are listed on the site or if I can just add in a specific e-mail.

My signature has my basic site info. I haven't upgraded to 3.2.1 yet but will be doing that later tonight or tomorrow. So hopefully it will be something that works regardless of 3.2 or 3.2.1.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 18/03/2007 7:00 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Wow, that's a good idea. That way, the other admins would know that a story was checked and WHY a story was rejected.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 18/03/2007 8:27 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

That was the idea...make it easier for admins to know what's going on. πŸ™‚


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 18/03/2007 9:07 pm
(@soundspretty)
Posts: 65
Trusted Member
 

I would love that. I know sometimes I can't even remember a story that I validated/rejected so when an author wants to ask about it I'm like "Um..."  πŸ˜†


 
Posted : 19/03/2007 8:07 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

Just thought of another good reason...it would make it easier to know that the rejection/acceptance letter actually got sent.

Anybody know how this can be done? I imagine it can't be that complicated.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 21/03/2007 6:34 am
(@livia)
Posts: 30
Eminent Member
 

I tried to do that to keep track of moderation - though I'm not using this method right now.
Anyway, you should do something like this:

Open admin/yesletter.php

after line 37 ( $result = sendemail($_POST['authorname'], $_POST['authoremail'], $adminname, $ademail, $subject, $letter, "html");) add:

$result2 = sendemail($adminname, "email@email.com", $adminname, $ademail, $subject, $letter, "html");

Where "email@email.com" is the email you want to send the copy of the email to. (This is for just a specific email address - you can use $siteemail if you want it to be the official email address of your site. To send copies of the email to every admin would be a little more complex.)


URL to your eFiction: http://www.acciofanfiction.com/index.php
Your version of eFiction: 3.5.1 (Italian language)
Version of PHP: 4.4.8
Version of MySQL: 4.1.22

 
Posted : 22/03/2007 5:46 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

I'll try this out when I get a chance. Modding the yes/no letters has been on my list of things to do, because we run a moderated-submission site and always send out a letter either way. We have a Yahoo group for the mods where we post the letters so we can all see what's going on, and lately have been copy-pasting it to the group.  This should help us out tremendously!


 
Posted : 22/03/2007 8:23 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

I tried it and unless I just suck it didn't work. I just add the line below line 27 and changed the e-mail to my address. I even tried a few different e-mails and the $siteemail. No luck.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 22/03/2007 11:01 pm
(@soundspretty)
Posts: 65
Trusted Member
 

I would think you'd have to mod the e-mail form...  😐


 
Posted : 22/03/2007 11:08 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Hmm... I just did this mod and it's sending to our Yahoo Group beautifully.  I'm on 3.2.1 and use Firefox if that helps anyone who might try to figure it out.

Saturn, did you really put it after 27 or is that typo? It goes after 37.

You can also change the email form to display different things, though I haven't tried getting it to send to multiple addresses that way.  I've got it including the story and chapter title in the subject line and display the authoremail, stuff like that.


 
Posted : 23/03/2007 12:06 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

That was a typo. I put it on the line after 37. I only tried it on the noletter.php. I ssumed it would be the same for each one. I'll try again after I upgrade to 3.2.1.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 23/03/2007 12:46 am
(@livia)
Posts: 30
Eminent Member
 

That was a typo. I put it on the line after 37. I only tried it on the noletter.php. I ssumed it would be the same for each one. I'll try again after I upgrade to 3.2.1.

No, you have to modify only yesletter.php  (and it will work for both) πŸ™‚ Sorry, I forgot to say it in the last post; this is because even if noletter.php includes all the instruction to send the email, its form point to yesletter.php and uses its script. Just have a look at line 59: you'll see from

action="admin.php?action=yesletter&uid=".$story['uid']."&chapid=".$_GET['chapid'].""

that the form points to the 'yesletter' panel. Perhaps this is something that should be corrected (let's say, a minor bug?), but I advice you not to change anything in noletter.php and just modify yesletter.php.


URL to your eFiction: http://www.acciofanfiction.com/index.php
Your version of eFiction: 3.5.1 (Italian language)
Version of PHP: 4.4.8
Version of MySQL: 4.1.22

 
Posted : 23/03/2007 5:35 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

That's what I get for thinking. πŸ™‚

I'll mod the yesletter and see how that works. Thanks.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 23/03/2007 1:54 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

Works fine now. πŸ™‚


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 25/03/2007 5:57 pm
(@tammy)
Posts: 2577
Member Moderator
 

You know you could have just turned logging on and set the admin log to be viewable by admin level 3 instead of 1.


 
Posted : 25/03/2007 6:16 pm
Page 1 / 2
Share: