Keyword

Re: email friend don´t work

  • Emanuel Rosenzweig
  • Emanuel Rosenzweig's Avatar Topic Author
  • Offline
  • New Member
More
12 years 7 months ago - 12 years 7 months ago #63086 by Emanuel Rosenzweig
Re: email friend don´t work was created by Emanuel Rosenzweig
Hello Cleas,
After straggling with this issue and trying some suggestion in the different forums, I got to stable solution which enables sending mail to a friend both from joomla article and K2 item (the solutions I found handled only K2, but then the joomla article went without a usable link...).
It is a hack to joomla's core mailto component. I hate this idea, but this is the only solution which works for me, and I spent 3 days around this bug of K2.

Locate the file components/com_mailto/controller.php

There are two areas where you'll find JText::_('COM_MAILTO_EMAIL_NOT_SENT'). First of all, remove the spaces from both sids of the underscore which comes after JText::

Change the line (currently #51)
		
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #63087 by Claes Sundberg
Replied by Claes Sundberg on topic Re: email friend don´t work
YES YES brilliant !
It works now.
THANK YOU VERY MUCH Emanuel
I hope the K2 team read this so they can fix it
BR
Claes

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #63088 by adi
Replied by adi on topic Re: email friend don´t work
Congrats Emanuel!It's working!Unfortunatelly it's a relative big bug and nobody cares.

Hello,K2 staff, wake up!It's morning.Support 0 for begginers!What attitude is this?Don't you see that everybody is sugesting that is not ok your behave.

Again good job Emanuel!!!

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago - 12 years 4 months ago #63089 by yaksushi
Replied by yaksushi on topic Re: email friend don´t work
yes where is the support from K2? This is a serious bug! Thanks for the fix Emanuel!

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #63090 by Marek Tesař
Replied by Marek Tesař on topic Re: email friend don´t work
Great! great! Great! Great! job!!!

Thank you Emanuel, thank you!!

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago - 12 years 1 month ago #63091 by Renea
Replied by Renea on topic Re: email friend don´t work
Just to offer a different solution (more complicated but doesnt hack the core)

Install and enable the "Mail this page" module
extensions.joomla.org/extensions/content-sharing/articles-sharing/7717

Install and enable the Modules Anywhere plugin from NoNumber
www.nonumber.nl/extensions/modulesanywhere

In your K2 template override (you really should not edit the core K2 template, make an override) look for the Email Button comment and replace these lines
<a class="itemEmailLink" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="<?php echo $this->item->emailLink; ?>">
<span><?php echo JText::_('E-mail'); ?></span>
 </a>

with

{module ###}

where ### is the module ID of the "Mail this page" module

This will totally bypass the com_mailto issue.

Please Log in or Create an account to join the conversation.