Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Zonelets (Starter Files)

A simple, free blogging engine for everyone! · By Zonelets

Zonelets Missing Title/links Bug UPDATE: FIX AVAILABLE! Sticky

A topic by Zonelets created Dec 14, 2022 Views: 837 Replies: 7
Viewing posts 1 to 8
Developer (1 edit) (+2)

Hello everyone,

Sadly something has happened and now it seems that the post titles and next/previous links are not being created on all Zonelets sites. I'm very sorry to everyone using Zonelets that this is happening, and right off the bat I'm not sure what the problem is. Please let me know if you understand the issue, I'll see what I can figure out.

Thanks,
Marina

Developer (3 edits) (+5)

Fix:

Figured it out! To fix this issue, please copy the following code and paste it after the existing line that reads: "let currentFilename = url.substring(url.lastIndexOf('posts/'));"

//Depending on the web server settings (Or something?), the browser url may or may not have ".html" at the end. If not, we must add it back in to match the posts array. (12-19-2022 fix)
if ( ! currentFilename.endsWith(".html") ) {
    currentFilename += ".html";
}

NOTE: The exact line number will vary depending on how many posts you have! Copying the comment is optional.

Explanation:

Zonelets posts are html files. However, as noted in the commented code above, the url in your web browser may or may not display the ".html" at the end. Without the “.html” Zonelets can’t compare properly to the links in the Posts Array, so it can’t figure out “where” the post is in the array. This is why it breaks the title/date and next/previous buttons. The commented code simply adds back in the ".html" IF it's missing.

(+2)

thank you!!

(1 edit) (+1)

Do you know how long it might take for the fix to take effect after the code is updated? 

Developer(+1)

Should be basically instant, but this depends on various webserver stuff and sometimes can be delayed. Alternatively, you may need to do a hard refresh or clear your browser's cached data!

(+1)

thank you so so much for this fix!!!

(+1)

Thank you. I thought I had broken it by tinkering, didn't even notice there was a fix, just downloaded the starter pack again and compared the sections I suspected were responsible and noticed the extra lines.

Thanks for the fix! I just touched my site for the first time since just before this issue apparently started occurring and I was pulling my hair out trying to figure out why it just wasn't working anymore.