DyegoAV / slimstat

Automatically exported from code.google.com/p/slimstat
GNU General Public License v2.0
1 stars 0 forks source link

Anchors omitted into RSS #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

* Each link to the corresponding sats of the day aren't well formated

What is the expected output? What do you see instead?

* filtering stats for the chosen day 

What version of SlimStat are you using? On what operating system? Which web
browser are you using?

* Latest dev version

Please provide any additional information below.

* I'm not sure but it seems that the purpose of RSS links is to point to the 
chosen day.

File /slimstats/page/details_rss.php (lines #53 and #66):

53.   echo '<link>http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'</link>'."\n"; 

   ( ... )

66.   echo '<guid isPermaLink="true">http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'</guid>'."\n";

could have the anchor into the links::

53.   echo '<link>http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'#'.filter_url( $filters 
).'</link>'."\n";

   ( ... )

66.   echo '<guid isPermaLink="true">http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'#'.filter_url( $filters 
).'</guid>'."\n";

Best regards,
Patrick.

Original issue reported on code.google.com by patrick....@gmail.com on 14 Jul 2010 at 6:43

GoogleCodeExporter commented 9 years ago
... and to delete the "?" sign into the anchor, we have to add a substr() 
function::

53.   echo '<link>http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'#'.substr(filter_url( 
$filters ), 1).'</link>'."\n";

66.  echo '<guid isPermaLink="true">http://'.$_SERVER['SERVER_NAME'].dirname( 
$_SERVER['PHP_SELF'] ).'/'.filter_url( $filters ).'#'.substr(filter_url( 
$filters ), 1).'</guid>'."\n";

Original comment by patrick....@gmail.com on 15 Jul 2010 at 6:35