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)
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)
14 years 8 months ago #63087
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
It works now.
THANK YOU VERY MUCH Emanuel
I hope the K2 team read this so they can fix it
BR
Claes
14 years 7 months ago #63088
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!!!
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!!!
14 years 6 months ago #63089
yes where is the support from K2? This is a serious bug! Thanks for the fix Emanuel!
14 years 2 months ago #63091
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
with
{module ###}
where ### is the module ID of the "Mail this page" module
This will totally bypass the com_mailto issue.
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.