Webmastersite.net
Register Log In

How to make rss feed go to comments page
instead of going directly to outside links

Comments on How to make rss feed go to comments page

morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 14, 2005 - 5:44 AM:

Hi all,

I have added the rss feature in my site and it works fine. But when i view in rss readers, the links go to outside links. Instead, can i make them to go to comments pages first?( i have all my details moved to the comments pages)

It would be great if they can be linked to comments pages or details pages first because then my site will be accessed first before they clicked on outside links.

Thanks!smiling face
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 14, 2005 - 8:19 PM:

Pass &usecomments=1 in the url to use the comments pages.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 14, 2005 - 11:15 PM:

Hi paul,

do u mean by using this url?
mysite.com/rssfeed.php?type...c=descending&usecomments=1
They still link to outside pages. confused
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 14, 2005 - 11:36 PM:

In rssfeed.php, change
   else if ($usecomments)  $linkstuff = $settings->dirurl .'/comments.php?id='. $thisone->id; 

to
   if ($usecomments)  $linkstuff = $settings->dirurl .'/comments.php?id='. $thisone->id; 


(remove the else)
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 16, 2005 - 10:12 AM:

Hi Paul,

I edited the line and now all the links show up with link.php at the end. I was happy. However, they still lead to the redirected pages.

when someone clicks through to link.php from a search engine, send them to details page instead of the link location


I thought that link.php with lead to details pages first. However, they dont lead to details pages when i try inserting my wsnlinks link.php url into the address line. And all my details are located in the comments pages where visitors can see details and post comments in one page. In other words, i have elimated the details pages. Any help?
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 16, 2005 - 10:15 AM:

Ok Paul.

Sorry i did not change the url. It is now working with mysite.com/rssfeed.php?type...c=descending&usecomments=1

Thanks a lot.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 16, 2005 - 10:18 AM:

BTW, Paul,

I just want to make sure whether link.php will redirect to my details page from a search engine traffic? Because i saw a lot of referrals from seach engine with the url like http://www.mysite.com/wsnlinks/links/1200 but they all redirect to link partners websites. Can they be sent to my details or better more, comments pages?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 17, 2005 - 3:41 AM:

Such referals were due to a bug which was fixed about six or seven months ago. Making it go to your details page would only compound the issue of stealing the rankings of other sites and make it look malicious -- the proper behavior, as it does in current versions, is for search engines to not index those urls (has to do with 301 vs 302 redirects).
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Apr 17, 2005 - 12:13 PM:

301 or 302 redirects?

I only have a disallow command in the robots.txt to prevent spiders from accessing outgoing links. How is 301 or 302 to do with this?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Apr 18, 2005 - 1:00 AM:

www.webmastersite.net/forum...orums/comments.php?id=4303
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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