Simple Machines Community Forum

General Community => Scripting Help => Topic started by: ModelBoatMayhem on September 22, 2017, 02:16:38 PM

Title: Chevereto /Pugin
Post by: ModelBoatMayhem on September 22, 2017, 02:16:38 PM
 
Has anyone installed the Chevereto /Pugin yet?
https://chevereto.com/docs/pup (https://chevereto.com/docs/pup)

It's not Packaged and I have no idea how to implement it!
.... something about adding  custom HTML

.... Help

From Chevereto:
For SMF and any other CMS, you must refer to the documentation of each target system in how to add custom HTML.
If you don't want to read then ask SMF community  directly because you want to install the plugin in that system so ask the people who run that system.

Title: Re: Chevereto /Pugin
Post by: Jailer on September 22, 2017, 06:15:48 PM
Is this Mayhem? I could re post the instructions here as I'm sure they won't get deleted although a forum mod may want to move it to off topic/mod section instead of support.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on September 22, 2017, 06:54:52 PM
 
Yep, it's me, Mayhem!

Not sure why 'Chevereto ' is being such an arse about this, not all of use are 'coding kings'!   >:(


Anyway,  Yes please, please re-post your instruction here.

Thanks,
MBM
Title: Re: Chevereto /Pugin
Post by: Jailer on September 22, 2017, 07:07:35 PM
I see your site uses the core theme. I have not been able to get the plugin to work on the quick reply box although it does work on the regular reply box. I'll post the instructions in a bit, have to run an errand right now.

Hopefully someone smarter than me will see this thread and help out with the quick reply/Core issue.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on September 22, 2017, 07:24:04 PM

Not too worried about 'Quick Reply'.... no one ever uses it!    ;)
Title: Re: Chevereto /Pugin
Post by: Jailer on September 22, 2017, 08:02:30 PM
Source the code from your chevereto site at /plugin and select the option you want for your plugin, there's many to choose from.

You'll have to edit a few files manually to get it to work. Of course replace the "yoursiteurl" in the code below with your actual URL from your chevereto installation that you get from the /plugin page.

Edit ./Themes/default/Post.template.php

Find:
// Show the actual posting area...

Replace:
echo '<script async id="chevereto-pup-src" src="//yoursiteurl/sdk/pup.js" data-url="https://yoursiteurl/upload"></script>';

// Show the actual posting area...


Edit ./Themes/default/Display.template.php

Find:
<a id="quickreply"></a>

Replace:
<a id="quickreply"></a>
<script async id="chevereto-pup-src" src="//yoursiteurl/sdk/pup.js" data-url="https://yoursiteurl/upload"></script>


If you have any other themes installed complete the second edit listed to that theme's Display.template.php file for each theme including the Core theme that you are using.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on September 26, 2017, 10:05:01 AM

Works perfic' Jailer! 
  8)
Title: Re: Chevereto /Pugin
Post by: Jailer on September 28, 2017, 08:45:07 PM
Quote from: ModelBoatMayhem on September 26, 2017, 10:05:01 AM

Works perfic' Jailer! 
  8)

Awesome, glad I could help.
Title: Re: Chevereto /Pugin
Post by: lesmond on October 01, 2017, 06:40:03 PM
I have made a mod for the chevereto Upload plugin, but just for personal use, if anyone wants a copy shoot me a pm :)

You will have you change the URL in the package to your own site.
Title: Re: Chevereto /Pugin
Post by: Biology Forums on October 02, 2017, 01:06:04 AM
What does it do exactly?
Title: Re: Chevereto /Pugin
Post by: lesmond on October 02, 2017, 06:31:32 AM
Quote from: Study Force on October 02, 2017, 01:06:04 AM
What does it do exactly?
Basically adds the code that  Jailer posted above to a package, so it can be installed to your forum without having to add it manually.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on October 02, 2017, 10:49:46 AM
 
Works great Lesmond!
How do we get it for our own sites?  :)
Title: Re: Chevereto /Pugin
Post by: lesmond on October 02, 2017, 03:44:23 PM
Quote from: ModelBoatMayhem on October 02, 2017, 10:49:46 AM

Works great Lesmond!
How do we get it for our own sites?  :)
It only works with the paid version of Chevereto.  If you have that I will send you a copy.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on October 02, 2017, 05:32:17 PM
 
Yep, with hosting!
Title: Re: Chevereto /Pugin
Post by: Biology Forums on October 02, 2017, 06:59:14 PM
Quote from: lesmond on October 02, 2017, 06:31:32 AM
Quote from: Study Force on October 02, 2017, 01:06:04 AM
What does it do exactly?
Basically adds the code that  Jailer posted above to a package, so it can be installed to your forum without having to add it manually.

True, but what does Chevereto do?
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on October 03, 2017, 02:22:01 AM
Quote from: Study Force on October 02, 2017, 06:59:14 PM
True, but what does Chevereto do?

Seriously?!? - https://chevereto.com/

Title: Re: Chevereto /Pugin
Post by: lesmond on October 03, 2017, 01:41:36 PM
Quote from: ModelBoatMayhem on October 02, 2017, 05:32:17 PM

Yep, with hosting!
PM sent
Title: Re: Chevereto /Pugin
Post by: Biology Forums on October 03, 2017, 05:06:51 PM
I understand that, but how does it work with SMF?
Title: Re: Chevereto /Pugin
Post by: Jailer on October 03, 2017, 05:33:05 PM
Quote from: Study Force on October 03, 2017, 05:06:51 PM
I understand that, but how does it work with SMF?

It integrates a pic upload button that is tied to your Chevereto site so members can easily upload pictures inline to a post.
Title: Re: Chevereto /Pugin
Post by: lesmond on October 03, 2017, 05:39:04 PM
Quote from: Study Force on October 03, 2017, 05:06:51 PM
I understand that, but how does it work with SMF?
This mod integrates image hosting with SMF. It makes image upload very simple.
All images are hosted on remote image hosting service, not on your forum.
When user uploads image, script creates a thumbnail for image and appends bbcode to post user is typing.
User doesn't need to know anything about bbcode. And this mod is very simple to install.

so something like this..
(https://tinypix.top/images/2017/09/29/jZh.md.png) (https://tinypix.top/image/jZh)
Title: Re: Chevereto /Pugin
Post by: lesmond on October 03, 2017, 05:39:43 PM
beat me to it Jailer :)
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on October 03, 2017, 06:47:52 PM
 
Does Chevereto v3.10.4 (https://chevereto.com/changelog#v3_10_4) update change anything?

( I notice still no SMF MOD or real install instructions from Chevereto  !  >:( )

Title: Re: Chevereto /Pugin
Post by: lesmond on October 04, 2017, 09:51:08 AM
Seems to be an issue with the new update, the plugin only now works with Quick reply, where before it worked on all replies and Private message :(

its not stopped working, he just changed the position on the button.
(https://tinypix.top/images/2017/10/04/od4.png)
Title: Re: Chevereto /Pugin
Post by: Biology Forums on October 04, 2017, 02:22:35 PM
Thanks, makes sense now
Title: Re: Chevereto /Pugin
Post by: Jailer on October 04, 2017, 06:49:18 PM
Quote from: lesmond on October 03, 2017, 05:39:04 PM
Quote from: Study Force on October 03, 2017, 05:06:51 PM
I understand that, but how does it work with SMF?
This mod integrates image hosting with SMF. It makes image upload very simple.
All images are hosted on remote image hosting service, not on your forum.
When user uploads image, script creates a thumbnail for image and appends bbcode to post user is typing.
User doesn't need to know anything about bbcode. And this mod is very simple to install.

so something like this..
(https://tinypix.top/images/2017/09/29/jZh.md.png) (https://tinypix.top/image/jZh)

What's best about the plugin is it is entirely configurable. You can embed a thumbnail, small image, medium image, large image, linked or not. It's awesome and so easy to use. My forum users LOVE it because it dumbs the process down to 3 clicks to upload an image.
Title: Re: Chevereto /Pugin
Post by: Jailer on October 04, 2017, 06:50:48 PM
Quote from: lesmond on October 04, 2017, 09:51:08 AM
Seems to be an issue with the new update, the plugin only now works with Quick reply, where before it worked on all replies and Private message :(

its not stopped working, he just changed the position on the button.
(https://tinypix.top/images/2017/10/04/od4.png)

Depending on how you insert the code. I like the large hard to miss button outside the reply boxes, it's easier for the users.
Title: Re: Chevereto /Pugin
Post by: lesmond on October 05, 2017, 03:55:38 AM
Quote from: Jailer on October 04, 2017, 06:50:48 PM
Depending on how you insert the code. I like the large hard to miss button outside the reply boxes, it's easier for the users.
If you check the documentation (https://chevereto.com/docs/pup), you need to use data-fit-editor="0" if you want to use the default button.
Title: Re: Chevereto /Pugin
Post by: Wellwisher on January 01, 2018, 08:49:15 PM
This is actually quite cool, I have Chevereto but never thought of integrating it like this. Great stuff.
Title: Re: Chevereto /Pugin
Post by: Jailer on January 08, 2018, 05:06:05 PM
Anyone having any issues after the latest update? Mine quit working for some reason and I can't figure out why.

Has been working great up until just the last couple of days. The PM upload button doesn't work, the message upload button doesn't work but the quick reply button is still working. I've made no configuration changes on either server so I don't know what's going on, it just quit working.
Title: Re: Chevereto /Pugin
Post by: lesmond on January 08, 2018, 05:12:11 PM
Is this for the smf update or Chevereto?  Both working fine for pm and messages for me.
Title: Re: Chevereto /Pugin
Post by: Jailer on January 08, 2018, 06:12:04 PM
Chevereto's latest 3.10.6. If others seems to be working then I guess the issue is on my end.

Man I hate debugging things when there's no errors generated so no trail to follow.
Title: Re: Chevereto /Pugin
Post by: Jailer on January 13, 2018, 09:41:30 PM
Finally figured it out. It was the WYSIWYG editor that was causing the problem. With it enabled it doesn't post the link after upload. I disabled it globally and it's working fine now.
Title: Re: Chevereto /Pugin
Post by: crimpson on March 29, 2018, 06:37:51 PM
Ok so I have Chevereto installed as it's own thing right now, everything working.
I also have my forum. To bring the two together, what does it look like? The first image uploaded is of Chevereto working as it's self. Can I add a link in my link list and have it actually in my forum with the header and links like i've done with Wakaba? 3rd Image attached is what I would like it to look like.
Title: Chevereto User Accounts
Post by: crimpson on March 29, 2018, 06:41:11 PM
Chevereto asks that users create accounts to manage their uploads. Is there a way for Chevereto to use the smf accounts? Can it call on the actively signed in user automatically and bypass its login feature?
Title: Re: Chevereto /Pugin
Post by: crimpson on March 29, 2018, 08:54:56 PM
Also just to be clear, I installed Chevereto manually, the packaged free version which basically gives you everything. It's completely on my own server and working independently with its own database. I want users to be able to explore the full functions of the image exploring without leaving the forums, having the header and links visable. I'm sure I can figure this out like I did before, just creating a new php page and using ssi to call the header and load Chevereto beneath it, then creating a button in my link list.

I would still like to know if there's a way to get Chevereto to incorporate the SMF user accounts so that users don't need to create a seperate account for Chevereto. I guess I could take away Chevereto accounts all together but then users wouldn't be able to track and modify their images.
Title: Re: Chevereto User Accounts
Post by: Jailer on March 30, 2018, 02:51:07 PM
Quote from: crimpson on March 29, 2018, 06:41:11 PM
Chevereto asks that users create accounts to manage their uploads. Is there a way for Chevereto to use the smf accounts? Can it call on the actively signed in user automatically and bypass its login feature?

You have to enable anonymous uploads for users to upload without an account.

Quote from: crimpson on March 29, 2018, 08:54:56 PM
Also just to be clear, I installed Chevereto manually, the packaged free version which basically gives you everything.

The plugin is not a feature available on the free version. You must upgrade to the full paid version to get this additional feature. It's pretty cheap to do so.
Title: Re: Chevereto /Pugin
Post by: lesmond on April 12, 2018, 04:05:37 AM
Has anyone tried to get Chevereto plugin working on SMF 2.1 Beta ?
Title: Re: Chevereto /Pugin
Post by: Jailer on April 13, 2018, 09:10:28 AM
I have and I couldn't get it to work.
Title: Re: Chevereto /Pugin
Post by: lesmond on April 13, 2018, 11:56:25 AM
Quote from: Jailer on April 13, 2018, 09:10:28 AM
I have and I couldn't get it to work.
I got the plugin on the default theme, and the button showed up, but it would not place the bbc in to a post
Title: Re: Chevereto /Pugin
Post by: Illori on April 13, 2018, 12:18:57 PM
the the editor has changed, so it would need some code changes to make it show up in the editor box.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 13, 2018, 07:21:03 PM

Installation is a fundamental process of Chevereto .... yet ZERO support from him!   >:(
Title: Re: Chevereto /Pugin
Post by: Jailer on April 13, 2018, 11:36:54 PM
Quote from: ModelBoatMayhem on April 13, 2018, 07:21:03 PM

Installation is a fundamental process of Chevereto .... yet ZERO support from him!   >:(

In his defense, 2.1 is still in beta. Once (if) it reaches official release I'm sure he will make the code change to make it work.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 14, 2018, 03:27:57 AM
 
True but no actually support for any other version either!

Chevereto is very useful to SMF but some customer empathy would be useful....  ::)
Title: Re: Chevereto /Pugin
Post by: Jailer on April 14, 2018, 08:01:41 PM
I agree, he can be a bit....short.....at times.....
Title: Re: Chevereto /Pugin
Post by: jakes_t on April 17, 2018, 06:33:46 AM
Just stumbled upon this thead and this seems to be an elegant solution to easily upload pics. Just two question for you guys already using it.

When hosting chevereto locally it's basically just a repository for the forum pics, you also have to enable anonymous uploading then. How do you stop the general internet from using it and uploading random pics?

Does it automatically resize huge pics from phones etc ? (And get the correct orientation for the pic)

Thanks :)
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 17, 2018, 07:50:54 AM
 
1. Admin can monitor all sign-ups and uploads.
    Chevereto handles all it own security credentials through it's own logon / webpage.

2. Doesn't resize images uploads  but you define the display size in both Chevereto and SMF.
Title: Re: Chevereto /Pugin
Post by: Jailer on April 19, 2018, 06:02:41 PM
Quote from: jakes_t on April 17, 2018, 06:33:46 AM
When hosting chevereto locally it's basically just a repository for the forum pics, you also have to enable anonymous uploading then. How do you stop the general internet from using it and uploading random pics?

You don't. The only way you can do that is to require your forum members to sign up for an account and be signed when they use the plugin and disable anonymous uploads. That's the only thing I don't like about it.

Quote from: jakes_t on April 17, 2018, 06:33:46 AM
Does it automatically resize huge pics from phones etc ? (And get the correct orientation for the pic)

Thanks :)

Yes it does. I have the max size in my admin panel set to 1024 x 1024 and all pics gets resized when they are uploaded. That's the main reason I decided to purchase a licence as it allows me to host the pics on my slow connection. To get correct orinetation just make sure your server has the correct php exif extention installed.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 19, 2018, 06:22:03 PM
Quote from: Jailer on April 19, 2018, 06:02:41 PM
Yes it does. I have the max size in my admin panel set to 1024 x 1024 and all pics gets resized when they are uploaded. That's the main reason I decided to purchase a licence as it allows me to host the pics on my slow connection. To get correct orinetation just make sure your server has the correct php exif extention installed.

You sure?! look on your server.
Title: Re: Chevereto /Pugin
Post by: Jailer on April 22, 2018, 04:34:22 PM
Yes I am sure.
Title: Re: Chevereto /Pugin
Post by: jakes_t on April 27, 2018, 01:43:13 AM
Another question for you guys that have it working already - I've got it up and running, when you upload an image from the new post section I get the pop up and successfully upload the image. After that it doesn't actually add the BB code in the post box. At what point is it supposed to add the bbcode to the post box?
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 27, 2018, 02:10:10 AM
 
Mine is sometimes intermittent.... try a different browser.
Title: Re: Chevereto /Pugin
Post by: Jailer on April 28, 2018, 06:22:06 AM
Quote from: jakes_t on April 27, 2018, 01:43:13 AM
Another question for you guys that have it working already - I've got it up and running, when you upload an image from the new post section I get the pop up and successfully upload the image. After that it doesn't actually add the BB code in the post box. At what point is it supposed to add the bbcode to the post box?

Are you using the WYSIWYG editor? It will not paste the bbcode into the post with the WYSIWYG editor enabled. You can disable it in the admin section.
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 28, 2018, 07:17:41 AM
 
Not finding that on my Forum, WYSIWYG  or plain text / BBcode.
Many times, just doesn't post... no error messages at all!  >:(
After extensive testing yesterday... it just needed 3 or 4 attempts & finally it just posted correctly.

What else is out there apart from Chevereto ?
Title: Re: Chevereto /Pugin
Post by: jakes_t on April 28, 2018, 08:00:02 PM
Using the default editor, and have tried different browsers and an ipad. Is it supposed to add the code after you close the popup window are directly after uploading?

Is there any way to have it show the embed codes below the photo by default? In case the auto bb code doesn't work like now the user can at least manually add the bbcode. At the moment you have to go the the icon top right then to the 'embed codes' tab..
Title: Re: Chevereto /Pugin
Post by: ModelBoatMayhem on April 28, 2018, 08:19:19 PM
 
I haven't found a way yet....

You can by signing into the / your Chevereto site direct and uploading to an album and selecting photos from there - embed codes.
Title: Re: Chevereto /Pugin
Post by: EthanR on August 16, 2018, 09:29:34 PM
For anybody struggling with this, a key setting in chevereto that needs to enabled is the following:

Dashboard->Settings->upload->Enable embed codes (uploader) [enabled]

This needs to be enabled for the pup to add the bbcode to the posting box.

Secondly the script code in the post template needs be added below the posting area code, not above as in the first page instructions. If it's above it still works but in some cases it attaches to the subject area and fails to add the bbcode.

For those wondering, the free version can resize images as you upload it (handy for users uploading from their phones). It will also correct the orientation.
Title: Re: Chevereto /Pugin
Post by: EthanR on September 04, 2018, 08:55:40 PM
Scrap that, a false positive. The script really is quite hit and miss. Sometimes it works fine and sometimes the code just doesn't get inserted. I cant seem to reliably reproduce it either. Other odd glitches as well this may be the end. Awesome idea just too glitchy. I'll give it another a few versions later..
Title: Re: Chevereto /Pugin
Post by: EthanR on September 05, 2018, 06:08:43 PM
Did anybody get the button working using a manual attachment to the editor box instead of auto? The documentation is somewhat light on how to accomplish that.
Title: Re: Chevereto /Pugin
Post by: Jailer on September 06, 2018, 04:51:23 PM
Quote from: EthanR on September 04, 2018, 08:55:40 PM
Scrap that, a false positive. The script really is quite hit and miss. Sometimes it works fine and sometimes the code just doesn't get inserted. I cant seem to reliably reproduce it either. Other odd glitches as well this may be the end. Awesome idea just too glitchy. I'll give it another a few versions later..

Make sure you are not using the WYSIWYG editor, it will NOT work at all with it.
Title: Re: Chevereto /Pugin
Post by: EthanR on September 06, 2018, 05:37:40 PM
Yep, disabled that as well. Still it sometimes just doesn't auto insert the code. Tried with no adblock, different browsers, computers, ipads etc. Same 50/50 results, sometimes it works, sometimes not. Every time it fails you need to upload again and you end up with duplicates, unless you drag yourself over to the chevereto site and manually copy the embed codes. Still better than using a 3rd party I guess.
Title: Re: Chevereto /Plugin
Post by: wwwserfer on March 05, 2021, 09:50:27 AM
Chevereto plugin works on SMF 2.1.. with a slight modification to the pup.js
Of course without using the WYSIWYG editor (additional editing is required, but javascript is not my strong point ;D) )
Maybe someone can help with this?