-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate a browsable index.html thread listing #4
Comments
This is indeed an awesome idea, but the implementation isn't that simple imho, at least if the archive is somewhat big.
|
That's fair enough, especially with big archives. If we were implementing something like this, I'd try to make the main 'index' a json file, stored either in the base site directory I'd try to make the 'index' file as simple as possible so we could easily append to it with each added thread, and so that we wouldn't have to edit the actual html file each time we add a new thread. That said, that method may not play nicely with local resources not being allowed to be obtained from I'll also look at how FoolFuuka displays things and handles thread searching, likely taking some inspiration from there when I implement this feature. That said, this feature will likely be a while off from getting implemented, but if you do have any other ideas, please let us know! |
This is related to the utility described in #21 |
So there will probably be three functions that build this thread listing:
|
I was thinking similarly. Regenerate the thread index from scratch if it On 2 October 2015 at 10:19, Lawrence Wu [email protected] wrote:
|
May also need to be inserted into the created index html file, that is. One requirement I have for the index is that it uses no external files, On 2 October 2015 at 10:47, Daniel Oaks [email protected] wrote:
|
Ok, so we can have a cut down Futaba CSS theme as a Because we have Python + Jinja at our fingertips, we can just insert data into the HTML file each time, and append to the JSON file for the script to read from later. Truthfully, a feature I kind of felt was critical was Sortable tables. Even though the Sortable clause is already in HTML5, browsers still do not support it, so we have to use JavaScript to do it. I guess we will have to toss this JavaScript into the index.html file then. |
Yep, exactly. I'll start the CSS/templating after I've merged threaded into master and Will probably go with Compass+SASS for the styling, whatever JS we need, Py Never used Sortable tables, will take a look! On 2 October 2015 at 12:24, Lawrence Wu [email protected] wrote:
|
@antonizoon, just wondering, were you thinking sortable tables as in being
able to sort the list of threads (by date, etc), something like that? I can
work that out, and I'm thinking being able to search the OP / thread title,
etc, similar to how 4chan's catalog lets you.
|
Since I am also working on making a World4ch viewer (displaying archived databases from dis.4chan.org), how I did it there was to create a large table listing all threads, and used a sortable table to arrange threads ascending or descending by date, bump time, thread number, or number of posts. Basically, a poor man's data analytics, with Ctrl-F as the search system. One issue with this approach, inherent to static HTML, is that there is no pagination: though that may not be something we want. I guess an approach similar to the 4chan Catalog would fit for an Imageboard, but any kind of search or rearrangement system requires a lot of extra javascript. |
I don't think it'll be too bad. I'll play around with it and see what I can get cooked up! |
One of the great ideas suggested by @antonizoon is generating an
index.html
file in the root or somewhere we can use to browse the various threads in our archive. That or a JSON file or something similar, but I think a decent little HTML file generated with some templates and showing a thread listing similar to the pages in a 4chan board shouldn't be too much trouble.Would make it really nice to browse archives on our personal machines, and I can see this being a great feature.
The text was updated successfully, but these errors were encountered: