hello guys,
i was thinking about ordering a xf license for a imageboard, whith chevereto, so i registered a demo server to check if everything i want is possible, before purchasing.
what i would like to achieve:.
1.disable xenforo-"attach files" functionality
2.change the "attach-files" button under the editor to the chevereto-pup-button
3.change the "insert image"-BBcode-Button-popup to use the chevereto-pup
what i tried:
1. added a new template "picupp", and added:
2. added this to the editor template
3. wiped "attachment_upload"-template (for removing the attach files button)
The result
i tried for 2 or 3 hours to find out what is providing the attachment button. after i succesfully removed it by wiping "attachment_upload"-template, i couldnt change the position of the chevereto "Upload Images". i tried everything.
no matter what i did, the button is alwys above the editor
its so confusing, i searched the whole internet but couldnt find out how the thousands of templates are arrangeing the elements.
What am i missing? can somebody tell me if there is a fix for this or if i should look for other forum software than xenforo?
best regards
i was thinking about ordering a xf license for a imageboard, whith chevereto, so i registered a demo server to check if everything i want is possible, before purchasing.
what i would like to achieve:.
1.disable xenforo-"attach files" functionality
2.change the "attach-files" button under the editor to the chevereto-pup-button
3.change the "insert image"-BBcode-Button-popup to use the chevereto-pup
what i tried:
1. added a new template "picupp", and added:
HTML:
<script async src="//demo.chevereto.com/sdk/pup.js"
data-url="https://demo.chevereto.com/upload"
data-auto-insert="1"
data-vendor="xenforo"
data-sibling=".button.button--primary.button.button--icon.button--icon--upload"
data-sibling-pos="after"
data-observe=".button.button--primary.button.button--icon.button--icon--upload"
data-html="<button %x type='button' class='button--primary button button--icon button--icon--upload button--chev--after %iClass'><span class='button-text'> {{ phrase('itmChevInt_uploadImage')}}</span></button>">></script>
<style>
.button--chev--before {margin-right: 5px;}
.button--chev--after {margin-left: 5px;}
</style>
2. added this to the editor template
HTML:
<xf:include template="picupp" />
3. wiped "attachment_upload"-template (for removing the attach files button)
The result
i tried for 2 or 3 hours to find out what is providing the attachment button. after i succesfully removed it by wiping "attachment_upload"-template, i couldnt change the position of the chevereto "Upload Images". i tried everything.
no matter what i did, the button is alwys above the editor
its so confusing, i searched the whole internet but couldnt find out how the thousands of templates are arrangeing the elements.
What am i missing? can somebody tell me if there is a fix for this or if i should look for other forum software than xenforo?
best regards
Last edited: