need help to add Image hosting in templates.

Gursher

Active member
Registered
Joined
Jun 11, 2020
Messages
38
Points
18

Reputation:

hello guys,
i need you help, i want imgbb hosting Upload button in editor bar.. i added this code in [forum_post_thread] , [quick_reply_macros] Templates and this working fine in reply box or while creating thread, but i don't know why its not working in when i edit the post, then that upload button didn't show.. Please help...
Code:
<xf:comment> imgbb</xf:comment>
                <script async src="https://imgbb.com/upload.js"
                        data-url="https://imgbb.com/upload"
                        data-auto-insert="html-embed-medium"
                        data-sibling=".formRow.formRow--input.formRow--fullWidth.formRow--noLabel.formRow--mergePrev"
                        data-sibling-pos="after"
                        data-html='<a %x type="button" class="%bClass button--link u-jsOnly button button--icon button--icon--upload rippleButton"  style="margin-bottom: -5px;margin-left: 10px;"  ><span class="button-text">Upload Images</span></a>'>
                </script>
Screenshot_20201218-152525_Chrome.jpg
 
Last edited:

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,067
Points
173

Reputation:

what ? xf v.?
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,067
Points
173

Reputation:

add your code to template PAGE_CONTAINER above </head>
 
Top