diff --git a/404.php b/404.php index cee2ece6..b28dbd25 100644 --- a/404.php +++ b/404.php @@ -37,7 +37,7 @@ $page = <<Do not post, request, or link to any content illegal in the United States of America. Do not create boards with the sole purpose of posting or spreading such content.

Other than that, you are free to institute whatever rules you want on your board.

+

More information about US obscenity laws and how they relate to 8chan boards

How do I add more volunteers?

You may do this in your board settings, click on "Edit board volunteers".

How do I manage my board?

diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index 33a6e752..aa9bc376 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -262,7 +262,7 @@ error($config['error']['invalidimg']); } - if ($size[0] > 20 or $size[0] < 11 or $size[1] != 11){ + if ($size[0] > 20 or $size[0] < 11 or $size[1] > 16 or $size[1] < 11){ error(_('Image wrong size!')); } if (sizeof($banners) > 256) { @@ -405,6 +405,7 @@ FLAGS; $katex = isset($_POST['katex']) ? '$config[\'katex\'] = true;$config[\'additional_javascript\'][] = \'js/katex/katex.min.js\'; $config[\'markup\'][] = array("/\[tex\](.+?)\[\/tex\]/ms", "\$1"); $config[\'additional_javascript\'][] = \'js/katex-enable.js\';' : ''; $user_flags = isset($_POST['user_flags']) ? "if (file_exists('$b/flags.php')) { include 'flags.php'; }\n" : ''; $captcha = isset($_POST['captcha']) ? 'true' : 'false'; + $force_subject_op = isset($_POST['force_subject_op']) ? 'true' : 'false'; $oekaki_js = <<` tag of your HTML document(s): + +```html + +``` + +## API + +Following all methods exposed through the `twemoji` namespace. + +### twemoji.parse( ... ) + +This is the main parsing utility and has 3 overloads per each parsing type. + +There are mainly two kind of parsing: [string parsing](https://github.com/twitter/twemoji#string-parsing) and [DOM parsing](https://github.com/twitter/twemoji#dom-parsing). + +Each of them accept a callback to generate each image source or an options object with parsing info. + +Here is a walk through all parsing possibilities: + +##### string parsing +Given a generic string, it will replace all emoji with an `` tag. + +While this can be used to inject via `innerHTML` emoji image tags, please note that this method does not sanitize the string or prevent malicious code from being executed. As an example, if the text contains a ` {% include 'header.html' %} - {{ board.url }} - {% if config.thread_subject_in_title and thread.subject %}{{ thread.subject }}{% else %}{{ board.title|e }}{% endif %} + {{ board.url }} - {% if config.thread_subject_in_title and thread.subject %}{{ thread.subject }}{% else %}{{ thread.body_nomarkup[:256]|e }}{% endif %} {{ boardlist.top }}