![]() |
Are embedded sponsor codes causing you RSS feed problems?
Since I use mostly aggregated feed from sponsors blogs, most of my posts contain permalinks, comment links, etc. that have affiliate codes at the end of the URL.
If you are using WordPress and these links contain an ampersand you may have validation issues with your own RSS feeds. I have a solution for anyone that's interested. It involves inserting a little PHP coding in just the right place in several WP library functions. If anyone is interested I'll type up a more detailed list of the files and functions to edit. Special thanks to TPat for noticing that there even was a problem. |thumb |
Toby I was hoping The Walrus would weigh in on this thread
I found 3 more blogs that I can't aggregate for the same reason here's the 3 links that are causing the problems http://sammy4ublog.com/?p=746&A=true&nats=NzcwOjM6MQ http://www.nubilesblog.com/?p=403&coupon=1237688 http://www.ravensdiary.com/wordpress...ts=MjU4NTozOjE I have a feeling there are a bunch of blogers out there that have feeds that aren't validating and don't know it |
I'm guessing the the source of the problem is the same, ampersands or other special characters that haven't been HTML encoded. I also aggregate Raven's feed, so I can definitely confirm that problem is the same there.
Here's what I had to do to make my feed validate. I'm using the most recent version, WordPress 2.0.4 released July 29, 2006. If you're using an older version the file names and line numbers may not match up exactly. The PHP function htmlentities($string) converts any characters within the specified $string to the matching html encoded equivalent. If the character is already encoded it leaves it as is. file: wp-rss2.php line 49 PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
Not to single any sponsor out here but I have noticed it's pretty easy for your aff ID to get lost with Nubiles. |
be very very careful that you don't convert any urls that send traffic to ccbill. Their refer.cgi doesn't properly de-entify and while your page will validate, you won't get credit for the surfers.
Request sending & in the url Code:
mcd@tsavo:~$ telnet refer.ccbill.com 80 Code:
mcd@tsavo:~$ telnet refer.ccbill.com 80 |
Quote:
|
Quote:
|
Currently I have 35 sponsors with RSS feeds listed on my resource site: only 7 validate fully and 10 don't validate at all.
I have been able to use Nubiles despite the feed validating with a warning, but one thing I have noticed is that when you include several feeds which don't validate fully, there seems to be a cumulative impact. Which is why I suggest people should start by validating their own sites and feeds, then start by adding the sponsor feeds which do validate and only after that begin trying the rest: one at a time, testing your site (and feed validation, if it concerns you) after each addition. |
Quote:
|
Quote:
|
Quote:
XML Parsing Error: not well-formed Location: http://www.porndiner.com/feed/ Line Number 57, Column 59: |
Quote:
useing FireFox I get this error: XML Parsing Error: not well-formed Location: http://www.porndiner.com/feed/ Line Number 57, Column 59: |
Damn, missed the part of "your own RSS" feeds... that'll teach me.
|
Quote:
Also changed those two things that were producing warnings when validating. |
Quote:
|
Quote:
|
Google has this thread listed #41 under "adult rss feeds"|thumb
|
Quote:
|
Quote:
Wordtracker didn't show any (I think it's their adult filter on free version) 450 per 24 hour period for rss feeds on msn Can't remember my adwords password so I didn't check google |
How about software like wordpress converting links in posts (not rss):
So in the source code... Code:
& Code:
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=920029-0000&PA=1115150 btw, hi |waves| |
All times are GMT -4. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc