Need some help with Boltwire and images

24 views
Skip to first unread message

Shawn H.

unread,
Sep 1, 2024, 3:56:57 PM9/1/24
to BoltWire
Hello,
I'm using Boltwire for a website about our mini fossil museum.  I think I'm using the most recent version of the engine (downloaded several months ago).

I ran into an issue when I uploaded my boltwire website to bluehost.  A lot of my image files had upper case characters, and the markup for my pages also listed the image files with upper case characters.  But Boltwire converts the image file names to lowercase when rendering out the webpage code.  This didn't cause any problem on my local server which is apparently set to be case insensitive.  But when I uploaded to bluehost I found out that apparently their server is case sensitive.  So since boltwire was making all the image file names lower case, it could no longer find my images.
Ok, so I thought this should be easy to fix, so I batch renamed all the image file names to lower case.  So that fixed the problem for the main part of the webpages.  The markup on each page still has the name with uppercase, but since boltwire makes it all lower case it comes out fine.

But then I ran into a different problem.  I have a little embedded script in the side zone that displays several images that go along with each type of fossil in the main zone of the page.  Apparently Boltwire just passes the embedded HTML code directly to the rendered webpage without changing the case of the file names.  So now the image files on the side of the website are no longer loading.

So I'm not sure what's the best way to solve this.  Any ideas?  I don't relish the idea of having to go back and change the case of all the image names in the pages.  There are about 130 pages that I would have to edit.

Thanks for any suggestions!
Shawn

Dan Vis

unread,
Sep 5, 2024, 3:10:52 PM9/5/24
to bolt...@googlegroups.com
Yes, if you have an embedded script, it just outputs the content of that script as is. Is there a way to edit your script? If it's javascript, it should be a simple matter to add strtolower() function in it. Also, where is the index for your image titles? The other option is to simple make that index all lowercase?

BoltWire keeps everything lower case on the back end so the links you create are always case insensitive (so you don't have to remember the exact caps). I think there's an option to turn that off, but if you already renamed all your files, then that's not going to help with anything!

Nice to know someone is still using BoltWire. It's running faster and better than ever, and I use it every day. But alas, our community is shrunk. Seems WordPress is eating the whole WWW. But I can't imagine not having the power of BoltWire in my community. I'm able to make rapid pivots and changes on a dime. Anyway, that's a rant for another day.

I'd love to check out your site Shawn when you get it running again! :)

Shawn H.

unread,
Sep 17, 2024, 3:06:22 PM9/17/24
to bolt...@googlegroups.com
Hello Dan,
Yes, I wouldn't be able to do in other platforms what I can do in boltwire (unless I did a lot of learning about how to write addons or something).  So I'm glad boltwire is still around! :-)

Each fossil page on my website contains info variables that contain the names of up to two image files and two credit lines for images that have to do with that fossil page.  The side zone loads those images that are associated with each fossil page that is loaded into the main zone.  So it would be a lot of work to go back and make all the image variables lower case in each fossil page.  But maybe the javascript solution could work.  I don't know how to write java script at all though.

Here is the code that I currently have in my side zone that loads the images and credit lines:

[if inpage {p} 'image1'][image src="{::image1}" style="width: 100%;"]
{::credit1}[if]

[if inpage {p} 'image1'][image src="{::image2}" style="width: 100%;"]
{::credit2}[if]

Do you have any idea how I could accomplish that same thing with an embedded java script and utilize the strtolower() function?

Thanks!
Shawn

--
You received this message because you are subscribed to the Google Groups "BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boltwire+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/boltwire/CABnVu_7uGUEwb3U3QcG-ktrNAie4Qi%2BocxYJ3%3DtK%3D%2Bfee8vOxw%40mail.gmail.com.

Dan Vis

unread,
Sep 18, 2024, 10:38:38 AM9/18/24
to bolt...@googlegroups.com
So just to clarify, your files on the server are all lower case, but your custom script is looking for files with some capitalization? Or is the problem the files are capitalized, but BoltWire is looking for lowercase only?

I think there's probably an option to allow you to use capitalizations in your images in BoltWire (I'd have to check). But to offer a suggestion on how to edit your custom js script I would have to see it.

Where does the js script get it's file name from? If it's some kind of index, would it be easier to just lower case the index?
Reply all
Reply to author
Forward
0 new messages