I used this script to “clean up” two courses I’m developing (about 1,000 words each). It worked like a champ! Thanks, @neoncube, for providing this!
Is there any chance you could adapt your script so it would be possible to check for just a few levels at a time and not for a whole course at once. I’m asking this for an XL course (nearly 5000 words and 200 levels) that I’m going to contribute to.
Are you wanting the script to process the levels in “chunks”, so that the browser doesn’t freeze for large courses, or are you wanting to be able to just process certain levels (for example, levels 2, 5, and 7)?
They are 25-words levels but there are so many levels. So I am mainly worried about freezing when processing all the levels at once. If the latter option would be possible.
Okay. That seems like a reasonable request to me, but honestly, I’m not sure that I have the time/motivation to do a change like that at the moment.
Can you go ahead and run the script and see how things go? I’ve run this script before on courses that had similar amounts of words/levels as what you’ve described, and the page would often freeze for perhaps a few minutes, but it would eventually become responsive again
All right, I really didn’t know if it would be possible and how much time it would take to make such a change. But I just thought I could try and ask if you saw a chance to do this because the course in question needs a lot of editing.
I ran the script once without any difficulties and it took about 15 minutes.
I’m having some issues with a popular course I’ve recently adopted. It is a multiple instances of the same picture problem that your script does not seem able to fix.
Maybe that is because of the amount of test columns this course has. The main problem is the fourth test column. When I run your script the database entries in levels testing for the third and fourth column stay grey. So I guess that means (in this case) these columns are not being processed?
Can you please post a screenshot?
I got your screenshot. I have some ideas on how it might be possible to modify the script to fix phantom images as well as phantom text entries, but my motivation to work on this script is kind of low at the moment, sorry.
Does deleting and reuploading the images on the entries that have the phantoms fix them?
Thank you so much for writing and sharing this script. I made a lot of corrections in my course and the phantom answers drove me crazy. Thanks to you it was solved in a minute.
Glad to hear it was helpful
You are an absolute STAR. Thank you!
This script seems to have resolved the issues I’ve been having on one on my private courses. Thanks!