Elxis CMS Forum

Support => Technical support => Topic started by: genealogia.org.mx on October 29, 2008, 03:55:49

Title: Email Function (send a friend an Article by email)
Post by: genealogia.org.mx on October 29, 2008, 03:55:49
Funtion to send articles to a friend (from front-end) send a bad URL:
Example:

Esta página web de "Genealogía.org.mx" se la ha enviado Samuel Sanchez ( samuelsanchez@genealogia.org.mx ). Para visitarla, haga clic en este enlace:  http://www.genealogia.org.mx/index.php?option=com_content&task=view&id=555&Itemid=141


The correct URL need be:
Esta página web de "Genealogía.org.mx" se la ha enviado Samuel Sanchez ( samuelsanchez@genealogia.org.mx ). Para visitarla, haga clic en este enlace:  http://www.genealogia.org.mx/index.php?option=com_content&task=view&id=555&Itemid=141

The problem is: &

How can we correct this?

Title: Re: Email Function (send a friend an Article by email)
Post by: datahell on October 29, 2008, 07:41:07
The URLs are generated like that in order to be XHTML valid. They normally intended to be displayed inside an HTML document (elxis) and not in a plain text e-mail. This is why they are not being displayed well in the e-mail.

You can solve this problem by replacing the & with & before sending the e-mail.

open components/com_content/content.php
go to line 1607.
Add bellow this:
   $link = sefRelToAbs($mainframe->getCfg('live_site').'/index.php?option=com_content&task=view&id='.$uid.'&Itemid='.$_Itemid );
This:
   $link = str_replace('&', '&', $link);
save the file, done.

We don't you enable SEO PRO? If you enable SEO PRO you wont have this problem.
Title: Re: Email Function (send a friend an Article by email)
Post by: genealogia.org.mx on October 31, 2008, 01:07:31
Datahell,

Thanks for your assistance, we are Genealogist, our experience in web is poor.
We are trying to have a good Genealogical website, our society is Free (by Law in Mexico) so we have not money.

We are study your CMS, with confidence in your project we left our old CMS (http://es.wikipedia.org/wiki/Blakord_Portal)

So we dont have how use efficently your CMS.

Our Staff is ready to share with you our FTP and all passwords needed, if have good will