Closed Anonyymi closed 1 year ago
hay, here are 3 extremely simple -but interesting imageboards. Download all3, seriously...... krila is cool it only shows 1 thread when you go to "reply" mode it shows em all, and you click on the banner to return to the main board. BOTH scripts are only a few short lines of php, both use flatfile so it is super easy to study the code. I think you can find how to save the original filename code in one of them!!!!!!!! Both are super easy to study and very small codebase...check out both and study them closely!!!!! https://github.com/aamm2/krila https://github.com/General-Infinity/4chud https://github.com/brodyking/Openchan
edit........ and here are 2 more complicated ones...but they are using the same code as yours ... you can definitely use features from either of these...especially helma
https://github.com/NellielProject/Nelliel https://github.com/helma-dev/kusaba-helma
actually, I just realized that the latest tinyib shows the hashed filename, then actually shows the original filename too, so the code is right in tinyib on how to show original filename. https://code.rocketnine.space/tslocum/tinyib Huh...i never noticed that b4 but it shows the original filename too . So the code is definitely there .
Here, I uploaded a file called 27.jpg. It shows the hashed filename, the details, then it shows the original filename as you can see. So the code to solve this issue is definitely right in tinyib.
Yes, we keep the original filename, but this issue is about a feature that allows the user to download the file with its original filename instead of the unix-timestamped one.
Ahhhh. Sorry, i did not understand what you meant. check this out tho ...it does exactly that :) https://am4.org/vi/js/download-original.js
and i can confirm that vichan now installs fine on php 8.1.2 by the way :) That is quite remarkable, I thought that I would never install vichan again.
https://am4.org/vi/ here is a working demo of the above. you click on the original filename and it allows you to download it as the original. (its in the random board)
So is something like that (using js) an acceptable solution or do you want it hard coded via php? The js solution is an instant solution and quite modular- some ppl do not like js tho. If you want i can port the js to tinyib and make it work there, too, in order to show that it is a drop in solution that can work on any board.
So is something like that (using js) an acceptable solution or do you want it hard coded via php? The js solution is an instant solution and quite modular- some ppl do not like js tho. If you want i can port the js to tinyib and make it work there, too, in order to show that it is a drop in solution that can work on any board.
I'm coding it in PHP because the JS solution is irreliable in older browsers. The PHP solution only requires a simple endpoint that serves the files with original filenames.
I'm trying to rely on JS as little as possible.
I am not clicking on your links. Get out. Deleted message.
Not required right now.
Optional possibility to save a file with its original filename.