Quote:
Originally Posted by kh99
OK, another dumb question - you don't have & actually in your replacement anywhere?
Is there any way you can post your bbcode replacement so we can try it?
|
Sure. It's an amazon affiliate link designed to insert a small iframe (sadly thats what Amazon uses for most of their links). It doesnt have & in the replacement (I tried that before to see if it would do the opposite and replace it with &, but it just kept it as &

.
I also have a google speadsheet embidding bbcode that has a similar issue, but it's less sensative to the URL (it works so long as the first parameter is passed, the rest just get ignored).
Replacement:
Code:
<div><iframe width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0" src="http://rcm.amazon.com/e/cm?t=mayhem-20&o=1&p=21&l=ur1&category=game_downloads&banner=13PTQH69Q2290VF8SR82&f=ifr"></iframe></div>
What it gives rendered (from view source) is:
Code:
<div><iframe width="125" height="125" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0" src="http://rcm.amazon.com/e/cm?t=mayhem-20&o=1&p=21&l=ur1&category=game_downloads&banner=13PTQH69Q2290VF8SR82&f=ifr"></iframe></div>
As you can see, it replaces the & with & amp; The google spreadsheet one (which still works sorta) does the same:
Replacement
Code:
<div align="center"><iframe width="95%" height="500" frameborder="0" src="https://spreadsheets.google.com/pub?key={param}&hl=en&single=true&gid=0&output=html&widget=true">IFRAME Not Available. <a href="https://spreadsheets.google.com/pub?key={param}&hl=en&single=true&gid=0&output=html">Direct Link to Spreadsheet.</a></iframe></div>
The param you pass the spreadsheet key, and it again turns everything after that into
&hl=en&single=true&gid=0&output=ht ml
I didn't notice the issue before since google spreadsheets will output the spreadsheet in the iframe just with the first parameter (key=) and the rest just get ignored. For my Amazon link however all the parameters are needed or it doesn't generate anything.