First, I saw your posts and requests for help in the official FLOURM community, QQ group, and this forum. I was quite frustrated.
"Urgent!!!", "Going live immediately," – I don't want to discourage anyone, but I think it would be better not to go live at all, because there is clearly no programming background. Under these circumstances, going live wouldn't be a good idea. I apologize, but I also don't have enough energy to provide a detailed explanation.
Then, I will answer your questions.
1、 Developed independently; plugins require independent development, and the code for this function is as follows: FollowModal can extend the official, custom one.
import { extend } from 'flarum/extend';
import IndexPage from 'flarum/components/IndexPage';
import Button from 'flarum/common/components/Button';
import FollowModal from './components/WechatFlow/FollowModal';
export default function addWechat() {
extend(IndexPage.prototype, 'viewItems', function (items) {
items.add(
'wechatModals',
<Button
icon="fab fa-weixin"
className="Button Button--icon hasIcon wechatFollow"
onclick={() => {>```json
{
app.modal.show(FollowModal)
}
aria-label="Follow the HamCQ community WeChat official account"
```
>
</Button>```javascript
return items;
};
```
2. The `scope` parameter is incorrect or you lack the necessary permissions. This is an issue on the WeChat side, and you need to check it yourself. Note that the public accounts must complete authentication. The first two are variables for WeChat developers, while the last two correspond to login for the web version and mobile versions, respectively.
3. Developed independently. I have written an article about methods for developing plugins.https://discuss.flarum.org.cn/u/emin/discussions