Advertisement:

Author Topic: Auto Tweet Embed  (Read 37619 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Auto Tweet Embed
« Reply #200 on: August 03, 2020, 07:15:31 AM »
@vbgamer45: if someone ever does a UTF-8 conversion in SMF, it'll force convert it to non-mb4, in spite of what the database says. Things are better in 2.1.
No good deed goes unpunished
All helpful urges should be circumvented

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Auto Tweet Embed
« Reply #201 on: August 03, 2020, 07:31:39 AM »
Bah, didn't know that.
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

Offline natcip

  • Jr. Member
  • **
  • Posts: 108
Re: Auto Tweet Embed
« Reply #202 on: August 04, 2020, 06:17:04 AM »
I had it setup on the field level on the install
Code: [Select]
ALTER TABLE {db_prefix}tweet_cache CHANGE html html text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci


Code: [Select]
Incorrect string value: '\xF0\x9F\x92\x80 <...' for column `brandyso_sql1`.`brandy4f_sql1_smf_tweet_cache`.`html` at row 1
File: /home/www/brandyso/tweet-cache.php
Line: 93
Try the attached file and see if it helps
Copy to root of your SMF install and make sure right permissions are set.
Thank you for this. Unfortunately no change. :( File is set to 644.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Auto Tweet Embed
« Reply #203 on: August 04, 2020, 09:26:05 AM »
Can you rerun this query on your database
Code: [Select]
ALTER TABLE smf_tweet_cache CHANGE html html text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
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

Offline natcip

  • Jr. Member
  • **
  • Posts: 108
Re: Auto Tweet Embed
« Reply #204 on: August 05, 2020, 06:08:20 AM »
Just did it
tweet-cache.php now shows this
Code: [Select]
{"html":"

Tweet error (blank ID)
"}
But the tweets still don't embed

Offline chrishicks

  • Full Member
  • ***
  • Posts: 517
  • Gender: Male
    • RejectsRestStop
Re: Auto Tweet Embed
« Reply #205 on: August 12, 2020, 07:25:54 PM »
Is there a way to have the embeds use a dark theme instead of the white? Like this:

https://i.imgur.com/DnigklQ.png

It's not a huge deal I was just curious since my theme is entirely dark colored.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Auto Tweet Embed
« Reply #206 on: August 12, 2020, 07:39:36 PM »
Maybe might have to tweak the embed code.
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

Offline natcip

  • Jr. Member
  • **
  • Posts: 108
Re: Auto Tweet Embed
« Reply #207 on: May 29, 2021, 04:15:13 PM »
Hi there,
I just tried posting a tweet link and instead of showing an embedded tweet, the post literally looks like this:
Code: [Select]
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">I digress .</p>&mdash; SZA (@sza) <a href="https://twitter.com/sza/status/1398527644115738624?ref_src=twsrc%5Etfw">May 29, 2021</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>https://twitter.com/sza/status/1398527644115738624

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Auto Tweet Embed
« Reply #208 on: May 29, 2021, 08:11:31 PM »
What mods to have insalled?

that is the right code except it is showing the html instead of running 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

Offline natcip

  • Jr. Member
  • **
  • Posts: 108
Re: Auto Tweet Embed
« Reply #209 on: May 30, 2021, 07:51:06 AM »
What mods to have insalled?
Simple Audio Video Embedder
Yet Another YouTube BBCode Tag
Yet Another Spoiler Mod
Soundcloud BBcode
NiceTooltips

Also, I just checked my test post from yesterday. Now it simply shows the tweet link, not the html code. ???