Anonymous Login
06-19-2018 07:41 PM

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004874SMF 2.1[All Projects] Generalpublic2012-06-01 09:32
PrioritynormalSeverityminorReproducibilityhave not tried
Summary0004874: RSS Author field should show author name

This is a very minor issue, and causes no errors at all to the majority of feed readers. However, it is very easy to fix, so I'm reporting it in anyway.

Basically, in SMF RSS feeds, the 'author' node is generated and populated with an email address. The format should be <author>[email address] ([name])</author>.
Additional InformationTo fix this (minor) semantic error, replace all instances of:

Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],

Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' ('.$row['posterName'].')',
Attached Files




emanuele (Viewer)

commit 2f5f01d9150c23a1694c2131bc56eed9b8fba480
Author: emanuele
Date: Fri Jun 1 2012

    rss author tag now shows also the name [Bug 4874]
    Fixed (I hope) the atom feeds
    Changed from rss to rss2 (2 because...don't know, it's new maybe :P) the default feed and added atoms too
MantisBT (Modified for SMF Intergration)[^] Copyright © 2000 - 2010 Mantis Group