Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-09-11, 09:34 AM   #1
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
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.
Toby is offline   Reply With Quote
Old 2006-09-13, 12:13 AM   #2
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
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
T Pat is offline   Reply With Quote
Old 2006-09-13, 12:43 AM   #3
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
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:
<wfw:commentRSS><?php echo htmlentities(comments_rss()); ?></wfw:commentRSS>
file: wp-includes\comment-functions.php line 263
PHP Code:
function comments_link$file ''$echo true ) {
    echo 
htmlentities(get_comments_link());

file: wp-includes\feed-functions.php line 62
PHP Code:
function permalink_single_rss($file '') {
    echo 
htmlentities(get_permalink());

file: wp-includes\template-functions-post.php line 44
PHP Code:
function get_the_guid$id ) {
    
$post = &get_post($id);
    return 
htmlentities(apply_filters('get_the_guid'$post->guid));

Toby is offline   Reply With Quote
Old 2006-09-13, 01:10 AM   #4
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by T Pat View Post
Toby I was hoping The Walrus would weigh in on this thread...
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.
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2006-09-13, 01:32 AM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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 &amp; 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&amp;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.
Result sending a url that doesn't validate:
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.
Note that the second non-entified url properly sets the cookie, while the first gets you to where you are expecting, but, doesn't set the cookie or give you credit.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2006-09-13, 02:42 AM   #6
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
Quote:
Originally Posted by cd34 View Post
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.
Thanks Chris, I wasn't aware of that. It could be rather costly too.
Toby is offline   Reply With Quote
Old 2006-09-13, 09:09 PM   #7
FiReC
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
Join Date: Jan 2004
Posts: 53
Send a message via ICQ to FiReC Send a message via AIM to FiReC
Quote:
Originally Posted by walrus View Post
Not to single any sponsor out here but I have noticed it's pretty easy for your aff ID to get lost with Nubiles.
What are you noticing specifically, I'll get it fixed up right quick support@nubiles.net
FiReC is offline   Reply With Quote
Old 2006-09-13, 09:40 PM   #8
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
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.
jayeff is offline   Reply With Quote
Old 2006-09-14, 01:32 AM   #9
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by FiReC View Post
What are you noticing specifically, I'll get it fixed up right quick support@nubiles.net
Click the link TPat gave, then add that RSS feed to a feed reader, no code. Or hit the home link from that page, his affiliate code is now gone.
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2006-09-14, 04:28 AM   #10
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
Quote:
Originally Posted by T Pat View Post
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 using all 3 of those feeds on http://www.porndiner.com and they all do what they are supposed to do so they do seem to work with wordpress...
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2006-09-14, 08:06 AM   #11
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by Fonz View Post
I'm using all 3 of those feeds on http://www.porndiner.com and they all do what they are supposed to do so they do seem to work with wordpress...
Try to verify your RSS feed, you get this error:

XML Parsing Error: not well-formed
Location: http://www.porndiner.com/feed/
Line Number 57, Column 59:
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2006-09-14, 09:20 AM   #12
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
Quote:
Originally Posted by Fonz View Post
I'm using all 3 of those feeds on http://www.porndiner.com and they all do what they are supposed to do so they do seem to work with wordpress...
Fonz I have verify feeds turned off on my aggregator and still can't parse http://www.porndiner.com/feed/
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
T Pat is offline   Reply With Quote
Old 2006-09-14, 09:54 AM   #13
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
Damn, missed the part of "your own RSS" feeds... that'll teach me.
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2006-09-14, 01:36 PM   #14
FiReC
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
Join Date: Jan 2004
Posts: 53
Send a message via ICQ to FiReC Send a message via AIM to FiReC
Quote:
Originally Posted by walrus View Post
Click the link TPat gave, then add that RSS feed to a feed reader, no code. Or hit the home link from that page, his affiliate code is now gone.
Made some changes and added the affiliate code to both the home and feed links on all pages. How does it look now?

Also changed those two things that were producing warnings when validating.
FiReC is offline   Reply With Quote
Old 2006-09-14, 03:07 PM   #15
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by FiReC View Post
Made some changes and added the affiliate code to both the home and feed links on all pages. How does it look now?

Also changed those two things that were producing warnings when validating.
Yep, it seems fixed and just in time for me to release my new teen blog.
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2006-09-14, 04:34 PM   #16
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
Quote:
Originally Posted by FiReC View Post
Made some changes and added the affiliate code to both the home and feed links on all pages. How does it look now?

Also changed those two things that were producing warnings when validating.
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
T Pat is offline   Reply With Quote
Old 2006-09-20, 07:39 PM   #17
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
Google has this thread listed #41 under "adult rss feeds"
__________________
How To Keep An Asshole In Suspense

I'll Tell You Later
T Pat is offline   Reply With Quote
Old 2006-09-21, 12:30 AM   #18
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
Quote:
Originally Posted by T Pat View Post
Google has this thread listed #41 under "adult rss feeds"
#41 eh? I wonder how many searches per week use the keyphrase adult rss feeds.
Toby is offline   Reply With Quote
Old 2006-09-21, 01:16 AM   #19
T Pat
You can now put whatever you want in this space :)
 
T Pat's Avatar
 
Join Date: Aug 2003
Location: Paridise
Posts: 3,244
Send a message via ICQ to T Pat
Quote:
Originally Posted by Toby View Post
#41 eh? I wonder how many searches per week use the keyphrase adult rss feeds.
Overture shows 150 in August
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
T Pat is offline   Reply With Quote
Old 2006-09-21, 04:19 AM   #20
double0
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)
and more importantly:

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
Seems like a pretty big issue, haven't been able to find much on it |confused|

btw, hi

Last edited by double0; 2006-09-21 at 04:31 AM..
double0 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:37 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc