◆ [Date updated: 2024/06/24(Mon) 05:05:07]
■Hai guys, had a question. How did you implement BBcode in ksphp?
│
└■To specify, how did you turn BBcode to ascii?
│
└■There's no BBCode here so I'm not sure I understand... are u asking
│about the kaomoji buttons?
│
│You can see the JS for that by using View Source ヽ(´ー`)ノ
│
└■Yes I meant the kaomoji buttons, the little AA characters at the bottom of the post form.
│I looked at the source, is there a github link for the JS
│
└■afaik there's no github link with it
but I think this is the file you're looking for
https://static.heyuri.net/js/addemotes.js (download it, don't direct link it lol)
a very basic sample page that will let you use the script:
<!DOCTYPE html>
<html>
<body>
<textarea id="com"></textarea>
<script src=addemotes.js></script>
</body>
</html>
you'll need to modify the script for your site naturally (eg, the emotes list, what bbcode tags you support, etc), but this should get you going
Return