Webmastersite.net
Register Log In

Change RSS URLs

Comments on Change RSS URLs

scriptwiki
Member

Usergroup: Customer
Joined: Aug 04, 2005

Total Topics: 11
Total Comments: 47
Posted Sep 24, 2006 - 8:22 PM:

Is there a way I can get the links in the RSS feed to be like url.com/thread/65 instead of url.com/comments.php?id=65?

I opened up rssfeed.php and changed line 78 to if ($usecomments) $linkstuff = $settings->dirurl .'/thread/'. $thisone->id;

127 to else $linkstuff = htmlspecialchars(decodeit($settings->dirurl .'/thread/'. $thisone->linkid));

77 to else $linkstuff = $settings->dirurl .'/thread/='. $thisone->id;

but that didn't seem to work.

Any other ideas?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 25, 2006 - 3:00 AM:

$linkstuff = $settings->dirurl .'/'. $thisone->threadurl();

Will make it respect rewritten urls better in 4.0.
scriptwiki
Member

Usergroup: Customer
Joined: Aug 04, 2005

Total Topics: 11
Total Comments: 47
Posted Sep 25, 2006 - 9:21 AM:

I just deleted

if ($settings->apacherewrite == 'yes' && !($thisone->url != '' && !$useredirlin))
{
$linkstuff = $settings->dirurl .'/'. $thisone->rewriteurl();
if ($usecomments) $linkstuff = $settings->dirurl .'/'. $thisone->threadurl();
if ($usedetails) $linkstuff = $settings->dirurl .'/'. $thisone->detailsurl();
}

and that seemed to work.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.