Welcome Guest, Not a member yet? Register   Sign In
rss link problem
#1

[eluser]benfike[/eluser]
Hi!

I use a RSS, what is creadet by Derek, but i have a problem..

A news link example: hirek/year/monath/day/url_title

I have an code what i use for this in news:
<?=anchor('hirek/'.$post['y'].'/'.$post['m'].'/'.$post['d'].'/'.$post['url_title'],$post['title'],array('title'=>'Tovább'))?>
----------------------------------------------------------------

The code in RSS view:

<?php foreach($posts->result() as $post): ?>
<item>
&lt;title&gt;&lt;?php echo xml_convert($post->title); ?&gt;&lt;/title&gt;
&lt;link&gt;&lt;?php echo site_url('hirek/'.$post['y'].'/'.$post['m'].'/'.$post['d'].'/' . $post->url_title) ?&gt;&lt;/link&gt;
<guid>&lt;?php echo site_url('hirek/'.$post['y'].'/'.$post['m'].'/'.$post['d'].'/' . $post->url_title) ?&gt;</guid>
#2

[eluser]slowgary[/eluser]
You forgot to mention the problem. Also, your code is much easier to read when it's wrapped in [ code ] tags.
#3

[eluser]benfike[/eluser]
The problem was this: http://www.arsenalfan.hu/hirek////lincol...rsenal-2-3

only got //// but where year monat day?Big Grin

http://arsenalfan.hu/rss




Theme © iAndrew 2016 - Forum software by © MyBB