Change logo in OpenEdx password recovery email - openedx

As an student when you try to reset your account's password, the received confirmation email from Open edX instance has edX's logo which I want to customize and change it with my own corporation's logo.
I have managed and found the body.html here:
common/templates/student/edx_ace/passwordreset/email/body.htm
but it has extended another file ace_common/edx_ace/common/base_body.html which I cannot find.
Could you help me please?
Thanks in advance

You can find base_body.html here:
./openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_body.html
But modifying that file wouldn't be a good idea. The better one is to enable comprehensive theming and override it like they do in their example theme (red-theme). To do so check this one:
./themes/red-theme/lms/templates/ace_common/edx_ace/common/base_body.html

Related

GeneXus - GXFlow : How to retrieve username of the user

I'm working with GeneXus and I'm trying to create a Business Process Diagram for GXFlow.
I need to read the logged user's username.
I've tried to read the &WorkflowUser.Name variable but it doesn't work.
How can I do that?
Thanks!
If you have the same problem, this is the solution:
http://wiki.genexus.com/commwiki/servlet/wiki?10645,HowTo%3A+Getting+Logged+User

Spreadsheet : Issue in fetching current user email id

I am using Session.getActiveUser().getUserLoginId() to fetch the current user's email id but other than creator of the spreadsheet it is returning empty string. I have also used getEffetiveUser() but no hopes.
I will be appreciate if i could get some suggestions on this.
Many Thanks in advance.
Regards,
Chetan
Quote from the Google documentation:
If security policies do not allow access to the user's identity, User.getEmail() returns a blank string
Note that User in the above code is a sort of "placeholder" for the "User" class, which the Session.getActiveUser() returns.
If your script is set to:
web app deployed to "execute as me"
You can not get the user email.
So, the one thing I can tell you for sure, is that your code does not have permission to get the user info. I can't tell you why, because I don't know the conditions and settings under which your code is running.
Link to Google Documentation for getActiveUser method

Jira: Creating Issues and Comments from Email with no subject

I'm looking for a way to control the way the "Creating Issues and Comments from Email" works. At the moment since we are using the built in system any received email that has no subject cause the service to fail with the message "Issue must have a summary. The mail message has an empty or no subject.". Every time this happens we have to process the email manually.
Do you know of any way around this?
EDIT
The emails are being sent by customers, so I can't enforce all of them to send a subject.
The problem is that the mail creation service won't process the email once it has no subject.. so setting default value won't help. The only way i can think of is rewriting the mail service. Does anyone knows how could i do that? i I found the original source code here, but not sure how to build and deploy it.
Anyway can think of any other way?
Thanks!!
I assume that you just added some service to Jira in admin interface which automatically serializes emails.
If you want to fully customize the default behaviour, you can write your own simple jira plugin.
See the Atlassian pages:
https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project
https://developer.atlassian.com/display/JIRADEV/Component+Plugin+Module
Your atlassian-plugin.xml should include something like:
<component key="message-handler-factory" class="com.atlassian.jira.plugins.mail.internal.DefaultMessageHandlerFactory" public="true">
<interface>com.atlassian.jira.service.util.handler.MessageHandlerFactory</interface>
</component>
You can for example extend the CreateOrCommentHandler class.

Email creates new record in rails3?

I'm not really sure where to start with this one, but here is what I'm looking to do.
Lets say you've registered at a website (yourwebsite.com). Your username/email is joe#shmoe.com.
If you email newrecord#yourwebsite.com, I'd like a new record created by your user (meaning you have to email it from a registered user's email - such as joe#shmoe.com).
I'd also like to add some variables in the email body, that can be set to their respective fields in the new record.
Does anyone know if this is possible?
sure is possible - have a look at http://cloudmailin.com/ too - they do all the receiving side of things for you and then just 'post' the email into your application.
It's definitely possible - that functionality is available in basecamp.
I've never done it myself, but looks like this article describes how to process incoming emails in rails. Good luck!

Rails How to easy show hide user fields?

I want easy implement a show hide funktion on sertant fields. Like birthday or email for a user. Example if the user has chosen to hide his email it wont display in his profile.
How do i create this?
Best regards,
A Rails (3) beginner
One option would be creating a model to store user preferences in to keep track of what the user wants to show/hide. Another option is to use one of the gems out there that will help you accomplish this task.
Just looking on github, I came across https://github.com/pluginaweek/preferences.

Resources