|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#1 |
Lonewolf Internet Sales
|
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. ![]() |
![]() |
![]() |
![]() |
#2 |
You can now put whatever you want in this space :)
|
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
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
![]() |
![]() |
![]() |
#3 |
Lonewolf Internet Sales
|
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:
|
![]() |
![]() |
![]() |
#4 |
Oh no, I'm sweating like Roger Ebert
|
Wish I could...other than the new blogs I'm working on, I don't use sponsor feeds in my posts (only on pages) so this was pretty much news to me and I'm glad Toby came up with a hack for it.
Not to single any sponsor out here but I have noticed it's pretty easy for your aff ID to get lost with Nubiles. |
![]() |
![]() |
![]() |
#5 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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 Trying 64.38.240.20... Connected to refer.ccbill.com. Escape character is '^]'. GET /cgi-bin/clicks.cgi?CA=xxxxxx-0000&PA=xxxxxx HTTP/1.0 Host: refer.ccbill.com HTTP/1.1 302 Found Date: Wed, 13 Sep 2006 05:25:21 GMT Server: Apache Location: http://www.xxxxxxxxxx.com Content-Length: 212 Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://www.xxxxxxxxxx.com">here</a>.</p> </body></html> Connection closed by foreign host. Code:
mcd@tsavo:~$ telnet refer.ccbill.com 80 Trying 64.38.240.20... Connected to refer.ccbill.com. Escape character is '^]'. GET /cgi-bin/clicks.cgi?CA=xxxxxx-0000&PA=xxxxxx HTTP/1.0 Host: refer.ccbill.com HTTP/1.1 302 Found Date: Wed, 13 Sep 2006 05:26:35 GMT Server: Apache Set-Cookie: xxxxxx=CLICKS2wRqJElQncJQ*; expires=Friday 15-Sep-06 22:26:39 GMT; path=/; domain=.ccbill.com Location: http://www.xxxxxxxxxxx.com Content-Length: 212 Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://www.xxxxxxxxxxxxx.com">here</a>.</p> </body></html> Connection closed by foreign host.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#6 |
Lonewolf Internet Sales
|
Thanks Chris, I wasn't aware of that. It could be rather costly too.
|
![]() |
![]() |
![]() |
#7 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Just because I don't care doesn't mean I don't understand!
|
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. |
![]() |
![]() |
![]() |
#9 | |
Oh no, I'm sweating like Roger Ebert
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Former pr0n slinger.
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Oh no, I'm sweating like Roger Ebert
|
Quote:
XML Parsing Error: not well-formed Location: http://www.porndiner.com/feed/ Line Number 57, Column 59: |
|
![]() |
![]() |
![]() |
#12 | |
You can now put whatever you want in this space :)
|
Quote:
useing FireFox I get this error: XML Parsing Error: not well-formed Location: http://www.porndiner.com/feed/ Line Number 57, Column 59: <guid isPermaLink="false">http://www.mpbabes.com/?p=81&x=smilin</guid>
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
|
![]() |
![]() |
![]() |
#13 |
Former pr0n slinger.
|
Damn, missed the part of "your own RSS" feeds... that'll teach me.
|
![]() |
![]() |
![]() |
#14 | |
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
|
Quote:
Also changed those two things that were producing warnings when validating. |
|
![]() |
![]() |
![]() |
#15 |
Oh no, I'm sweating like Roger Ebert
|
Yep, it seems fixed and just in time for me to release my new teen blog.
|
![]() |
![]() |
![]() |
#16 |
You can now put whatever you want in this space :)
|
It seems fine now FiRec and may I add, you Sir are a scholar and a gentleman
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
![]() |
![]() |
![]() |
#17 |
You can now put whatever you want in this space :)
|
Google has this thread listed #41 under "adult rss feeds"
![]()
__________________
How To Keep An Asshole In Suspense
I'll Tell You Later |
![]() |
![]() |
![]() |
#18 |
Lonewolf Internet Sales
|
#41 eh? I wonder how many searches per week use the keyphrase adult rss feeds.
|
![]() |
![]() |
![]() |
#19 | |
You can now put whatever you want in this space :)
|
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 To Keep An Asshole In Suspense
I'll Tell You Later |
|
![]() |
![]() |
![]() |
#20 |
Internet! Is that thing still around?
Join Date: Sep 2006
Posts: 2
|
How about software like wordpress converting links in posts (not rss):
So in the source code... Code:
& becomes & # 0 3 8 ; (spaces added so vbulletin doesn't parse it) Code:
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=920029-0000&PA=1115150 becomes http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=920029-0000 & # 0 3 8 ; PA=1115150 btw, hi ![]() Last edited by double0; 2006-09-21 at 04:31 AM.. |
![]() |
![]() |
![]() |
|
|