J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sat May 18, 2013 7:52 am

Error in received URL from email event to a friend  Topic is solved

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Re: Error in received URL from email event to a friend

Postby Geraint » Mon Oct 08, 2012 1:21 pm

edit the file components/com_jevents/views/default/helpers/defaultviewhelperheader16.php at lines ~ 109-114 you should see
Code: Select all
      $link =JRoute::_($link);
      if (strpos($link,"/")===0) $link = substr($link,1);
      $link = JURI::root().$link;

      require_once(JPATH_SITE.'/'.'components'.'/'.'com_mailto'.'/'.'helpers'.'/'.'mailto.php');
      $url   = JRoute::_('index.php?option=com_mailto&tmpl=component&link='.MailToHelper::addLink( $link ));
replace them with
Code: Select all
      $link =JRoute::_($link);
      //if (strpos($link,"/")===0) $link = substr($link,1);
      $uri           =& JURI::getInstance(JURI::base());
      $root = $uri->toString( array('scheme', 'host', 'port') );

      $link = $root.$link;
      require_once(JPATH_SITE.'/'.'components'.'/'.'com_mailto'.'/'.'helpers'.'/'.'mailto.php');
      $url   = JRoute::_('index.php?option=com_mailto&tmpl=component&link='.MailToHelper::addLink( $link ));


Does that help?
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30499
Joined: Fri Feb 15, 2008 6:14 pm

Re: Error in received URL from email event to a friend  Topic is solved

Postby derkl » Mon Oct 08, 2012 5:45 pm

This works perfect!

You are the best!!!

Thanks, also to Tonyp.

Derk
derkl
Posts: 7
Joined: Sat Oct 06, 2012 9:33 pm

Re: Error in received URL from email event to a friend

Postby Tonyp » Mon Oct 08, 2012 7:51 pm

Glad to hear :).
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8703
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Previous

Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: No registered users

cron

Main Menu

User Menu

Hosted By


Who is online

In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: No registered users

Login Form