• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 02:43:35 PM

News:

Join the Facebook Fan Page.


Giphy for SMF

Started by vbgamer45, December 14, 2020, 08:40:32 PM

Previous topic - Next topic

vbgamer45

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

Loshmi

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?

Shades.

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


ShadesWeb.com - Custom Logos
https://shadesweb.com

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

vbgamer45

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

Shades.

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!

ShadesWeb.com - Custom Logos
https://shadesweb.com

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

vbgamer45

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.
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

woolly bugger

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..

vbgamer45

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

Bisht

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

vbgamer45

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

woolly bugger

all good now... it took me a while to find the place to insert the API

Mick.

Where's the css file for this? I want the images bigger.

vbgamer45

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

Mick.

December 26, 2020, 12:31:20 AM #13 Last Edit: December 26, 2020, 07:02:07 AM by Mick.
@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.

vbgamer45

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

Mick.

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.

SilverKnight

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.

vbgamer45

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

SilverKnight

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

vbgamer45

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

Advertisement: