Google docs, BBcode and urls

For when things break.

Moderator: Executive

Post Reply
User avatar
A Docile Sloth
Executive
Executive
Posts: 2323
Joined: Sun Jun 24, 2012 4:32 pm
Location: Somewhere where you aren't.

Google docs, BBcode and urls

Post by A Docile Sloth »

Apparently google changed their url for published docs. I was wondering if anyone knew how to get spreadsheets to appear inside the [ gs=] [ /gs] tags now there is no key= or id= in the URLs.

I can get documents to work by taking the published url, eg:

Code: Select all

https://docs.google.com/document/d/1rEdatPHj6LNug7yTfBG1xLQ2_nef9QFft6BFHRirPCA/pub
and taking out the bit between /d/ and /pub and putting it in the [ gd=] [ /gd] tags. Unfortunately, this doesn't work for spreadsheets.

I know the tags themselves still work as there are embedded spreadsheets in the archives.

Don't suppose anyone knows how to get spreadsheets to work with the new urls?
Image
User avatar
Necromancer
Supporting Member
Supporting Member
Posts: 3315
Joined: Sat Jul 28, 2012 4:20 pm

Re: Google docs, BBcode and urls

Post by Necromancer »

That's probably because the bbcode is replaced by the old URL format that used the id/key code
something like

Code: Select all

<iframe src="https://docs.google.com/spreadsheet/ccc?key={IDENTIFIER}" width="675" height="675" border="0"></iframe>
needs to be updated to the new format

Code: Select all

<iframe src="https://docs.google.com/spreadsheet/d/{IDENTIFIER}" width="675" height="675" border="0"></iframe>
though that might break the old spreadsheets.
Image
-“Regret your helplessness…and feel despair.”
Achievement Unlocked: Battlefield 4 Uninstalled!!
User avatar
A Docile Sloth
Executive
Executive
Posts: 2323
Joined: Sun Jun 24, 2012 4:32 pm
Location: Somewhere where you aren't.

Re: Google docs, BBcode and urls

Post by A Docile Sloth »

A bit odd that the document one still works then.

I don't know much about these things but would it be possible to combine the two. As in, run one and if it fails run the other? Then old and new docs would work.
Image
User avatar
Necromancer
Supporting Member
Supporting Member
Posts: 3315
Joined: Sat Jul 28, 2012 4:20 pm

Re: Google docs, BBcode and urls

Post by Necromancer »

Its supposed to be backward compatible (Using old URL format will redirect). Thats why the google doc works.
But that depends on the GC BBcode implementation. Perhaps the spreadsheet BBCode is being replaced by a more complex code that could not withstand the change.
Image
-“Regret your helplessness…and feel despair.”
Achievement Unlocked: Battlefield 4 Uninstalled!!
Post Reply