Post reply

Warning: this topic has not been posted in for at least 180 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Trovaner
« on: April 24, 2016, 07:27:10 PM »

TBH, I'm not quite sure what happened. The SMF plugin that we were using was very old and outdated so I replace it with a plugin that was still being updated. I've actually been meaning to do this for quite some time.

On a side note, I looked into how to change the behavior of embedded videos when they are quoted but it looks like I would have to replace the auto-embedding nature of them and make it so that you needed to wrap the URL in a bbcode (something like [video]VIDEO_URL[/video]) for the link to embed. Are you guys alright with this? Personally, I think it would be better but it would also be more work for me. I've already tweaked the plugin once so, either way, I'm going to have to manually update the plugin whenever there is an update.
The problem of having bbcode is that all old topics(including the ones of past tournaments, which are locked) would have no embeds anymore. I can definitely see why having bbcode is better, sadly it breaks the reverse compatiblity(unless you have some kind of script which automatically adds the code)
Since I'm the webmaster of GTM, I can perform operations on the database itself instead of manually going into old threads just to add the new tags. The easiest way of fixing this would be to perform a mysqldump on the database to get a single file representing the entire forum, open it up in Notepad++, use a regular expression to add the bbcode around all video links, and run mysqlimport to add it back to the database (after deleting everything that is already there). Sadly, I would have to switch the forum into maintenance mode while I did this so that posts wouldn't get lost in the process.
Posted by: R01
« on: April 24, 2016, 03:03:42 PM »

TBH, I'm not quite sure what happened. The SMF plugin that we were using was very old and outdated so I replace it with a plugin that was still being updated. I've actually been meaning to do this for quite some time.

On a side note, I looked into how to change the behavior of embedded videos when they are quoted but it looks like I would have to replace the auto-embedding nature of them and make it so that you needed to wrap the URL in a bbcode (something like [video]VIDEO_URL[/video]) for the link to embed. Are you guys alright with this? Personally, I think it would be better but it would also be more work for me. I've already tweaked the plugin once so, either way, I'm going to have to manually update the plugin whenever there is an update.
The problem of having bbcode is that all old topics(including the ones of past tournaments, which are locked) would have no embeds anymore. I can definitely see why having bbcode is better, sadly it breaks the reverse compatiblity(unless you have some kind of script which automatically adds the code)
Posted by: Trovaner
« on: April 24, 2016, 02:08:09 PM »

TBH, I'm not quite sure what happened. The SMF plugin that we were using was very old and outdated so I replace it with a plugin that was still being updated. I've actually been meaning to do this for quite some time.

On a side note, I looked into how to change the behavior of embedded videos when they are quoted but it looks like I would have to replace the auto-embedding nature of them and make it so that you needed to wrap the URL in a bbcode (something like [video]VIDEO_URL[/video]) for the link to embed. Are you guys alright with this? Personally, I think it would be better but it would also be more work for me. I've already tweaked the plugin once so, either way, I'm going to have to manually update the plugin whenever there is an update.
Posted by: R01
« on: April 24, 2016, 01:16:56 PM »

Thanks, what was the reason why they broke in the first place?(guess some forum settings got changed/updated)
Posted by: Trovaner
« on: April 24, 2016, 12:31:56 PM »

I'll take a look at it and see what I can do.
Posted by: Badger
« on: April 24, 2016, 12:26:38 PM »

I think I have it working now.

https://www.youtube.com/watch?v=lf6OWt_Xg5k
You got it working with https links too, and inside quotes, what a legend! Thanks trov.


Would it be possible to auto-spoiler them in quotes, like images already are?
Posted by: Trovaner
« on: April 24, 2016, 12:24:51 PM »

I think I have it working now.

https://www.youtube.com/watch?v=lf6OWt_Xg5k
Posted by: R01
« on: April 22, 2016, 03:01:50 PM »

I've noticed that the Videos are no longer embedded, all used to work fine a few days ago. Youtube's player has changed today so maybe that's causing it?