Image Hosting 1.2.1 integration

Support area for phpBB's mChat extension
Post Reply
mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Image Hosting 1.2.1 integration

#1

Post by mastnacek » 13 Dec 2018, 07:06

Hello
i try use Image Hosting 1.2.1 in mChat.
https://www.phpbb.com/community/viewtop ... p=15151101


Added line into this file
/ext/imagesguru/imagehosting/styles/all/template/event/dmzx_mchat_body_after.html
line:
<script async src="//images.guru/sdk/pup.phpbb.quick.js" data-url="https://images.guru/upload" data-html="<button %x type='button' class='button' title='%text'><i class='icon fa-cloud-upload fa-fw' aria-hidden='true'></i> %text</button>"></script>

Its functional but it looks as image. How add button into bbcode or as new button?
Attachments
image.png
image.png (6.63 KiB) Viewed 99 times
image.png
image.png (6.63 KiB) Viewed 99 times

User avatar
kasimi
mChat developer
Posts: 926
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Image Hosting 1.2.1 integration

#2

Post by kasimi » 13 Dec 2018, 12:17

Put the code in the template event dmzx_mchat_buttons_after.html and use this for the data-html attribute value:

Code: Select all

<button %x class='button' title='%text'><i class='icon fa-cloud-upload fa-fw' aria-hidden='true'></i><span class='sr-only'>%text</span></button>

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: Image Hosting 1.2.1 integration

#3

Post by mastnacek » 13 Dec 2018, 12:39

Done, but result is same, only button have only icon
dmzx_mchat_buttons_after.html
<script
async src="//images.guru/sdk/pup.phpbb.quick.js"
data-url="https://images.guru/upload"
data-html="<button %x class='button' title='%text'><i class='icon fa-cloud-upload fa-fw' aria-hidden='true'></i><span class='sr-only'>%text</span></button>">
</script>

User avatar
kasimi
mChat developer
Posts: 926
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Image Hosting 1.2.1 integration

#4

Post by kasimi » 13 Dec 2018, 12:51

If you remove the pup.phpbb.quick.js script, you see the button is displayed correctly. This means the script moves the button to a different position than where it is placed in the original HTML. Ask the script author to place the button correctly.

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: Image Hosting 1.2.1 integration

#5

Post by mastnacek » 13 Dec 2018, 13:02

Big thanks kasimi im in cotnact with author.

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: Image Hosting 1.2.1 integration

#6

Post by mastnacek » 14 Dec 2018, 09:27

In new verison 1.4 is problem solved! :)
https://www.phpbb.com/community/viewtop ... &t=2493696

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest