Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryE-mail notifcations for moderators when new item is uploaded ?E-mail notifcations for moderators when new item is uploaded ?
Previous
 
Next
New Post
9/12/2008 8:39 AM
 

Hi everyone !

There is something I don't understand about the repository module (with fielist skin) :

I have seen on this page that Moderators should receive a email notification when new items are uploaded to the Repository. But actually only the default Admin account receive this notificaton. The Uploader receive a email to when his upload is approved or rejected by any Moderator.

So I don't understand why others Administrators (who are Moderators by default in the repository module setings) and Moderators don't receive any email notification when there is a new upload.

If you have any idea... I may have missed a thing but I really need this fonction !

Thanks

 

 
New Post
9/12/2008 8:59 AM
 

Sorry, it's just the way the function was written, it sends an email to the portal Admin. To sendemails to moderators you'd have to change the source code and rebuild the module.

 
New Post
9/12/2008 10:58 AM
 

 

 

 

 

If

 

strMessage = ""

 

Then

 

 

 

' if no errors and the uploaded file needs to be approved, then send an email to the administrator

 

 

If Not IsTrusted(PortalID, ModuleID) Then

 

 

 

Dim objUsers As New UserControllerDim objAdministrator As UserInfo = objUsers.GetUser(PortalID, Int32.Parse(_portalSettings.AdministratorId))Dim strBody As String = ""

 

If Not objAdministrator Is Nothing Then

strBody = objAdministrator.DisplayName &

strBody = strBody &

strBody = strBody &

strBody = strBody &

strBody = strBody &

strBody = strBody &

DotNetNuke.Services.Mail.Mail.SendMail(_portalSettings.Email, _portalSettings.Email,

 

"," & vbCrLf & vbCrLf"A file has been uploaded/changed to " & _portalSettings.PortalName & " and is waiting for your Approval." & vbCrLf & vbCrLf"Portal Website Address: " & DotNetNuke.Common.Globals.GetPortalDomainName(_portalSettings.PortalAlias.HTTPAlias, HttpContext.Current.Request) & vbCrLf"Username: " & pRepository.Author & vbCrLf"User's email address: " & pRepository.AuthorEMail & vbCrLf"File Uploaded: " & strFileName & vbCrLf & vbCrLf"", "", Services.Mail.MailPriority.Normal, "ADMIN: A File is Awaiting your Approval at " & _portalSettings.PortalName, Services.Mail.Mailformat.Text, System.Text.Encoding.Default, strBody, "", "", "", "", "")End If

 

End If

 

End If

I think I have to add the "B_CanModerate" but I don't really know if I have to change other things.

Is there someone who could help me to modify the code please ?

And can I use VS2005 to build the file after it will be modified ?

Thanks

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryE-mail notifcations for moderators when new item is uploaded ?E-mail notifcations for moderators when new item is uploaded ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out