WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
Change RSS URLs
Change RSS URLs
Details
Discussion
3
Print
Comments on Change RSS URLs
•
scriptwiki
Member
Usergroup:
Customer
Joined:
Aug 04, 2005
Total Topics:
11
Total Comments:
47
•
scriptwiki
#1 -
Quote
-
Permalink
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:
7868
•
Paul
#2 -
Quote
-
Permalink
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
•
scriptwiki
#3 -
Quote
-
Permalink
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
Go ►
Download thread as
text
HTML
Go ►
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Change RSS URLs
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
$linkstuff = $settings->dirurl .'/'. $thisone->threadurl();
Will make it respect rewritten urls better in 4.0.
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
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.