Auto Tweet Embed

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

Previous topic - Next topic

Julius_2000

@vbgamer45 , the changelog in the 4.0.3 package only mentions changes up to 4.0.1. Is that supposed to be? Would it be also possible to add a version suffix to the download package? Thanks for all your effort!

vbgamer45

4.0.3
!Handle x.com better, api workaround.
4.0.2
!Query string handling improvements
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

jsx

vbgamer45 can you implement Polish language into autotwitter.xml? I know it's not much, but it would be nice to have it translated.

<file name="$languagedir/Modifications.polish.php">
    <operation>
        <search position="end" />
        <add><![CDATA[
// Begin Auto Embed Twitter Strings
$txt['autotwitter_tweeterror'] = 'Błąd tweeta (nie istnieje)';
$txt['autotwitter_blankid'] = 'Błąd tweeta (pusty identyfikator)';
// END Auto Embed Twitter Strings           
]]></add>
    </operation>
</file>

<file name="$languagedir/Modifications.polish-utf8.php" error="skip">
    <operation>
        <search position="end" />
        <add><![CDATA[
// Begin Auto Embed Twitter Strings
$txt['autotwitter_tweeterror'] = 'Błąd tweeta (nie istnieje)';
$txt['autotwitter_blankid'] = 'Błąd tweeta (pusty identyfikator)';
// END Auto Embed Twitter Strings           
]]></add>
    </operation>
</file>

Marina3

And where are the settings for this mod?

vbgamer45

There are no settings. You just put a twitter link and it should auto embed
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

Antechinus

Just a thought: how hard would it be to also allow embedding on nitter.net media? With the extent to which Twitter/X has been degraded by Musk these days, Nitter is (IMO) a far better way of following content there. It's lighter on resources. You can follow a complete thread without logging in. You can see the account's recent timeline, in full, Etc, etc. Frankly, Nitter leaves Twitter/X for dead.

vbgamer45

Possibly have to see some example links might not be added to this mode but S.A.V.E instead
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

Antechinus

Links are simple. It's just a TLD change. The rest of the link stays the same.

https://nitter.net/gunsnrosesgirl3/status/1717182106382528702
https://twitter.com/gunsnrosesgirl3/status/1717182106382528702

https://nitter.net/gunsnrosesgirl3/status/1717182106382528702
https://twitter.com/gunsnrosesgirl3/status/1717182106382528702

vbgamer45

Does nitter having share coding though? I could change nitter to twitter to auto embed.
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

Antechinus

No idea. I don't use an account with either. I just view as a guest.
Changing nitter to twitter would be rather defeating the purpose of the exercise.

CreativeITWorld.com

I looked for a way to center tweets and couldn't find one within the topic, but managed to find the answer elsewhere ...

In Index.css Add
.twitter-tweet {
margin: 0 auto;
text-align: center;
}

You still have to use the standard center bbc if you want to center the text/link.

steferrari

Hi, I installed this mod and it seems to work ok on my forum, the only "issue" is that I see the tweet link under every tweet that I post.

Is this normal? Any chance to get rid of it?

Thank you!

vbgamer45

I believe that is normal. I am not sure on removing it.
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

steferrari

I asked that because I previously used this mod to embed tweets and they are displayed alone, without showing the link (more clean imho) but at the same time that mod has an issue with smileys: when you post a tweet, smileys are not displayed anymore.

Gus A

Hey folks,

I just installed 4.0.3 (I was previously using 2.0). Everything seems to be working fine except I'm getting double posts. I uninstalled and removed "all data associated with this modification" and reinstalled. It's still happening.

Running SMF 2.0.19 with PHP 8.0

Any help would be greatly appreciated!

 

Gus A

^^^ Also, if this info helps, I copied this file to my root directory. Still no luck.

GantryZ

vbgamer had a suggestion for mine previously, though a reinstall did fix mine.  Worth a shot to look if you haven't:

https://www.simplemachines.org/community/index.php?msg=4159334

Gus A

Quote from: GantryZ on May 22, 2024, 07:36:26 AMvbgamer had a suggestion for mine previously, though a reinstall did fix mine.  Worth a shot to look if you haven't:

https://www.simplemachines.org/community/index.php?msg=4159334


Hey @GantryZ I saw that post. Could you point me to the code I should be looking for? I opened up the Sources/Load.php file but did not know what to look for.

Also, I just noticed that the duplicate twitter posts are only occurring in the posts that existed before I updated to the latest mod version. If that's any help.
   

Gus A

Just realized that the duplication is only happening with posts that have the twitter.com [nofollow] URL vs x.com [nofollow].

Again, any help would be greatly appreciated.   

Advertisement: