XF 2.2 Embedded Spreadsheet

Joan1211

Member
Hello,
How can I embed a spreadsheet?
I have tried many tutorials, using BBCode and Import Media, but they don't seem to work. I might not be executing the steps correctly.


Here is the code I receive when I click on "publish on the web":

Embaded code:
Code:
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vS0dpVO92b1_4CUjFNd-fyOGPkXcmk2C3B5SPs-foxlwDoKNwfwW-q1qxIGy2xzO5rHf7kMyUu8NZfa/pubhtml?gid=0&amp;single=true&amp;widget=true&amp;headers=false"></iframe>

Link:
Code:
https://docs.google.com/spreadsheets/d/e/2PACX-1vS0dpVO92b1_4CUjFNd-fyOGPkXcmk2C3B5SPs-foxlwDoKNwfwW-q1qxIGy2xzO5rHf7kMyUu8NZfa/pubhtml?gid=0&single=true

Thank you.
 
Xenforo support informed me that i need to create a custom BBcode.

I have tried this option before, but this did not work. The tutorial i found are propably too old.

Anyone can help with this?

Thanks.
 
It may be better to use variable parameter, so you can embed different spreadsheets? Of course, if you want to do that.

In HTML replacement part put this:

Code:
<iframe src="https://docs.google.com/spreadsheets/d/e/{text}>/pubhtml?gid=0&amp;single=true&amp;widget=true&amp;headers=false"></iframe>

And within new BBcode you put variable part, in your case it's this:

Code:
2PACX-1vS0dpVO92b1_4CUjFNd-fyOGPkXcmk2C3B5SPs-foxlwDoKNwfwW-q1qxIGy2xzO5rHf7kMyUu8NZfa

In above's example it would be:

Code:
<spr1>2PACX-1vS0dpVO92b1_4CUjFNd-fyOGPkXcmk2C3B5SPs-foxlwDoKNwfwW-q1qxIGy2xzO5rHf7kMyUu8NZfa</spr1>

It would work for all different spreadsheets.
 
Thank you.
One small correction:
Code:
<iframe src="https://docs.google.com/spreadsheets/d/e/{text}>/pubhtml?gid=0&amp;single=true&amp;widget=true&amp;headers=false"></iframe>

for it to work there is no
Code:
>
before
Code:
/pubhtml?

This code is great for variable spreadsheet. However this mean that all the spreadsheet will have the same displayed size.I configured mine to have 3000px, therefore all the spreadsheet will have 3000 px.

i tried to remove the size from the HTML replacement and to insert it here:
Code:
[spr1 width="100%" height="3300px"]spreadsheetID[/spr1]

But this did not work.
 
Yeah, I somehow made error in copying. Who knows how that happened. :eek:

And, from original code, I don't see info on width and height, so I'm not sure where and how you're inserting it. You should find it first in original Google insert code, to know where they expect it to see that information.
 
Top Bottom