The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Hide e-mail in RSS Feed
PostPosted: Mon Sep 21, 2009 8:27 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jan 13, 2009 10:16 am
Posts: 25
Hi,

I'm using Joomla's mod_syndicate to generate a RSS Feed. Everything works fine, but I would prefer to hide the e-mail address of my users. Is this possible?

Niels


Top
 Profile  
 
PostPosted: Sat Oct 03, 2009 3:05 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jan 13, 2009 10:16 am
Posts: 25
Bump for this question.

Is there an option to hide
Code:
<author>name@myemail.com (My Name)</author>

in the RSS Feed? I don't want to be spammed because I'm using Joomla's standard RSS-module.


Top
 Profile  
 
PostPosted: Sun Nov 08, 2009 3:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 19, 2008 5:04 pm
Posts: 11
I also would like to hide the author's adress. Anybody knows how?

Regards,
snelsnel.


Top
 Profile  
 
PostPosted: Sun Nov 08, 2009 9:04 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Sep 10, 2008 6:08 am
Posts: 57
Location: Sweden
In global config, You could set "site email" as feed email. It's not hiding the email, but it displays the site's email instead of the different authors' email addresses.

Regards,
Floddy

_________________
www.irry.com


Top
 Profile  
 
PostPosted: Sun Nov 08, 2009 9:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 19, 2008 5:04 pm
Posts: 11
That's better, thanks a lot.

Regards,
snelsnel.


Top
 Profile  
 
PostPosted: Fri Dec 04, 2009 10:13 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Dec 04, 2009 10:10 am
Posts: 1
Displaying the site e-mail moves the spam problem from the individual user to the site e-mail. Is it really not possible to hide the e-mail address altogether?


Top
 Profile  
 
PostPosted: Mon Dec 28, 2009 9:44 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Dec 28, 2009 9:36 pm
Posts: 3
I would like to remove the emails from syndication feeds too.

I looked at the code for mod_syndicate, including mod_syndicate.php but can't see where to make changes.

Any help much appreciated


Top
 Profile  
 
PostPosted: Fri Jan 15, 2010 1:53 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Dec 28, 2009 9:36 pm
Posts: 3
Changing the "Site Setting" in Global Configuration, so that "Feed Email" is "Site email" (rather than author email) helps a little bit. But as noted above it really just means that the site email will now be publicly available and be spammed.

Does anyone know of a full solution to this to take the email address and author name out of the joomla RSS feeds. I've looked through the code (but am none technical) and couldn't see anything.

Thanks


Top
 Profile  
 
PostPosted: Sat Feb 13, 2010 2:53 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 13, 2005 2:02 am
Posts: 32
Location: NYC
Ditto the request for a solution. Thanks in advance.


Top
 Profile  
 
PostPosted: Mon Jul 12, 2010 8:33 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 30, 2009 5:33 am
Posts: 24
The simple solution is to install Ninja RSS. It will take over Joomla's RSS feeds and offer you many more options for controlling what shows up in the feeds... email, author name, images, etc.

And there is no need to publish any modules either. Simply installing the Ninja RSS component will suffice. The browser RSS buttons will be controlled by Ninja RSS.

Hope that helps.

http://extensions.joomla.org/extensions ... icate/6392


Top
 Profile  
 
PostPosted: Fri Oct 22, 2010 12:29 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 21, 2010 4:03 am
Posts: 3
Reading the extension review of Ninja it sounds like they won't completely eliminate an email address either and the owners reason was RSS feeds require email addresses to be a valid RSS feed, and they don't want to purposely make in valid RSS feeds. See

http://extensions.joomla.org/extensions ... #rev-68409 to see Ninja's response to this same inquiry.

What's weird is I just installed Ninja to test, and it will in fact let you remove the email address. So does that mean it let's you make invalid RSS feeds, or is an email not required now?


Top
 Profile  
 
PostPosted: Sun Apr 03, 2011 5:28 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 01, 2006 3:17 am
Posts: 39
Location: Orlando, FL
I just did it.

I tried Ninja RSS - but was going to take too long to configure.

Here's your fix.

Code:
/public_html/libraries/joomla/document/feed/renderer/rss.php (do atom too)


Code:
         if ($data->items[$i]->authorEmail!="") {
            $feed.= "         <author>".htmlspecialchars($data->items[$i]->authorEmail . ' - ' .
                              $data->items[$i]->author . '', ENT_COMPAT, 'UTF-8')."</author>\n";
         }


Replace exactly with this:

Code:
            $feed.= "         <author>".htmlspecialchars($data->items[$i]->author . '', ENT_COMPAT, 'UTF-8')."</author>\n";
         }



Result:

Image

_________________
Jeff Seabrook
Location: Orlando, FL
Owner: http://www.bmwsport.net


Top
 Profile  
 
PostPosted: Mon Sep 05, 2011 4:59 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sat Aug 08, 2009 3:37 am
Posts: 90
Location: Australia
For the time being (Joomla 1.523), and just in case someone is looking for this fix, this is what I needed to do. Went to /public_html/libraries/joomla/document/feed/renderer/rss.php and commented the following:

Code:
/* if ($data->items[$i]->authorEmail!="") {
            $feed.= "         <author>".htmlspecialchars($data->items[$i]->authorEmail . ' (' .
                              $data->items[$i]->author . ')', ENT_COMPAT, 'UTF-8')."</author>\n";
         } */


and for atom.php

Code:
/* if ($data->items[$i]->authorEmail!="") {
               $feed.= "      <email>".htmlspecialchars($data->items[$i]->authorEmail, ENT_COMPAT, 'UTF-8')."</email>\n";
            }
            $feed.= "      </author>\n";
         } */


Top
 Profile  
 
PostPosted: Tue Oct 25, 2011 9:51 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Oct 25, 2011 9:48 pm
Posts: 40
Location: UK
Hi all, is there any solution for hiding the email address in the rss feed for 1.7 ??

I've been trying all possible ways but always ending up with errors.....

I'm guessing lots of other Joomla 1.7 users are looking for this solution too.

Many thanks if anyone's got the answer ^^


Top
 Profile  
 
PostPosted: Sun Nov 20, 2011 1:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Nov 15, 2011 3:03 pm
Posts: 6
Hi, here is one of the other Joomla 1.7 users who is looking for a solution of this issue too.

Any hints are highly welcome


Top
 Profile  
 
PostPosted: Tue Feb 28, 2012 5:38 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jul 05, 2011 9:22 am
Posts: 2
MCNX wrote:
For the time being (Joomla 1.523), and just in case someone is looking for this fix, this is what I needed to do. Went to /public_html/libraries/joomla/document/feed/renderer/rss.php and commented the following:

Code:
/* if ($data->items[$i]->authorEmail!="") {
            $feed.= "         <author>".htmlspecialchars($data->items[$i]->authorEmail . ' (' .
                              $data->items[$i]->author . ')', ENT_COMPAT, 'UTF-8')."</author>\n";
         } */


and for atom.php

Code:
/* if ($data->items[$i]->authorEmail!="") {
               $feed.= "      <email>".htmlspecialchars($data->items[$i]->authorEmail, ENT_COMPAT, 'UTF-8')."</email>\n";
            }
            $feed.= "      </author>\n";
         } */


Here is a slightly more elaborate solution, retaining the author AND passing the feed validation check on http://validator.w3.org/feed/

See the zip archive attached - compare the "Original" with the "Modified" files to see the changes.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group