>>1803Fair 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.phpYou 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.