Recent Topics

1 Jan 05, 2005 20:10    

I've got very little PHP programming experiance, but I can pick it up pretty quickly. I was trying to make a hack where the 3 RSS feeds are in the format "[username] - [post title]" as opposed to just [post title]. If anyone can point me in the direction e.g which files need modifying as I've just given up looking, some of the *rss/xml.php files don't seem to have what looks like (to a C programmer ) the RSS updating methods.
Thanks for any advice B)

2 Jan 07, 2005 12:11

Look for this line in your rss pages :-

<title><?php $Item->title( '', '', false, 'xml' ) ?></title>

and change it to :-

<title><?php
echo the_author()," - ";
$Item->title( '', '', false, 'xml' );
?></title>

it appears to do what you want

3 Jan 07, 2005 15:25

I believe that call to the_author is deprecated.

$Item->Author->prefered_name() is the way to access author through the Item object.


<title>
<?php 
$Item->prefered_name();
echo T_(' - ') ;
$Item->title( '', '', false, 'xml' );
?>
</title> 

4 Jan 07, 2005 15:45

mattbta wrote:

I believe that call to the_author is deprecated.

My bad, just found a comment to that effect in one of the files :roll:

5 Jan 07, 2005 16:09

No need for the rolleyes. I was just mentioning it for future reference. At some point in time, future releases will stop supporting deprecated calls and those functions won't exist anymore. Just trying to help. :D


Form is loading...