OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



RT- Email Colleague

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

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

RT- Email Colleague

Postby ntorres » Tue Apr 11, 2006 7:31 am

Hello
Our OJS page works withs reading tools, one of them is to send an email recommendation.
We want that everybody who is visiting our web can make a recommendation of an article using the Email Colleague Reading Tool. Now you need to be a registered user to use this link. How can I open this link to not registered users?

Thanks
ntorres
 
Posts: 65
Joined: Thu Nov 17, 2005 1:19 am

Postby asmecher » Tue Apr 11, 2006 9:03 am

Hi ntorres,

We opted not to allow unregistered visitors to use OJS's email facilities because of the high potential for abuse (i.e. using the mail form as an open relay). I'd suggest using a "mailto" link when dealing with unregistered visitors; if you construct a link along the lines of:
Code: Select all
<a href="mailto:?subject=This+Is+The+Article+Subject&body=This+Is+The+Recommendation+Message+And+Link">Recommend To A Colleague</a>
you should be able to accomplish this with the user's own email client. Construct a link like this in templates/rt/rt.tpl. I can provide more information if you wish.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8673
Joined: Wed Aug 10, 2005 12:56 pm

Postby ntorres » Wed Apr 12, 2006 1:01 am

Thanks Alec

I visited webs from the Sample of Journals Using PKP's Open Journal Systems page and some of them allow send a recommendation to colleague to unregistered users, so we decide do it.

If we decide use mailto we can use a new page with a form like email.tpl sended by mailto?

ntorres
ntorres
 
Posts: 65
Joined: Thu Nov 17, 2005 1:19 am

Postby asmecher » Wed Apr 12, 2006 9:51 am

Hi ntorres,

No, a mailto link will pop up a new email window in Thunderbird or Outlook or something else, depending on what's configured as the default mail client. This is the recommended solution, as it depends on the unauthenticated user's email tools.

To enable a template-based mail window, you'll have to change a few things:
  • templates/rt/rt.tpl: Disable the $isUserLoggedIn check around the link to emailColleague
  • Disable the logged in check (whether the user object evaluates to true) in pages/rt/RTHandler.inc.php, in the emailColleague function
Be aware that this essentially leaves OJS open as a mail relay!

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8673
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest