Auto Tweet Embed

Started by vbgamer45, January 11, 2015, 03:21:09 PM

Previous topic - Next topic

vbgamer45

Link to the mod

This modification auto embeds twitter tweets in your forum. Caches the result since twitter has a limit of how many api calls per site that can be called at a time.

Developed by  L'arri
Packaged and modified by vbgamer45 https://www.smfhacks.com

Adds jquery to your forum hosted on cloudfare cdn

4.0.3
!Handle x.com better, api workaround.

4.0.2
+Better handling of query string

4.0.1
+Support x.com links

4.0
!Changed url for the api.

3.0
+Added support for twitter urls with data after the ? sign thanks to live627


2.1
!Updated jquery version to fix issues in SMF 2.1.x now uses save version as 2.1

2.0
+Added support to Emoji's thanks to Arantor for changes needed

1.1
Changed end point

1.0.1
!Updated jquery library to use https


Licensed under: https://creativecommons.org/licenses/by-nd/4.0/ Attribution-NoDerivs
CC BY-ND
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

nsno


akbora

great and awesome works perfect...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

vbgamer45

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

dimspace

Excellent, thanks again for developing, improving and packaging this.

luuuciano

Nice mod, thanks!

BTW, it would be better to use something like this?


<script type="text/javascript">!window.jQuery && document.write(unescape('%3Cscript src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"%3E%3C/script%3E'))</script>

No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Krissnikkers


Ok so I am thick....  How do you use this mod?

Tried the embed code that didn't work and then tired just the link and that didn't work either...  :(

Thanks in advance

Kriss :)

Antes

You just need to paste the link of the tweet (like: https://twitter.com/CNNMoney/status/604905917272891392) - Modification does the rest for you.

Krissnikkers


I tried that and all I got was the link and nothing else...  :(

Antes

I installed the mod, it embeds but w/o styling. Seems like a problem from twitter side.

Krissnikkers


Thank god...  means I am not stupid  ;D

Will see if the mod designer can do anything..  :)

Thanks for your help!

Kriss :)

Antes

oh wait scratch the last post I made, mods working perfectly, do you have ghostery or alike blocker? If you block twitter embed js it won't show with style.

Krissnikkers


As I have never heard of those I will presume no.. :D I have a like mod though

Kriss :)

Kr1sp3r

I just installed this mod, but I am getting this error:-

Database Error
Incorrect string value: '\xF0\x9F\x94\x8A\xF0\x9F...' for column 'html' at row 1
File: /usr/home/chems/forum/www/tweet-cache.php
Line: 94

Any ideas?

vbgamer45

What kind of language set are you using?
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

Kr1sp3r

The default is English ISO-8859-1.

I did notice when the mod installed that there was no /Themes/default/languages/Modifications.english-utf8.php file to modify, only /Themes/default/languages/Modifications.english.php.

I am just helping out with this site and don't know a lot about SMF, can you suggest a fix? Thanks.

villasg

Hi .
In my 2.0.10 greek-utf8 do not work .
I have change ( add ) autotwitter.xml as follow

<file name="$languagedir/Modifications.greek-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
// Begin Auto Embed Twitter Strings
$txt['autotwitter_tweeterror'] = 'Tweet error (does not exist)';
$txt['autotwitter_blankid'] = 'Tweet error (blank ID)';
// END Auto Embed Twitter Strings
]]></add>
</operation>
</file>

Installed without errors .
But after test do not show tweets .
Need some configuration ?

helyea


JTVaughn

Tweets aren't embedding for me. Console shows this error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Any ideas?

luuuciano

Quote from: JTVaughn on September 11, 2015, 07:22:45 AM
Tweets aren't embedding for me. Console shows this error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Any ideas?

Temporary twitter fault? it works here...

Oh, it looks like I was using this one finally http://custom.simplemachines.org/mods/index.php?mod=3837 ... not the one of this thread
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Advertisement: