Home arrow Forum

Remository Forum

 


siandiaox

Karma: 0  
Email - 2010/08/20 08:00 Hi guys,

i only wants to send email to my super admin account whenever there is a document to approve as i had allow certain user's upload to be auto approved while others need to be approved by me (super admin) before uploading. the current option i have is to either send all uploads notification or send none via

Send_Sub_Mail:
(Send an Email to the admin (or alternate) when a user submits a file)

is there anyway i can edit the file to make it in such a way that the email is only send to me whenever there is a document that i need to approve?

Thank you in advance. : )
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Email - 2010/08/22 17:13 You could modify the file ../com_remository/c-classes/remository_savefile_Controller.php. Look around line 129 for:

Code:

  if ($this->repository->Send_Sub_Mail$this->repository->sendAdminMail($this->remUser->fullname.' ('.$this->remUser->name.')'$newfile->filetitle$newfile->containerid$newfile->published);



and try changing it to:

Code:

  if ($this->repository->Send_Sub_Mail AND !$this->remUser->hasAutoApprove($container)) $this->repository->sendAdminMail($this->remUser->fullname.' ('.$this->remUser->name.')'$newfile->filetitle$newfile->containerid$newfile->published);

Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 8 guest online