Hello
I was sharing my RSS feed with a friend and I noticed that the formatting -- as seen in my RSS reader (NetNewsWire) -- shows the Gallery title (Scully Gallery) and then below that:
"no_email@example.com (Piwigo notifier)"
Can that be changed or removed?
Cheers
Rick
Piwigo 13.8.0
Installed on 19 August 2020, 2 years 10 months 4 weeks ago
Operating system: Linux
PHP: 8.0.28 (Show info) [2023-07-17 04:27:57]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2023-07-17 04:27:57]
Graphics Library: ImageMagick 6.9.7-4
Cache size 1618.04 Mo calculated 7 months ago
Piwigo URL: https://photos.thescullys.org
Offline
I cannot remember when and why, but sometimes I put this in the 1st tab of the local File Editor plugin :
$conf['recent_post_dates'] = array( 'RSS' => array('max_dates' => 7, 'max_elements' => 10, 'max_cats' =>10), 'NBM' => array('max_dates' => 7, 'max_elements' => 10, 'max_cats' => 10) ); // the author shown in the RSS feed <author> element $conf['rss_feed_author'] = 'Katryne';
Thre should be something about RSS config in the doc ?
Last edited by Katryne (2023-07-17 13:49:33)
Offline
Thanks for the quick reply, but I am not a coder and don't understand what you wrote. Sorry.
What I did do as a kluge fix is comment out this line from feedcreator.class.php
if ($this->items[$i]->author!="") { if ($this->items[$i]->authorEmail!="") { $feed.= " <author> " . htmlspecialchars($this->items[$i]->authorEmail) . " (".htmlspecialchars($this->items[$i]->author).")</author>\n"; } else { $feed.= " <author> no_email@example.com (".htmlspecialchars($this->items[$i]->author).")</author>\n"; } }
It seems to have worked. I don't want an email address in the feed anyway.
Offline
Local Files Editor is a plugin for Piwigo. It enables somes changes that won't be erased with new files during upcoming updates of Piwigo. You do not need to be a coder to master it. All is done via administration and you should get interested in it : it's a must for Piwigo.
Offline
Thanks! I apparently have that plug BUT it showed as not being active, but then I clicked on the non-active plugins it said it was activated. Quite confusing :)
I used the code snippet you included -- changing the author name -- but that doesn't remove the @example.com email in the feed which is what I really want to accomplish...
And then eventually clean up the RSS feed format to get rid of the ugly bulletpoints. But that's for another day. :)
So, how do I remove the no_email@example.com from the RSS feed?
Offline
I don't know : I do not have this email thing in my Piwigo feeds, being connected or not. Have a look here : http://photos.katrynou.fr/feed.php?feed … image_only
Offline
It is there, but must not be displaying in whatever reader you use.
Thanks for the willingness to help. I will either comment out that code, see if I can override it with the LocalFiles plugin or learn to ignore it.
Offline