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

/prog/ - Programming

Programming board

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
A message from @CodeMonkeyZ, 2ch lead developer: "How Hiroyuki Nishimura will sell 4chan data"
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
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 1 per post.


File: 1427147122999.jpg (392.05 KB, 1280x1024, 5:4, 1424107992544.jpg)

a313f7 No.1803

Hello /prog/. On /b/ some of us are trying to get dragonslayer threads over here to 8chan. The problem is that none of us know what the hell we're doing, or just don't want to do it.
http://8ch.net/b/res/2115098.html
This is the thread.

If anyone here would be kind enough to help, we would be grateful.
>http://dragonslayer.eu01.aws.af.cm/
>https://github.com/entomb/dragonchan
This is the website and github. An anon in the /b/ thread said that this project would require rewriting the script from scratch, so it might be a lot of work.

If you don't want to help I completely understand. But if no one wants to it would be helpful if you would point me in the right direction for what I need to learn and download to at least attempt to try doing this myself.

6b2814 No.1806

Have you contacted the original maintainer? I don't think such a port should be very hard if someone knows what they are doing. It should only be necessary to change some minor differences in the HTML structure of the program.

ece330 No.1819

>>1803
Fair warning: I don't actually know PHP, so there is some bullshit up ahead.

Porting (rather than rewriting) should be possible, but there are two problems:

1.) The original script depends on halfchan's JSON API
So you'll need to find all of the URLs scattered throughout the script and change them to point to fullchan.
See: https://8ch.net/faq.html (the "Can I have a list of all API endpoints for getting raw data from 8chan?" section)

So for example, in this file:
>https://github.com/entomb/dragonchan/blob/master/lib/catalog.php

You would need to change the line:

var $api_url = "http://api.4chan.org/b/catalog.json";


to:

var $api_url = "https://8ch.net/b/threads.json";



And you'll probably have to fuck with some of the code that deals with the JSON and making posts.
Conveniently though, it looks like halfchan and fullchan have similar APIs, so I doubt you'll need to do anything too major. Just in case, you might want to Google some PHP, HTML, and JSON references.


2.) You'll need to host the modified version somewhere.
The script is PHP, so you'll need a host that will let you run PHP. IDK about this one, maybe see how generous the person hosting the original script is.

This will make testing your changes a gigantic pain in the ass. You could probably set up a PHP server on your computer for testing though.


Alternatively, you could rewrite it, but obviously that would be a lot more involved.

a313f7 No.1821

>>1806
I tried but failed.

>>1819
I see. I guess I could try to figure out how to do that. Thanks.



[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]