Announcement

#1 2023-07-17 13:31:21

rscullyvt
Member
Tunbridge, Vermont
2021-01-30
10

RSS Setting

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

 

#2 2023-07-17 13:49:02

Katryne
Member
2016-12-03
374

Re: RSS Setting

I cannot remember when and why, but sometimes I put this in the 1st tab of the local File Editor plugin :

Code:

$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)


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#3 2023-07-17 14:18:43

rscullyvt
Member
Tunbridge, Vermont
2021-01-30
10

Re: RSS Setting

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

Code:

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

 

#4 2023-07-17 16:08:30

Katryne
Member
2016-12-03
374

Re: RSS Setting

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.


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#5 2023-07-17 16:55:15

rscullyvt
Member
Tunbridge, Vermont
2021-01-30
10

Re: RSS Setting

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

 

#6 2023-07-17 17:23:50

Katryne
Member
2016-12-03
374

Re: RSS Setting

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


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#7 2023-07-17 17:26:17

rscullyvt
Member
Tunbridge, Vermont
2021-01-30
10

Re: RSS Setting

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact