MyBB Community Forums
Data too long (OUGC Media Info) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Data too long (OUGC Media Info) (/thread-230099.html)



Data too long (OUGC Media Info) - tomjay78 - 2020-11-08

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


RE: Data too long (OUGC Media Info) - Omar G. - 2020-11-09

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


RE: Data too long (OUGC Media Info) - tomjay78 - 2020-11-09

(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/ ?


RE: Data too long (OUGC Media Info) - Omar G. - 2020-11-12

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.