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 Mod (https://custom.simplemachines.org/mods/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:

Quote
Error
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
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
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
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
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
Code: [Select]
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

Code: [Select]
==>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