Google docs, BBcode and urls

For when things break.

Moderator: Executive

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

Google docs, BBcode and urls

Post by A Docile Sloth » Sat Jul 05, 2014 11:19 am

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

Necromancer
Supporting Member
Supporting Member
Posts: 3357
Joined: Sat Jul 28, 2012 4:20 pm

Re: Google docs, BBcode and urls

Post by Necromancer » Sat Jul 05, 2014 11:44 am

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!!

A Docile Sloth
Executive
Executive
Posts: 2320
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 » Sat Jul 05, 2014 12:30 pm

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

Necromancer
Supporting Member
Supporting Member
Posts: 3357
Joined: Sat Jul 28, 2012 4:20 pm

Re: Google docs, BBcode and urls

Post by Necromancer » Sat Jul 05, 2014 3:02 pm

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