[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/8code/ - Infinite Code

Discussion about 8chan's codebase.

Catalog

Email
Subject
Comment *
File *
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 4 per post.


Rules and Info: https://8chan.co/8code/rules.html | Main Repository: https://github.com/ctrlcctrlv/8chan/ | Archive: http://8archive.moe/8code/

File: 1418551468587.jpg (16.34 KB, 193x243, 193:243, ss (2014-05-07 at 10.07.28….jpg)

fb7b21 No.1[Reply]

I'll get a proper intro sticky up soon, but for the time being, here's an summary about this board.

This board is for the discussion of, and contribution to, 8chan's codebase. I made this board because, in my opinion, /meta/ is filled with a bunch of crossboard nonsense in relation to coding 8chan and the issues page for the main repo is quite cluttered and disorganized. Feel free to bring up any ideas or concerns (be it management/security/aesthetics/etc) as long as it pertains to the technology behind 8chan's operation.

There are a couple rules that you need to follow. READ THEM. See: https://8chan.co/8code/rules.html

ITT: Meta discussion and feedback about this board.
6 posts omitted. Click reply to view.

afffa2 No.21

 fucking
fuck fuck




File: 1457628671548.jpeg (75.36 KB, 300x300, 1:1, a_004.jpeg)

b8471f No.31[Reply]

MOTHERFUUUUuUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCKER



File: 1451522867205.jpg (138.65 KB, 678x450, 113:75, donte_lol.jpg)

1cfe30 No.29[Reply]

ded board



File: 1449106890939.png (210.69 KB, 301x287, 43:41, 1441138363352.png)

b70d8b No.27[Reply]

worst code ever seen lol



File: 1445344652774.gif (163.04 KB, 191x188, 191:188, 1445281581643.gif)

ead79f No.25[Reply]

I have searching for like a month to have the best imageboard script but I didn't find one untill I found infinite code. But I don't want that users can create their own board is there an possibilty to dissable that?



File: 1444985347486.jpg (28.45 KB, 872x960, 109:120, FOLLOW YOUR DREAMS.jpg)

a89630 No.24[Reply]

When you have too much text in a box, it will truncate it and add a line saying "Post too long. Click here to view the full text."

However, sometimes it does this on the last line. Considering that the "post too long" msg actually takes up 2 lines, it should perhaps take how much text is left in the post into consideration, rather than cutting it off at a hard #.



File: 1442670822652.jpg (18.75 KB, 300x354, 50:59, golly.jpg)

200e73 No.22[Reply]

So as per the configuration menu I set up my custom codes for all of the formatting options. Spoiler is like dis, bold is [b]like dis[/b] etc. Unfortunately it seems that no matter what, the site will not accept my magic words and continues to expect default syntax.

Is there a fix for this in the works?

200e73 No.23

Well, spoiler worked, but otherwise…




File: 1419091836187.webm (1.44 MB, 1680x948, 140:79, GrayLittleCranefly.webm)

d81c13 No.7[Reply]

This is an issue I submitted to Github a while ago that sadly got ignored. When you are previewing an external thread, it seems all the thumbnails are also being downloaded. As you can imagine, this causes considerable delay when previewing a large thread.

I post here in the hope that someone can suggest a fix.

Link to the issue and relevant code:
https://github.com/ctrlcctrlv/8chan/issues/213
https://github.com/ctrlcctrlv/8chan/blob/master/js/post-hover.js

7ae872 No.8

>>7
Currently what happens is that the script polls the entire thread and caches it inside the DOM as a hidden node. Because it's stored in the DOM instead of a global JS variable, all the images are loaded from the thread.

My solution would be to consolidate each of the scripts to use a unified global JS map variable to store 8chan specific stuff and have all of the scripts just extend that variable as needed. THEN have a sub-map for the post-hover.js that stores cached threads for post hover.

Realistically, just storing in a global cached_threads variable or something would probably work. Would need to do some testing on that though.

d81c13 No.9

I did some tests on Chrome, and it appears that any jQuery operation done on the Ajax response will cause the images to be loaded into the browser.
Even though many parts of the code still baffles me, I think it's suffice to say the solution is to fetch the thread through the json api (e.g. https://8chan.co/8code/res/7.json), and reconstruct the needed post from that.

d81c13 No.10

Okay, I need some help. I can't for the life of me figure out what this "data-thread" link attribute is suppose to do or indicate.

d81c13 No.13

Hey y'all, long time no see. I have finally written the solution to this little problem, and now am in need of feedbacks and bug testing before submitting it as a PR.

To test it, just run the following code
http://pastebin.com/nuvehDT8

For previewing all posts in the current thread, the behavior reminds exactly the same.
For external posts though, due to the limitation of the JSON API, the preview will not contain things like youtube embeds or board flags.

7ae872 No.15

>>13
Did some tests and it seems to be working as intended. Good work m8. Will be using the script till it gets pulled upstream.

Here's an external file for it
load_js("https://dl.dropboxusercontent.com/u/18208651/8chan/post-hover-temp-fix.js");



File: 1418720925102.png (27.61 KB, 713x229, 713:229, tar.png)

575e37 No.5[Reply]

Could we get like some sort of list of important files/functions that 8chan uses and what they do? Documentation in the codebase is non-existent, not even developer notes scattered around.

d0de1b No.6

+1

This would really help contributors with grokking the codebase.



File: 1418626883404.gif (4.71 MB, 500x500, 1:1, hexbox.gif)

c5dee2 No.4[Reply]

Is there a reason why we can't have spoilered images generate thumbnails? There have been a number of requests across boards that I've seen about having an "unspoiler images" option available. Is it a storage issue, or just that it hasn't been programmed into the site yet?


File: 1418553276656.png (377.75 KB, 454x603, 454:603, AnsiC_StopTreatingThemLike….png)

155a4b No.2[Reply]

Something I dislike about code tags both on Halfchan and Fullchan is their lack of flexibility. Fullchan's code tags eat tabs (whereas Halfchan's converts them to four spaces), and neither of them is syntax aware. Both of them will highlight keywords arbitrarily as long as they're used in some sort of programming language, and will treat certain symbols as comments or quotes regardless of what language they're in. This makes them very bad for Lisp based languages, which often use single quotes and # characters to represent symbols and characters. I think we can do better than that.

Rather than our current approach to code tags, perhaps we could do something like <code lang="C"></code> (but as BBcode obviously), and have it perform syntax highlighting based on that language. If no language is provided, it would do the default action it currently uses (except maybe not eating tab characters and looking like total shit on mobile).

What would it take to get something like this implemented?

fcd228 No.3

>>2
I think it could be possible by making use of the ACE editor highlighting syntax.
https://github.com/ajaxorg/ace-builds/blob/master/src-noconflict/
8chan currently uses prettify.css for highlighting the DOM, but I'm not sure what is used to filter the BBCode into markup content yet.
It's probably more involved than any of the contributors/devs want to deal with atm though, so it might be a while before it gets tackled.



Delete Post [ ]
[]
Previous [1] Next | Catalog
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]