Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca
This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
We would like to customize the Submission Ack template. I have gotten it to look like I want except for two details:
-I want to have some text appear in italics in the email and I can't figure out how to do that. There doesn't seem to be a place to edit the font and html markup doesn't work either.
-I want to change the authorName attribute to just show the last name. I can't find the location where these attributes are set. They appear to be a difference site then the documentation states.
We are using version 220.127.116.11
- Posts: 16
- Joined: Thu Jan 16, 2014 2:01 pm
If you want to use just the author's last name in place of authorName, you'll need to make changes to the file in classes/author/form/submit/AuthorSubmitStep5Form.inc.php, which is where that parameter is used.
To add italics, you'll need to edit the email template itself. Email templates are stored in the database. Look for the template called SUBMISSION_ACK in the email_templates_data database table. You'll need to edit it for each locale you use if you want your changes to appear in different languages.
- Site Admin
- Posts: 910
- Joined: Tue Jan 10, 2006 6:20 am
Just to correct one point above -- actually, the current stable release of OJS doesn't support HTML in email. Future releases (starting with OJS 3.0) will use the 3rd-party phpmailer library to handle email sending, and this does support HTML, but if you want to back-port that to OJS 2.4.x you'll need to adapt the fixes at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7980
-- or alternately customize the existing mail classes to permit HTML by adding the required headers.
Public Knowledge Project Team
- Posts: 10015
- Joined: Wed Aug 10, 2005 12:56 pm
Return to OJS Technical Support
Who is online
Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests