MyBB Community Forums

Full Version: Data too long (OUGC Media Info)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is an amazing plugin. I've just run into an issue though when trying to insert The Simpsons into my post.

I'm met with this SQL error:

[Image: ZbsRJb8.png]

Here are the languages:

'English, Spanish, Albanian, French, Japanese, German, Russian, Hindi, Swahili, Italian, Swedish, Turkish, Cantonese, Mandarin, Hebrew, Arabic, Klingon, Bengali, Czech'

Of course I have read the error and understand this is too long to put into the database, but I am unsure of how to solve this.

Found a solution:

https://community.mybb.com/thread-193944.html
Hi, please note that because of the way I code my plugins once you deactivate and activate back the DB change will be reverted and the problem will come back.

I did push a fix for this to the repository, which already includes a similar fix for the country field which you might find in your forum later.

The repository version has a new feature in which it is now possible for users to post "TMDB" links as well to get the same data.

If you decide to try the repository version and decide to confirm it is working then I might send it to the official Extend page. The person that requested this feature hasn't told me of any bugs related to it but I haven't have the time to test the whole package more myself.

https://github.com/Sama34/OUGC-Media-Info
(2020-11-09, 01:16 AM)Omar G. Wrote: [ -> ]Hi, please note that because of the way I code my plugins once you deactivate and activate back the DB change will be reverted and the problem will come back.

I did push a fix for this to the repository, which already includes a similar fix for the country field which you might find in your forum later.

The repository version has a new feature in which it is now possible for users to post "TMDB" links as well to get the same data.

If you decide to try the repository version and decide to confirm it is working then I might send it to the official Extend page. The person that requested this feature hasn't told me of any bugs related to it but I haven't have the time to test the whole package more myself.

https://github.com/Sama34/OUGC-Media-Info

Thanks for your hard work. Big Grin I'll update to this version and report any bugs. Have you considered adding an option for music at some point using something like https://musicbrainz.org/ ?
I have been suggested to add different providers but ultimately decided that each might be suited to its own plugin. At the moment I have no intention of coding such unfortunately.