Copyright notice in RSS feed
Copyright notice in RSS feed
Does anyone know how to add a copyright notice to the RSS feed to prevent content theft?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Copyright notice in RSS feed
I haven'T looked, is there any specified "copyright" element for RSS?
You could edit the rss.php file, where the headers of a RSS file are easily patchable. Or you could patch the syndication plugin to include a new string, there are some examples of other fields.
Regards,
Garvin
You could edit the rss.php file, where the headers of a RSS file are easily patchable. Or you could patch the syndication plugin to include a new string, there are some examples of other fields.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
You can hack this by opening include/functions_entries.inc.php.
Search for the function "serendipity_printEntries_rss". Search this code:
After those lines, add this:
Regards,
Garvin
Search for the function "serendipity_printEntries_rss". Search this code:
Code: Select all
// Embed a link to extended entry, if existing
if ($fullFeed) {
$entry['body'] .= ' ' . $entry['extended'];
} elseif ($entry['exflag']) {
$ext = '<br /><a href="' . $guid . '#extended">' . sprintf(VIEW_EXTENDED_ENTRY, htmlspecialchars($entry['title'])) . '</a>';
} else {
$ext = '';
}
Code: Select all
$ext .= '<br />(Article copyright (C) by XXX)';
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/