Advertisement:

Author Topic: Auto Tweet Embed  (Read 36303 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,059
    • 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: 106
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,059
    • 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: 106
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,059
    • 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