Quote:
Originally Posted by djbaxter
I also get this error - but only on some threads. When the error appears, no Digg button is displayed. If the page (thread) loads without an error, I get the digg button displayed.
I would conclude from this that there is an error processing the code to display the digg button.
This occurs even with the default vBulletin style.
|
The error is
This is the line generating the error (from View Source):
Code:
document.write('<A HREF="http://digg.com/submit?phase=2&url=' + location.href +'&title=Deadly twist at the chiropractor's office"><img src="./images/100x20-digg-button.gif" width="100" height="20" alt="Digg!" border="0"/></a>');
and as you can see the title= part contains an apostrophe:
Code:
'&title=Deadly twist at the chiropractor's office
I don't know if this is characteristic of other threads that don't display the button but this should be handled with a "replace" to add a \ before the apostrophe. It's basically a parsing problem.
Alternatively, leave out the thread title from the URL but have the URL open in a new window so that the individual can cut-and-paste into the Digg window from the forum. I would actually prefer this solution for several reasons.