News:

Wondering if this will always be free?  See why free is better.

Main Menu

Auto Tweet Embed

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

Previous topic - Next topic

Julius_2000

Quote from: vbgamer45 on June 23, 2023, 09:17:39 AMYour webhost could be blocking an external fetch?
I'll have to ask the owner. Could I point him to anything specific setting-wise? Can I look that up myself in the php info tab in "admin" perhaps?

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

Planet_Dust

#282
Quote from: vbgamer45 on June 23, 2023, 09:17:39 AMYour webhost could be blocking an external fetch?
No, I'm not blocking anything. But the higher-level provider also blocks, so:

Quote from: vbgamer45 on June 24, 2023, 10:11:46 AMTry to do a curl https://publish.twitter.com/oembed?url=https://twitter.com/chesscom/status/1672371454053085185 [nofollow]
From the server
and see what it returns from the command line.

It will return nothing, Twitter is blocked in Russia.

P.S. But it's blocked more than a year, so something changed last month in Twitter API or code of the mod.

Julius_2000

Quote from: vbgamer45 on June 24, 2023, 10:11:46 AMTry to do a curl https://publish.twitter.com/oembed?url=https://twitter.com/chesscom/status/1672371454053085185
From the server
and see what it returns from the command line.


What Planet-Dust wrote: He can't use the link as Twitter is blocked in Russia. But we were able to get Tweets embedded up until like a month ago or so, perhaps after we updated to 2.1.4 and related software (php etc.).

vbgamer45

If your host is in a country that blocks twitter then the mod would not work.
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

Julius_2000

So we were lucky then when it worked all this time I guess.. Too bad.

HendriXXX

What changes this mod makes and which files? Does it modify database?

I want to test this, but I don't wanna mess my forum, so I probably have to make proper backups first..

vbgamer45

Yes database changes new table you can check the mod site for the files it changes.
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

HendriXXX

Ok. Thanks. I will check.

I have never installed mods to my forum.

Does smf have automated uninstall for mods which reverts all changed/added lines in files and database?

vbgamer45

File modifications yes as long as mod is coded right. And it depends if you install mods after the mod. Normally you should uninstall the mods installed after first. If it does file modifications.

Database if using SMF's database functions calls. There is an option to uninstall data. Not all mods support this.
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

HendriXXX

I can't get it working. Mod install went through without problems, no errors. I checked files and those are okay. Apache error logs are clean.. but when I post twitter link, it just show the twitter link in post.  :-\

What I am doing wrong?  :-[

I don't know is this related, but has Twitter made some changes viewing content without logged in, because I can't see anything anymore?

vbgamer45

Check your javascript error console, console log.
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

HendriXXX

Quote from: vbgamer45 on June 30, 2023, 02:30:56 PMCheck your javascript error console, console log.
How I can check that? I have firefox..

vbgamer45

Bing it/Google it is probably either site or javascript issue.
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

HendriXXX

I found it, no errors..  :-\

vbgamer45

then it is probably a host/server issue. not supporting fetching via curl or fsockopen to download remote
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

HendriXXX

It is redirecting every request to login page.. So i believe that your code is working fine, but Musk-******head has blocked everybody if not logged in and cant get tweet. Maybe it is temporary block..

curl https://twitter.com/i/web/status/1674677315073351681
Found. Redirecting to /i/flow/login?redirect_after_login=%2Fi%2Fweb%2Fstatus%2F1674677315073351681

Wonder why xenforo tweet embeds are still working in another forum..

vbgamer45

yeah....i think might be due to musk since you can't view tweets now without login.
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

Diego Andrés

Quote from: vbgamer45 on July 01, 2023, 02:20:08 AMyeah....i think might be due to musk since you can't view tweets now without login.

Every month changes now...
From being able to read/view a tweet, to being able to browse the entire site without login. And now back to complete restriction, a bit ridiculous.

SMF Tricks - Free & Premium Responsive Themes for SMF.

HendriXXX

Any ideas why xenforo embeds are still working?
Is there some paid API which they use? I noticed that some tweets are blocked in xenforo too, but not everything..

Advertisement: