Is there a Getting started resource on how to write new plugins? #1030
-
Hi, I'm a web developer and would like to add a plugin for the yiffer.xyz website. I've already looked at the code for the e621.net website, but it's not fully clear to me yet what's needed to make a new plugin for yiffer.xyz work. Is there a resource or guide that explains the most important parts of HZ+ plugins? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The easiest approach would be to copy any existing plugin and adopt it to work for your website. You'd need to duplicate one of the files under the |
Beta Was this translation helpful? Give feedback.
-
Hi @m6man, In yiffer.xyz, each cover points to a comic (= a collection of several images). e.g: for "Bifurcation" comic:
|
Beta Was this translation helpful? Give feedback.
Hi @m6man,
In yiffer.xyz, each cover points to a comic (= a collection of several images).
So basically, for each cover you need to prepare a gallery (= urls of images contained in the comic) that HZ+ will display when user hovers the cover.
A good starting point would be the bnf.js plug-in i wrote.
e.g: for "Bifurcation" comic:
<p title="Number of pages">11</p>