Chris David Miles
Forum Replies Created
-
Forum: Reviews
In reply to: [Dinosaur Game] It works without problemsThank you for the feedback
Forum: Themes and Templates
In reply to: [YITH Wonder] Phantom footer | Cannot edit or delete@gust2017 the issue should be fixed now. Double check that in wp-admin > dashboard > updates that there’s no updates available got your hosting account plugin, because the latest version fixes this issue. If you have auto update turned on, then you may already be on the latest version by now.
Forum: Themes and Templates
In reply to: [YITH Wonder] Wonder Blocks not working anymoreThere’s a bug causing the wonder blocks insert screen to unexpectedly close sometimes. A fix is in the works for that. You can expect an update to Wonder Blocks this week to resolve it. Can you see if you still have this problem at the end of this week?
Sounds good, thank you for the prompt response!
I deleted all plugin settings and reinstalled. That seems to have fixed the loop issue, and now it finishes in about a minute again, but still doesn’t export anything to github.
The debug log ends with this:
[2023-07-20 00:15:28] [class-ss-task.php:44] Status message: [github_commit] Comitted 50 of 53 pages/files (Your hourly GitHub API rate limit: 4950/5000 requests left) [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:165] We're not done with the github_commit task yet [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:125] Current task: github_commit [2023-07-20 00:15:28] [class-ss-archive-creation-job.php:141] Performing task: github_commit [2023-07-20 00:15:28] [class-ssp-github-commit-task.php:175] Total pages: 53; Pages remaining: 0 [2023-07-20 00:15:28] [class-ss-task.php:44] Status message: [github_commit] Comitted 53 of 53 pages/files (Your hourly GitHub API rate limit: 4947/5000 requests left) [2023-07-20 00:15:29] [class-ssp-github-database.php:181] tree.path contains a malformed path component [2023-07-20 00:15:29] [class-ss-task.php:44] Status message: [github_commit] Comitted 53 of 53 pages/files [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:160] We've found our next task: wrapup [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:125] Current task: wrapup [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:141] Performing task: wrapup [2023-07-20 00:15:29] [class-ss-wrapup-task.php:22] Deleting temporary files [2023-07-20 00:15:29] [class-ss-task.php:44] Status message: [wrapup] Wrapping up [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:156] This task is done and there are no more tasks, time to complete the job [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:179] Completing the job [2023-07-20 00:15:29] [class-ss-archive-creation-job.php:301] Status message: [done] Done! Finished in 00:01:12I’m guessing this is the line indicating a problem:
[2023-07-20 00:15:29] [class-ssp-github-database.php:181] tree.path contains a malformed path component
Forum: Plugins
In reply to: [Dinosaur Game] Help required on game colour and sprite customisation2x is used for retina displays and 1x is used for all others.
2x is meant to be the same as 1x just with more resolution.
More information: https://www.smashingmagazine.com/2012/08/towards-retina-web/
As for the color, the game is semi transparent and made with neutral colors so that it works with any background color. Demonstration: https://www.youtube.com/watch?v=zFke1zK3Z8I
You can modify the way the frame or background looks with regular CSS. https://www.w3schools.com/css/
Discussion has moved to github: https://github.com/Simply-Static/simply-static/issues/138
Forum: Plugins
In reply to: [Dinosaur Game] Not able to access the gameThank you for the information. I’ll reach out to nitropack and see if there’s anything they or I can do to be compatible by default. Thanks!
Forum: Plugins
In reply to: [Dinosaur Game] Not able to access the gameI am glad you got it working. 🙂
Can you tell me what plugin was causing the issue? Depending on what it was, I might be able to make a change to the dinosaur game plugin so that it’s compatible automatically. I have had to do that with a few image lazy loading plugins.
Forum: Plugins
In reply to: [Dinosaur Game] Not able to access the gameThe link you provided is an unpublished draft. So no one can see it but you. You would need to publish it for anyone else to see it.
You might try seeing if other shortcodes work if not, then it’s likely you’re using a shortcode in places where WordPress doesn’t render shortcodes by default like a footer or classic widget.
You also might try disabling all other plugins except for this one to see if you can see the shortcode working. If that helps, then turn on your plugins again one at a time to determine which one is causing an issue. Optimization plugins that modify html/css/js often cause problems.
Forum: Plugins
In reply to: [Dinosaur Game] Not able to access the gameAre you adding the shortcode [dinosaur-game] to the page?
There’s a typo in what I said. I meant to say:
~/robots.txtworks as expected, because it has a file extension. (.txt in that case)Right, that’s what I’m using to include the files.
When I do, if the file does not contain a file extension (.txt, .jpg, etc) then those files are being treated like html pages and that is producing incorrect filenames.
For example
~/_redirectsgets changed to~/_redirects/index.htmlbecause it’s being treated like an html page and not a file.~/robots.txtworks as expected, because it has a filename.But files without filenames seem to be processed as html pages: https://plugins.trac.ww.wp.xz.cn/browser/simply-static/tags/2.2.7/src/class-ss-url-fetcher.php#L181
So I’m asking for a way to preserve the file names of included individual files that have no file extension such as
~/_redirectsor~/_headersor~/pgp-key. How can I include these and other files while preserving the original filenames?Forum: Plugins
In reply to: [Dinosaur Game] Capture ScoreThe game doesn’t currently save high scores. I don’t have any plans on adding more features to the game or modifying it beyond what’s needed to work with other common WordPress plugins and WordPress core because I want to keep the plugin lightweight and fast.
That being said, lots of people want to change plugin assets and use their own JS, their own image sprites, add custom classes or attributes to the sprites, etc.
Everything from game js, css, spritemap images, the built in duplicate check, to the html attributes on the spritemaps themselves can be defined by another plugin using a PHP constant. If no other plugin defines those, the dinosaur-game plugin will fall back to its own default.
Here’s a proof of concept of how you can use custom assets with the plugin:
https://github.com/chrisdavidmiles/assets/raw/b41cc12b3db946e78517eb35a64a9291/custom-assets-dinosaur-game.zipThere are also some interesting forks of the same t rex runner JavaScript on GitHub you may want to check out if you want to see what others have done:
https://github.com/wayou/t-rex-runnerI hope this helps!
Forum: Plugins
In reply to: [Dinosaur Game] Where is game ?I’m glad you got it working. For anyone else with the same question, you can use the shortcode by adding [dinosaur-game] to your post or page.