Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   CCBill links with encoded '&' don't work (http://www.greenguysboard.com/board/showthread.php?t=34437)

Toby 2006-09-13 11:45 AM

CCBill links with encoded '&' don't work
 
cd34 posted the following in a blogging forum thread, but the ramifications are widespread enough that I felt it needed more exposure.

http://www.greenguysboard.com/board/...19&postcount=5

In lay terms, if your CCBill referral links use & in place of just the & the CCBill cookie identifying the affiliate does not get set.

Some web editors have a habit of encoding ampersands and other special characters as you type them, as that is the correct way to code if you want your pages to validate.

I did a search through the hundreds of galleries I've made over the last couple of years, and I did find several dozen with encoded referral links.

I will also start doing a spot check on sponsor hosted galleries to make sure those links do not contain encoded ampersands.

Hopefully someone from CCBill will see this and bump it up the line to the right people to find a resolution on their end. I would guess that fair number of affiliate sales are going uncredited due to this issue.

Jim 2006-09-13 11:54 AM

Toby
That is interesting and important information.
Thank You :)

Greenguy 2006-09-13 12:21 PM

That's a problem that's been around for YEARS - I remember MaxCash's sites way back in the day had the "&" problem.

Emerald 2006-09-13 02:07 PM

Thanks for that info Toby - I always wondered why my web editor would change & to &amp - would drive me nuts .. I'm pretty sure I changed alot of them to look exactly like the sponsors ref link... but I am sure there are still a lot of them floating around with the &amp in them ... grr just what I needed today.. to look thru my codes. |roses|

MrYum 2006-09-13 02:16 PM

I first noticed this about 5 years ago when I got into the biz and was using Dreamweaver as an editor. Damn thing was constantly changing affiliate links |banghead|

That issue was one of the things that got me to start hand coding...no more wysiwyg editors for this porn slinger. And no more issues with affiliate codes getting fucked up either |thumb

urb 2006-09-13 02:28 PM

Don't code with a WYSIWYG editor...

Code by hand using something like this http://www.textpad.com/

lassiter 2006-09-13 02:30 PM

Quote:

Originally Posted by urb (Post 299497)
Don't code with a WYSIWYG editor...

Code by hand using something like this http://www.textpad.com/

I've coded everything by hand using TextPad since I started in the biz. It's totally awesome.

urb 2006-09-13 02:37 PM

Quote:

Originally Posted by lassiter (Post 299498)
I've coded everything by hand using TextPad since I started in the biz. It's totally awesome.

And it's free. :)

Although it is worth buying a licence. Features include...
  • Search & Replace
  • Instant upper case / lower case / sentence case convertion
  • Good spell checker

There's a lot more in there too, and it won't alter your code like most editors do (including Notepad).

MrYum 2006-09-13 03:00 PM

Yup, text editors are your friend |thumb

I've been using NoteTab since dumping DW 5 years ago.

virgohippy 2006-09-13 03:23 PM

Holy shit! You mean I'm losing money!? I've got a lot of links to fix!!! |shocking|

Thanks for pointing that out Toby. :)

I use DW. I just checked, and I notice it only encodes links I've edited in some way. |huh

I really like using DW though... I'm going to see if I can't turn that auto-encoding &'s off.

ponygirl 2006-09-13 04:40 PM

Quote:

Originally Posted by virgohippy (Post 299520)
Holy shit! You mean I'm losing money!? I've got a lot of links to fix!!! |shocking|

Thanks for pointing that out Toby. :)

I use DW. I just checked, and I notice it only encodes links I've edited in some way. |huh

I really like using DW though... I'm going to see if I can't turn that auto-encoding &'s off.

I use DW and haven't had that problem (I think LOL) but I use the code view to do everything then preview it in design so I think that's why.

Toby 2006-09-13 04:48 PM

Quote:

Originally Posted by ponygirl (Post 299532)
I use DW and haven't had that problem (I think LOL) but I use the code view to do everything then preview it in design so I think that's why.

I've been using DW since it was first introduced. The last two versions (MX 2004 and Studio 8) have been far better about when it automatically encodes as you type, usually only doing so if you are typing plain text in design view.

Greenguy 2006-09-13 05:03 PM

I use Namo & it's friendly to the link codes with "&" in them (for the most part - lol)

MrMaryLou 2006-09-13 05:35 PM

Wasn't Front Page the one that always messed the codes up?

ponygirl 2006-09-13 05:40 PM

Quote:

Originally Posted by Toby (Post 299534)
I've been using DW since it was first introduced. The last two versions (MX 2004 and Studio 8) have been far better about when it automatically encodes as you type, usually only doing so if you are typing plain text in design view.

that's what I thought. I have MX & was told never to do any coding or moving things around in design view
Quote:

Originally Posted by MrMaryLou (Post 299538)
Wasn't Front Page the one that always messed the codes up?

Front Page is a nightmare |scared| lol

virgohippy 2006-09-13 05:41 PM

Quote:

Originally Posted by Toby (Post 299534)
I've been using DW since it was first introduced. The last two versions (MX 2004 and Studio 8) have been far better about when it automatically encodes as you type, usually only doing so if you are typing plain text in design view.

On closer inspection, I figured out that's exactly the case.

Before I upgraded to MX I did a lot of copy/paste. Only a few old things were affected... and mostly because of the silly ways I was doing things back then, so I wouldn't consider the error DW's fault anyway. |loony|

BOSS 2006-09-13 06:12 PM

Would like this confirmed...cause maybe i am loosing money

digifan 2006-09-13 07:55 PM

Good post... I remembered I saw it somewhere and found it, see
http://www.dwfaq.com/Tutorials/Misce...s_encoding.asp

At least, I cannot blame myself for doing sites in a plain text editor.

BUT
if you are using scripts, you have to check the url encoding option or they break at the & , it has happened to me with my very first copy of smart thumbs. The links worked from the gallery preview area and I forgot to click all of them when output to the index.shtml.

Jicky Jack 2006-09-13 08:23 PM

Yes, I learned that hard way also... I went 0 for 2 months with Lady- Sonia.. until John looked at my traffic... I was using "front page" & arles to make galleries... Live and Learn! After removing the "amp" code things went back to normal! |angry|

Toby 2006-09-13 09:35 PM

Quote:

Originally Posted by BOSS (Post 299544)
Would like this confirmed...cause maybe i am loosing money

Did you read the post I linked to by cd34? How much more confirmation do you need?

Robbo 2006-09-13 10:46 PM

Quote:

Originally Posted by MrMaryLou (Post 299538)
Wasn't Front Page the one that always messed the codes up?

Front Page would even double fuck you in that you could change a code and when you looked at it again in the web view it would change the codes back again!

HarryM 2006-09-13 11:09 PM

Is this happening with any other sponsors or is it just ccbill?

Toby 2006-09-13 11:46 PM

As far as I know, this is just a CCBill issue.

johnnybg 2006-09-14 03:57 AM

cd34 saved a lot of money and pain for many of us with this information. Thanks for the heads up Toby! :)

FiReC 2006-09-14 02:59 PM

I believe you are spreading bad information here. In your test you sent a get request with the html entity in the request. When a browser sends the request I believe it decodes the link before it sends the get request. I tried it out with firefox and the web developer plugin and the cookie still gets set with the ;amp in the source.

Now for scripts with header redirects, you would want to be careful, but no need to change ;amp to & in your regular html.

cd34 2006-09-14 04:45 PM

In Firefox 1.5.0.6 with cookies set to 'Ask Everytime'

if I key the link in directly into firefox, & will not set the cookie
If I key the link in directly with & rather than &, it will set the cookie
If I cut and paste a link from a page set with a doctype of transitional, it works.
If I cut and paste a link on a doctype set with strict and the url not contained within CDATA (in other words, a page that won't validate) , the cookie is not set.

Additionally, if the link is coded through a script and sent as:

Code:

test
Code:


header("Location: {$_REQUEST['j']}");

?>

it will not set the cookie because the location header that 99% of the tradescripts are using doesn't de-entify before sending to ccbill.

IE exhibits some odd behavior depending on which version you use. 5.5 does not deentify before sending in my tests. 6.0 does most of the time, but, failed once. I believe ccbill should set the cookie each time regardless of whether there is already a cookie present for that master account number, but, that isn't what I observed in one of the tests I did above. And after it happened, I couldn't duplicate it.

According to the RFC, the browser is supposed to deentify when going to a url, but, clearly when you cut and paste a url into firefox, there is no way for firefox to guess what action it should take.

Personally, I wouldn't want to rely on the browser guessing at what is supposed to happen.

FiReC 2006-09-14 06:03 PM

Just to clarify you are talking about browser problems deentifying when copying and pasting entities directly to the address bar and not when links are clicked on a page?

cd34 2006-09-14 06:27 PM

if a surfer right-clicks on a url on a page and pastes it into their browser, depending on a few different factors, they can get the entified or deentified link.

Since there is some inconsistency there, or, when used in trade scripts, etc, it just seems to me that better safe than sorry would be the rule of thumb. Especially since IE 5.5 also seems to exhibit the behavior even on clicked links.

double0 2006-09-24 07:48 PM

Has anyone talked to a ccbill rep on this?

Everyone is blaming their text editors for encoding ampersands when really that's what they should be doing. I think it's ccbill that needs to address this on their end. Would it be that hard credit links with encoded ampersands?

Going through all our links looking for encoded ampersands seems like a lot of unnecessary work especially considering that that's the way they should be written.

Given time and exposure this may even hurt pay sites as webmasters might choose to not bother with sites that use referral links in this "risky" format.

Bertik 2006-09-28 05:12 AM

I am very newbie so please be gently.
Question is
can I change the code (replace & with just &) on existing submitted free sites and then upload it to server? Will I be banned for this?

I have found several affected links to sponsor on my sites.

Thank you
Bertik

Licker4U 2006-09-28 06:47 AM

Quote:

Originally Posted by Bertik (Post 302920)
I am very newbie so please be gently.
Question is
can I change the code (replace & with just &) on existing submitted free sites and then upload it to server? Will I be banned for this?

I did that in the past with no problems.

tickler 2006-09-28 08:42 AM

Quote:

Originally Posted by double0
Has anyone talked to a ccbill rep on this?

I'd like to hear what ccBill has to say about it.|catfight|
Quote:

Originally Posted by double0
Everyone is blaming their text editors for encoding ampersands when really that's what they should be doing. I think it's ccbill that needs to address this on their end. Would it be that hard credit links with encoded ampersands?

I have found a few PPC linksthat ended up with the encoded amp. It seems to be only some links that I have gone back and modified though.|club|

virgohippy 2006-09-28 03:43 PM

Quote:

Originally Posted by tickler (Post 302960)
I have found a few PPC linksthat ended up with the encoded amp. It seems to be only some links that I have gone back and modified though.|club|

Same here. I guess those nifty html editors don't like creative construction of urls. |loony|

tickler 2006-09-28 07:03 PM

Quote:

Originally Posted by virgohippy (Post 303036)
Same here. I guess those nifty html editors don't like creative construction of urls. |loony|

Actually I was referring to their online maintenance systems. Probably in PHP or CGI.

virgohippy 2006-09-29 02:27 AM

Quote:

Originally Posted by tickler (Post 303065)
Actually I was referring to their online maintenance systems. Probably in PHP or CGI.

Ya lost me... whose maintenance system? |confused|

tickler 2006-09-29 09:53 AM

Quote:

Originally Posted by virgohippy (Post 303106)
Ya lost me... whose maintenance system? |confused|

A few of the PPC advertising programs have a small problem with encoding the links if you have gone back and change the links.

bartjes 2006-10-02 06:03 AM

I never have this problem in normal html since I use a text editor, but i do have it in wordpress posts. Anyone knows a solution to that?

virgohippy 2006-10-02 03:59 PM

Quote:

Originally Posted by bartjes (Post 303643)
I never have this problem in normal html since I use a text editor, but i do have it in wordpress posts. Anyone knows a solution to that?

Modify your wordpress now, and every time you update? |huh

bartjes 2007-02-06 12:48 PM

I'm not sure I understand what you mean virgohippy


All times are GMT -4. The time now is 07:33 AM.

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