Advertisement:

Author Topic: Giphy for SMF  (Read 860 times)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Giphy for SMF
« on: December 14, 2020, 08:40:32 PM »
Link to Mod

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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Loshmi

  • Semi-Newbie
  • *
  • Posts: 34
Re: Giphy for SMF
« Reply #1 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?

Offline Shades.

  • Jr. Member
  • **
  • Posts: 380
  • Gender: Male
  • BikerHound.com
    • bikerhound on Facebook
    • @bikerhoundcom on Twitter
    • Bikerhound.com
Re: Giphy for SMF
« Reply #2 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


BikerHound.com
Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #3 on: December 15, 2020, 09:14:12 AM »
Shades try this file to sources folder

And do you see the giphy button
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Shades.

  • Jr. Member
  • **
  • Posts: 380
  • Gender: Male
  • BikerHound.com
    • bikerhound on Facebook
    • @bikerhoundcom on Twitter
    • Bikerhound.com
Re: Giphy for SMF
« Reply #4 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!

BikerHound.com
Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #5 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline woolly bugger

  • Jr. Member
  • **
  • Posts: 201
    • Blue Ridge Fly Fisherman's Forum
Re: Giphy for SMF
« Reply #6 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..

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #7 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Bisht

  • Semi-Newbie
  • *
  • Posts: 11
Re: Giphy for SMF
« Reply #8 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.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #9 on: December 18, 2020, 09:12:50 AM »
Are you using SMF 2.1 RC3?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline woolly bugger

  • Jr. Member
  • **
  • Posts: 201
    • Blue Ridge Fly Fisherman's Forum
Re: Giphy for SMF
« Reply #10 on: December 18, 2020, 03:45:50 PM »
all good now... it took me a while to find the place to insert the API

Online Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,373
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Giphy for SMF
« Reply #11 on: December 25, 2020, 07:01:08 PM »
Where's the css file for this? I want the images bigger.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #12 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,373
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Giphy for SMF
« Reply #13 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.
« Last Edit: December 26, 2020, 07:02:07 AM by Mick. »

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #14 on: December 26, 2020, 12:50:59 AM »
Looking good. I think that applies to all images posted though right?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,373
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Giphy for SMF
« Reply #15 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.

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 257
Re: Giphy for SMF
« Reply #16 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.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #17 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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 257
Re: Giphy for SMF
« Reply #18 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

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,202
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Giphy for SMF
« Reply #19 on: January 15, 2021, 11:47:10 PM »
Yeah it's not supported for 2.0
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro