Type: Improvement suggestions (part 1)
Software: shimmie2
Module: image rss
Reference: http://trac.shishnet.org/shimmie2/browser/branches/branch_2.2/contrib/rss_images/main.php
Verified: Yes
Solved: Yes
Official res.: Unknown
Author: Daniel Marschall
Date: 2008-10-20
1. Make an international distinctly based time code instead of a operating-system
dependent time description. It may contain time zones in foreign languages and
with sepcial chars (e.g. "Mitteleuropäische Normalzeit" = "GMT+2")
~ contrib/rss_images/main.php
# Find
$posted = strftime("%a, %d %b %Y %T %Z", $image->posted_timestamp);
# Replace with
$posted = date(DATE_RFC822, $image->posted_timestamp);
# Line 55
2. Set the copyright of the RSS to the image board owner!
It is not good that the component developer "Shish" is the copyright holder of foreign content...
~ contrib/rss_images/main.php
# Find
$version = VERSION;
# Add after this
$year = date('Y');
# Line 75
~~~
# Find
(c) 2007 Shish
# Replace with
(c) $year $title
# Line 83
Further improvements:
You need to set an absolute base-href-path in the configuration to get the
RSS working... Maybe we can change the make_link() function at core/util.inc.php,
so that every base_href starting with ./ will be changed into http://.../
- The UrL could be detected by the global PHP variables.