News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Tweet Embed

Started by Antes, April 03, 2014, 12:59:47 PM

Previous topic - Next topic

Antes

Link to Mod

BBCode allows you to embed tweet with its ID. This modification uses Official API to embed your tweets.

Changelog


1.1.1
- Bug in admin panel caused by auto-embed (Thanks to margarett for fixing).
1.1
- Auto Embed feature added by NanoSector
1.0
- First release, only allows BBC Embed with [tweet][/tweet].

License: MIT
Project Home: https://github.com/Antes/TweetEmbed

Kimmie

Any screenshots available?

Antes

Added a screenshot to the first post.

makarenıo

installed but there is no embed icon how can we do

margarett

Just add the ID like [tweet]your_id_here[/tweet]
This MOD does not create a button to do it for you.

Quote
1.0
- First release, only allows BBC Embed with [tweet][/tweet]
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

MotRude

Adding a button would make it way better..

THE BRA1N

Exactly what code should be added in between the tags? I get nothing but - Invalid Tweet ID, no matter how many tweets and 'ids' from different persons I try to embed. Some coherent instructions as to how to use this mod would be most helpful.

margarett

Just the ID.

Eg:

[tweet]441377716848574464[/tweet]

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Antes

Because of my mid-term exams i had to left it at very basic level and the mod gave us (i mean me/suki/margarett) bit headache because of fetch issues & error logs. All the requests will be added to next version (Probably after 18th of this month).

ameo

Is this being improved ever gonna happen?
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

Antes

Quote from: ameo on September 11, 2014, 05:43:51 PM
Is this being improved ever gonna happen?

Probably not, because I'm giving most of my time to SMF 2.1 development. Sorry :( I'll try to make some time to add button to editor.

Apllicmz

Nice Work
Good Mod
Update Portuguese Cod

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[// Tweet Embed
$txt['invalid_tweet'] = 'ID inv&aacute;lido do Tweet';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[// Tweet Embed
$txt['invalid_tweet'] = 'ID inv&aacute;lido do Tweet';
]]></add>
        </operation>
    </file>



Antes

1.1
- Auto Embed feature added by NanoSector

:D

Paracelsus

Hi,

The MOD works fine, but I think there might be a bug somewhere, because after installing it the BBCode admin area just disappears (please see attached image). I get it back with all the bbcode options when I uninstall the MOD.

Burke ♞ Knight

I noticed that, too. However, I usually leave all selected anyway, so not an emergency issue for me.
Although, it does need to be fixed.

Paracelsus

It's this part that disables it:

// Embed Twitter Tweets.
$message = preg_replace("/https?:\/\/(www.)?twitter.com\/[a-zA-Z0-9_]+\/status\/(\d+)/i", "[tweet]$2[/tweet]", $message);

Antes

I'm aware of the issue, unfortunately I don't have any time to look for fix :( that line disables the auto-embed option.

margarett

Should be easy enough:
// Embed Twitter Tweets.
if (!empty($message))
$message = preg_replace("/https?:\/\/(www.)?twitter.com\/[a-zA-Z0-9_]+\/status\/(\d+)/i", "[tweet]$2[/tweet]", $message);
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Antes

Thanks a lot :) I'm uploading 1.1.1.

luuuciano

Very nice mod! simple and efective
Tried the other one, finally we are using yours

KUDOS

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: