Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on December 14, 2020, 08:40:32 PM

Title: Giphy for SMF
Post by: vbgamer45 on December 14, 2020, 08:40:32 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4275)

Giphy for SMF
By: vbgamer45

For: SMF 2.1.x

Adds a fun way to search for animated gifs in the message editor for user posts powered by Giphy!

Please get your own API key at https://developers.giphy.com to avoid being rated limited!!!


https://www.smfhacks.com
Title: Re: Giphy for SMF
Post by: Loshmi on December 15, 2020, 03:44:27 AM
I am using SMF 2.1 RC3 and after installation, the Giphy icon is grayed out and can't be selected. I have applied for the API key, do I have to upgrade to production key or not? Is it the issue with the key or maybe with some settings in my SMF?
Title: Re: Giphy for SMF
Post by: Shades. on December 15, 2020, 08:15:50 AM
Im getting these errors:

QuoteError
Type of error: Undefined_vars
Error message:
8: Undefined index: code
File: /home2/xxxx/public_html/xxxx/xx/Sources/giphy.php
Line: 51
URL of page causing the error: https://xxxx.com/xx/index.php?topic=1.0
Backtrace information
#0: smf_error_handler()
Called from /home2/xxxx/public_html/xxxx/xx/Sources/giphy.php on line 51
#1: giphy_bbc_buttons()
Called from /home2/xxxx/public_html/xxxx/xx/Sources/Subs.php on line 5131
#2: call_integration_hook()
Called from /home2/xxxx/public_html/xxxx/xx/Sources/Subs-Editor.php on line 1767
#3: create_control_richedit()
Called from /home2/xxxx/public_html/xxxx/xx/Sources/Display.php on line 1377
#4: Display()
Called from /home2/xxxx/public_html/xxxx/xx/index.php on line 173

Title: Re: Giphy for SMF
Post by: vbgamer45 on December 15, 2020, 09:14:12 AM
Shades try this file to sources folder

And do you see the giphy button
Title: Re: Giphy for SMF
Post by: Shades. on December 15, 2020, 12:43:21 PM
Quote from: vbgamer45 on December 15, 2020, 09:14:12 AM
Shades try this file to sources folder

And do you see the giphy button
Yes I saw the giphy button before and was getting that error in admin after posting a giphy image. But now that I uploaded the new giphy.php file it appears to be working fine with no errors. Thank you!
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 15, 2020, 01:03:29 PM
Quote from: Loshmi on December 15, 2020, 03:44:27 AM
I am using SMF 2.1 RC3 and after installation, the Giphy icon is grayed out and can't be selected. I have applied for the API key, do I have to upgrade to production key or not? Is it the issue with the key or maybe with some settings in my SMF?
I would think SMF setting any other mods? The API key doesn't affect button status.
Title: Re: Giphy for SMF
Post by: woolly bugger on December 17, 2020, 08:26:09 PM
Piphy for SMF is creating a lot of errors..

Guest
54.36.148.23
b9d699164228fdf4af8c15992ed59fd3
https://www.brfff.com/forum/index.php?/topic,3585.msg22258.html
/home/public_html/forum/Sources/giphy.php (Line 67)



Guest
54.36.148.23
b9d699164228fdf4af8c15992ed59fd3
https://www.brfff.com/forum/index.php?/topic,3585.msg22258.html
/home/public_html/forum/Sources/giphy.php (Line 51)


also I don't follow what/how I'm supposed to do with the API from Giphy..
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 17, 2020, 08:40:10 PM
Make sure you download either file above or reinstall the mod from mod site.
The API Key goes in modifications settings area in the admin area.
Title: Re: Giphy for SMF
Post by: Bisht on December 18, 2020, 03:36:25 AM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 18, 2020, 09:12:50 AM
Are you using SMF 2.1 RC3?
Title: Re: Giphy for SMF
Post by: woolly bugger on December 18, 2020, 03:45:50 PM
all good now... it took me a while to find the place to insert the API
Title: Re: Giphy for SMF
Post by: Mick. on December 25, 2020, 07:01:08 PM
Where's the css file for this? I want the images bigger.
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 25, 2020, 09:30:32 PM
There is no css file. It is built into the .js file for the script itself. I belive in the scripts folder.
Title: Re: Giphy for SMF
Post by: Mick. on December 26, 2020, 12:31:20 AM
@vbgamer

Saw it. Thank you. The CSS code in the js file is for the search box, not the posted image. I added a class in index.css and solved what i was looking for. Now the images are larger and it's responsive.

Edit**** code no good.
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 26, 2020, 12:50:59 AM
Looking good. I think that applies to all images posted though right?
Title: Re: Giphy for SMF
Post by: Mick. on December 26, 2020, 12:55:50 AM
Quote from: vbgamer45 on December 26, 2020, 12:50:59 AM
Looking good. I think that applies to all images posted though right?
Yes. That's the downfall. It overrides all bbc images that uses width= between the tags. It needs its own class in css.
Title: Re: Giphy for SMF
Post by: SilverKnight on December 31, 2020, 12:44:38 AM
Can we possibly get some love for 2.0?

It's still the standard SMF version, 2.1 is still too unstable and this is fantastic.
Title: Re: Giphy for SMF
Post by: vbgamer45 on December 31, 2020, 12:57:43 AM
I could I have it on my forum hosting service for 2.0 it works best though in SCEditor in 2.1
Title: Re: Giphy for SMF
Post by: SilverKnight on January 15, 2021, 11:33:40 PM
Quote from: vbgamer45 on December 31, 2020, 12:57:43 AM
I could I have it on my forum hosting service for 2.0 it works best though in SCEditor in 2.1

i tried on 2.0 and was unsuccessful
Title: Re: Giphy for SMF
Post by: vbgamer45 on January 15, 2021, 11:47:10 PM
Yeah it's not supported for 2.0
Title: Re: Giphy for SMF
Post by: Sir Osis of Liver on February 24, 2021, 09:15:59 PM
Anything happening with 2.0 version?
Title: Re: Giphy for SMF
Post by: vbgamer45 on February 24, 2021, 09:21:50 PM
No right now. It doesn't popup perfectly, so I am just using it internally then posting here.
Title: Re: Giphy for SMF
Post by: Plus on May 13, 2021, 03:03:20 PM
Hata türü: Tanımlanmamış
8: Undefined index: giphyapikey
https://www.turkishairforce.org/index.php?pretty;board=falcon-bms-kurulum-eklenti-yama;topic=falcon-bms-4-33-1-u1-u5-entegreli-kurulum-paketi-ve-guncelleme-paketleri-v5.15
/home/tshkk/public_html/Sources/giphy.php (Satır 67


==>67: window.giphykey = "' . $modSettings['giphyapikey'] . '";');

could you solve this please ?
Title: Re: Giphy for SMF
Post by: vbgamer45 on May 13, 2021, 04:08:22 PM
You need to enter a GIPHY api key in the settings area.
Title: Re: Giphy for SMF
Post by: Plus on May 13, 2021, 04:59:44 PM
thank you
Title: Re: Giphy for SMF
Post by: Neoni on July 05, 2022, 06:18:10 AM
I would like to see a demo of this mod, or at least some screenshots.
Title: Re: Giphy for SMF
Post by: vbgamer45 on July 05, 2022, 12:43:55 PM
Added a screnshot.
Title: Re: Giphy for SMF
Post by: mickjav on July 05, 2022, 01:00:23 PM
Just installed On Test forum but getting the following error whenever viewing topics

https://www.databasedreams.co.uk/testing/index.php?topic=10.0
 /home/*****/public_html/testing/Sources/giphy.php (Line 67)


I have tried Adding A api But after saving it displays a empty box?

mick

Title: Re: Giphy for SMF
Post by: vbgamer45 on July 07, 2022, 10:42:41 PM
Hmm yeah that error would occur if no api key is saved.

But entering the api key doesn't save it?
Title: Re: Giphy for SMF
Post by: mickjav on July 08, 2022, 02:38:43 AM
Quote from: vbgamer45 on July 07, 2022, 10:42:41 PMBut entering the api key doesn't save it?

Nope tried a number of times
Title: Re: Giphy for SMF
Post by: PrimalPrime on August 16, 2023, 08:32:53 AM
Super cool mod. Installed flawlessly with no custom edits in 2.14 with numerous modifications.

Thank you
Title: Re: Giphy for SMF
Post by: chaos40 on August 17, 2023, 10:37:31 AM
I'm having the same issue here

The button does nothing when clicked

I put in the api key

I'm on 2.1.3
Title: Re: Giphy for SMF
Post by: bod22 on February 23, 2024, 03:43:42 AM
Anything similar for 2.0.19?
Title: Re: Giphy for SMF
Post by: vbgamer45 on February 23, 2024, 09:27:03 AM
No.
Title: Re: Giphy for SMF
Post by: vbgamer45 on August 26, 2024, 02:10:51 PM
FYI seems like the are going the twitter/x route  with the api. rumors starting at 12k will find out...
Quote•   What's Changing: GIPHY is expanding our Enterprise business. Our API product and content libraries are no longer free, unfortunately. GIPHY has been a free service (to most partners) for many years and we hope you all can empathize with our need to build a viable business to sustain GIPHY long term.
Waiting to hear details

If not might as well just use AI and generate our own  images.
Title: Re: Giphy for SMF
Post by: vbgamer45 on August 29, 2024, 09:18:20 PM
Yeah looks like no longer feasible. Lowest plan for standard $8999 which doesn't include gifs. $11,999 for premium paid annually.

Going to look into https://tenor.com/ heard some issues with nsfw images, maybe use ai to detect them out? Amazon's ai api or openai.
Title: Re: Giphy for SMF
Post by: vbgamer45 on August 30, 2024, 04:43:17 PM
I completed a Tenor api version submitting to mod site. Its free!