icc0rz
Forum Replies Created
-
Forum: Plugins
In reply to: [Interactive Content – H5P] Translation editorThat is correct. If symbols are replaced by a ?, that indicates that there’s probably a mismatch between character encoding somewhere. Most likely the server might be reporting that the content is ISO-8859-1 (or similar), but the contents of the document file might be UTF-8.
Please check the charset on the page with ? symbols by opening you JavaScript console (Ctrl+Shift+J in Chrome) and then type in document.characterSet.
Forum: Plugins
In reply to: [Interactive Content – H5P] Dragndrop question editor is not loaded as wellHi! I’m sorry to hear that you’re struggling. Could you try to open the error console in you browser(Ctrl+Shift+J for Chrome) and see if there are any messages appearing when you experience this issue?
A screenshot would also be helpful in figuring out what’s wrong. Thanks!Forum: Plugins
In reply to: [Interactive Content – H5P] Help with shortcodeHi vincent06,
Adding the shortcode to a custom template, like you’ve done, should work. I’m guessing that for some reason the wp_footer isn’t printed. That’s where the JavaScript settings required to start the H5P are printed.
I’m not sure why the wp_footer isn’t printed, but you can print them yourself using:
$h5p_plugin = H5P_Plugin::get_instance(); $h5p_plugin->add_settings();
But it must be run after the shortcodes have been processed. If that isn’t possible you must use the HTML directly, like you specified in your last comment.
The wp_enqueue_scripts action must also have been run for the h5p JavaScript files required by H5P to be loaded. (Those that scans for elements using the h5p-content class.)
I hope this helps you figure it out
Forum: Plugins
In reply to: [Interactive Content – H5P] SyntaxError: JSON.parse: unexpected end of dataHi! I’m sorry to hear you’re having trouble. Could you check your web server’s error_log for any messages from PHP?
Alternatively you can use the developer tools in your browser to try and find the culprit. In chrome that’s Ctrl+Shift+i, and then select the network tab. The request with the error should have the name
admin-ajax.php?action=h5p_files
, and if you select it you should find the error under “Preview” or “Response”.
You might have to open the developer tools/network tab before you upload the file. The “funnel” icon should make it possible to filter/search after “h5p_files”.Forum: Plugins
In reply to: [Interactive Content – H5P] Addressing individual elements in cssYes it should be possible using these kind of selectors:
.h5p-image-hotspot:nth-child(0) { color: #f00 } .h5p-image-hotspot:nth-child(1) { color: #0f0 } .h5p-image-hotspot:nth-child(2) { color: #00f }
Forum: Plugins
In reply to: [Interactive Content – H5P] Make shortcodes work in H5PHello!
Currently there’s no parsing of shortcodes. What kind of shortcode are you thinking of putting in, and in which content type?You could do this in a hacky way by just looking for the shortcode in the string returned by
'jsonContent' => $core->filterParameters($content)
in class-h5p-plugin.php, line ~581, using has_shortcode or something.I’m sure this could be a great idea in some use-cases, but be aware that if you are to export/download the h5p, the shortcode will not be replaced when uploaded to a new site.
Forum: Plugins
In reply to: [Interactive Content – H5P] remove copyright and downloadCurrently you can only disable export(download) and the H5P link icon through the settings > h5p page.
In the next release (v1.2) you’ll also be able to disable copyright and the whole frame that surrounds the H5P content.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P Upgrade to 1.1class-h5p-plugin-admin.php
was split up intoclass-h5p-content-admin.php
andclass-h5p-library-admin.php
to make the code more manageable when the library admin was added. Everything should still be there.There’s only one item added to the menu, nothing is removed.
Please make sure that all files are up to date by replacing them with the new version. Or you could delete the h5p-folder and then copy in the 1.1 folder.
Re-activated the plugin to make sure you have all database changes.Is the Timeline working when previewing it in the admin interface? I.e. is it only broken when inserting into posts or pages?
Are other content types working?There’s a known bug if you’re running a theme without jquery that embedded H5Ps won’t open. This will be fixed in the next release.
Are there any error messages in the JavaScript console(Ctrl+Shift+J) when the Timeline doesn’t start?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P Upgrade to 1.1Have you tried downloading the latest Timeline and uploading it to your libraies page? Please check what version of Timeline you are running.
You should not have to copy any personalized files when upgrading the plugin from 1.0 to 1.1.
The Timeline at the link you’ve provided works here. What browser version are you using?
Where are you getting this error message? You could try deactivating and then re-activating the H5P plugin.
Do you have any custom user roles or are you using what comes with WordPress?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P Upgrade to 1.1On Friday the timeline was upgraded to use the lastest version of TimelineJS. There was an issue where jQuery was not loaded in WordPress. This has been resolved in the latest version available from H5P.org.
Thanks you for reporting!
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P Upgrade to 1.1Hi! What version of timeline are you running? You can check if you go to “Libraries”(
/wp-admin/admin.php?page=h5p_libraries
) and look for
Timeline and TimelineJS.Forum: Plugins
In reply to: [Interactive Content – H5P] Loading Content TypesWe’ve discussed the issue and it will have to be part of a bigger fix, making H5P work with remote CDNs as well. So unfortunately it will not be part of the upcoming release (which will hopefully be released by the end of the week).
We have no ETA for this fix yet, so you’ll have to get
file_get_contents()
working with remote URLs. This could be as easy as adding your hostname and ip address to/etc/hosts
, or opening a port in your firewall. Please see the link in my previous post.Forum: Plugins
In reply to: [Interactive Content – H5P] Loading Content TypesCurrently there’s an issue where we use the complete URL to read data from the files. This needs to be fixed in the next release.
I believe you can get around this issue by making sure DNS is working properly on your server. Check out the solution here.
Thank you for contributing to a better plugin.
Forum: Plugins
In reply to: [Interactive Content – H5P] Loading Content TypesHi again!
I did see your last post, but unfortunately I’m not able to reproduce the error you’re having from the data you’ve provided. Please provide more information about your hosting environment and relevant error messages from the JavaScript console and web server log.
Forum: Plugins
In reply to: [Interactive Content – H5P] Loading Content TypesHi! I’m sorry, did not receive any notifications about this issue.
Could you check your JavaScript error console, Ctrl+Shift+J in Chrome, for any errors? Also have a look in your web servers error log.
I’m assuming you have successfully uploaded H5P files with Presentation and Interactive Video, but are having issues creating new content. Am I right?