Public Group active 2 months, 2 weeks ago
The Group for Group Admins
A meta-group for all of the Commons’ group admins so that the CUNY Academic Commons team can share information and keep you updated about changes to the site (and especially the Group interface). This group will also provide a way for us to get feedback from you about features you’d like to see added and ways we can improve the Group functionality.
embed PPT from Onedrive into WordPress post/page
-
Posted by Van Bich Tran on February 4, 2021 at 1:52 pm
Hi,
How can I embed a Powerpoint presentation on Academic Commons?
I tried to follow the instructions but was not successful. I have the embed code from the online PPT.
<iframe src=”https://urldefense.proofpoint.com/v2/url?u=https-3A__cuny907-2Dmy.sharepoint.com_personal_vanbich-5Ftran74-5Flogin-5Fcuny-5Fedu_-5Flayouts_15_Doc.aspx-3Fsourcedoc-3D-257B980914bd-2D4076-2D4c91-2Dafba-2D9ebce95f14ec-257D-26amp-3Baction-3Dembedview-26amp-3BwdAr-3D1.7777777777777777&d=DwIFAw&c=2tStSn3Yyb7CMXxZW9nuG-Sh-vz6mhnySBmFi7HdCsM&r=S-XAbz96Ftx1w54qbjGC-9X8Y9sp29fMCNAnJqAwcdhTMKxITkW6cVsRjSmfprTn9-PIl3BWbBpd9mBdiuIbfA&m=z452bsGqiTFRV7dBWW6d31QAVhbamKito7p_pDrdy1M&s=YxQ5T1jrZNkaT_onebYQ-V-sVckVqH_0_1hGwZY0mwI&e= ” width=”350px” height=”221px” frameborder=”0″>This is an embedded Microsoft Office presentation, powered by Office.</iframe>
I added a new post and used the classic editor and pasted the code in text as instructed.
What I get is this sentence.
This is an embedded Microsoft Office(office.com&d=DwIFAw&c=2tStSn3Yyb7CMXxZW9nuG-Sh-vz6mhnySBmFi7HdCsM&r=S-XAbz96Ftx1w54qbjGC-9X8Y9sp29fMCNAnJqAwcdhTMKxITkW6cVsRjSmfprTn9-PIl3BWbBpd9mBdiuIbfA&m=z452bsGqiTFRV7dBWW6d31QAVhbamKito7p).
Thanks.
Van
Van Bich T Tran
Open Educational Resources and Open Access Adjunct Librarian
Library Department
La Guardia Community College
vtran@lagcc.cuny.edu<mailto:vtran@lagcc.cuny.edu>
718-482-7613
31-10 Thomson Avenue, Room E201-Faculty Suite
Long Island City, NY 11101?
-
Hi Van – For security reasons, the Commons does not allow iframes. Can you try to install the “Embed Anything” plugin and just use the sharepoint URL and see if that works?
“How can I embed a Powerpoint presentation on Academic Commons?”
Hi Van:
I don’t entirely understand the context in which you are trying to display the PPT files, but for displaying them on an ordinary WordPress page, this will work.
Save the PPT as a pdf, then open the pdf in Photoshop and convert each pdf page to a JPG. JPGs can be embedded in a WordPress page easily. That is how I post articles to a page.
When you open the pdf in Photoshop, each page will be displayed in the dialog box that appears. Set the “Crop Box” option to “Crop Box” (if it isn’t already), then select all the pages at once by selecting the first page, then pressing “Shift” while clicking on the last page.
After selecting all the pages, adjust the settings for the pages, including desired width and height (be sure “Constrain Proportions” is selected), and resolution (300 dpi gives me about a 500 Kb JPG), etc. Then hit OK. (Don’t do the settings before selecting them all or you will only by adjusting the settings for one page.)
Each page will be opened in a separate Photoshop window. Then just save each page as a JPG. Embed the JPGs in the WordPress page in order and you have displayed your PPT pages on a WordPress page.
John Ongley
Lehman College
Hi Scott
Thank you for letting me know about the iframes. I tried some of the other embedding methods, and will play around with the URL>
I did a method similar to John, but using Adobe Acrobat Pro DC, and was fine with doing it this way as a solution. Thanks!
Van
Van Bich T Tran
Open Educational Resources and Open Access Adjunct Librarian
Library Department
La Guardia Community College
vtran@lagcc.cuny.edu<mailto:vtran@lagcc.cuny.edu>
718-482-7613
31-10 Thomson Avenue, Room E201-Faculty Suite
Long Island City, NY 11101?
Hi John,
Thank you for the suggestion. I did something similar:
1. Using Adobe Acrobat Pro DC, I exported the PDF as JPEG. It will create individual slides.
2. I went to my Academic Commons page and added the “Slideshow” block.
3. I selected all images (Ctrl +A) and dragged them into the block. The slides were uploaded and stored in the Media Library.
4. I added the slide number in the caption of each slide.Here’s the page: https://lagccnsdoer.commons.gc.cuny.edu/lab-safety/
The problem with this method is that the slides work fine using Firefox but not with Chrome. Any thought as to why it will not work with Chrome? Thanks!
Best,
Van
Van Bich T Tran
Open Educational Resources and Open Access Adjunct Librarian
Library Department
La Guardia Community College
vtran@lagcc.cuny.edu<mailto:vtran@lagcc.cuny.edu>
718-482-7613
31-10 Thomson Avenue, Room E201-Faculty Suite
Long Island City, NY 11101?
Hi Van –
I think the Commons needs to write a custom embed handler for OneDrive to make things easier. I will put in a request for that and let you know when it will be available.
In the meantime, I have two suggestions.
- This is a long-shot. I see you are using Jetpack. In the past, when Chrome is not working and Firefox is, I’ve gone to the Performance tab in Jetpack. Under Performance and Speed, I make sure all, including Lazy loading are active. Then see if Chrome is behaving any better. Like I said, it may not make much of a difference. See attached screenshot.
- You have a valid .ppt file in OneDrive. Can you download it to your local machine. Then in the Block Editor, there is a block called “Document” (created by the “Embed Anything” plugin.) I see that you have that plugin activated. Can you follow the instructions for that block and upload the ppt file from you local machine. I would think that this will work.
Attachments:
You must be logged in to view attached files.Hi Scott,
I tried the second suggestions and was successful, but only if the file is no more than 10MB. It is quite nice and work across all browsers and devices.
When I first uploaded the file (12MB) I got a message that the size was too large. I clicked the learn more link which took me to
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.office.com_redir.aspx-3Fassetid-3DHA102724036&d=DwIFAw&c=2tStSn3Yyb7CMXxZW9nuG-Sh-vz6mhnySBmFi7HdCsM&r=9GIaAkwci6fMWVm_EgNtCheozH8_MsxVTRCdoacHHv7ng7E2cN4tJq1aa7Kj100LHtmdJG-cA_lqGqPmWopnwo0jIqxoQ-mtO7wEAxtXq4_wXcIg0y3bBbzSgKDyIjIf&m=rYiPqE3uUN-Kkpgc52F7Pf43u4ZFWNBSNf2HLGKpZEs&s=jELqZwixs2xUDBrCWW06RVGs6GzTo1H9E4kD6COqCM8&e= -a blank page. I searched this message and found a discussion with a MS Office rep who stated that the upload size limit is 10 MB. So I tested with less than 10 MB and it worked!
I followed your suggested steps:
1. Uploaded PPT (less than 10MB) to the Media Library.
2. Used the document block. Selected the file from Media Library. I applied these settings: w 100% h 100%, show downlink for all users, download text: download and viewer: Microsoft Office online
I will probably adjust the w and h because the slides are more rectangle than square.
I have not tried the first method and will explore this later. Thank you for your help on this and putting in a request for a custom embed handler from OneDrive.
Best,
Van
Van Bich T Tran
Open Educational Resources and Open Access Adjunct Librarian
Library Department
La Guardia Community College
vtran@lagcc.cuny.edu<mailto:vtran@lagcc.cuny.edu>
718-482-7613
31-10 Thomson Avenue, Room E201-Faculty Suite
Long Island City, NY 11101?
Hi Van – see https://redmine.gc.cuny.edu/issues/13946
Can you provide the url of a public OneDrive PPT that is not wrapped in proof point? Our Developer needs an example to create a custom embed handler.
Please let me know if this is what you are looking for:
The folder is public
Thanks!Please let me know if this is what you are looking for:
The folder is public
Thanks!
Van Bich T Tran
Open Educational Resources and Open Access Adjunct Librarian
Library Department
La Guardia Community College
vtran@lagcc.cuny.edu<mailto:vtran@lagcc.cuny.edu>
718-482-7613
31-10 Thomson Avenue, Room E201-Faculty Suite
Long Island City, NY 11101?
You must be logged in to reply to this topic.