A bit of [youtube] tag adjustment

Suggest, complain, or compliment an idea about the site.

Moderator: ItL Moderators

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
9 posts [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
• Page 1 of 1
User avatar
Skele Von Mann
Manticor
Posts: 1301
Joined: Tue Feb 08, 2011 8:00 pm
Contact:

A bit of [youtube] tag adjustment

Postby Skele Von Mann » Thu May 23, 2013 10:09 am

It's a bit minor, but

[youtube]https://www.youtube.com/watch?v=5A-cOmaaBgQ[/youtube]
doesn't work when it adds "https", which a script I use adds

[youtube]http://youtu.be/5A-cOmaaBgQ[/youtube]
Those youtu.be links don't work either when posting a youtube vid.


Would it be possible to change this? Kinda bothers me.


...



When you're alone, always remember:

User avatar
Kimiko
Manticor
Posts: 6044
Joined: Wed Jun 18, 2008 9:31 am
Location: Leiden, Netherlands, EU
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: A bit of [youtube] tag adjustment

Postby Kimiko » Fri May 24, 2013 12:51 pm

The phpBB3 mod can be found . It seems to have updates available for both alternatives Morte mentioned, as well as one for just the video ID.
Kimiko

Rewatching: Beast Player Erin


User avatar
Maxine MagicFox
ItL Webmaster
Posts: 13474
Joined: Wed Feb 27, 2008 12:20 pm
Location: Pennsylvania
Contact:

Re: A bit of [youtube] tag adjustment

Postby Maxine MagicFox » Fri May 24, 2013 10:05 pm

I think there was some problem I can't recall with those, but ^_^ I could be wrong. I will give them a try this weekend. It WOULD be nice to just use the shortened youtube link.

... maybe even get the @time thing to work.

[] - [] - [] - []

User avatar
Archaic Sage
ItL Webmaster
Posts: 1323
Joined: Wed Feb 27, 2008 10:40 am
Location: England
Contact:

Re: A bit of [youtube] tag adjustment

Postby Archaic Sage » Sat May 25, 2013 9:30 am

That bbcode supplied will stop the long links from working and kill all existing videos frok working too. The custom BBCode is very basic and doesn't allow for IF statements or anything that's not basic.

We may need to find or make a mod for it Max.

[ | | | | ]

User avatar
Maxine MagicFox
ItL Webmaster
Posts: 13474
Joined: Wed Feb 27, 2008 12:20 pm
Location: Pennsylvania
Contact:

Re: A bit of [youtube] tag adjustment

Postby Maxine MagicFox » Sat May 25, 2013 3:05 pm

I THINK I have an idea.... hold on, give me a minute and let me do some work to test this out. It's been a while since I messed with this stuff.

[] - [] - [] - []

User avatar
Maxine MagicFox
ItL Webmaster
Posts: 13474
Joined: Wed Feb 27, 2008 12:20 pm
Location: Pennsylvania
Contact:

Re: A bit of [youtube] tag adjustment

Postby Maxine MagicFox » Sat May 25, 2013 3:14 pm

Well, it worked.

So, I didn't REPLACE the old code. [youtube] still works.

This new code which uses the shortened link uses [yt]

So, it's not a GRAND fix, but... <_< I dunno? What do you guys think? The time thing still doesn't work. There's nothing that mentions it and I looked :(

Bad idea? Good idea?

[] - [] - [] - []

User avatar
Kimiko
Manticor
Posts: 6044
Joined: Wed Jun 18, 2008 9:31 am
Location: Leiden, Netherlands, EU
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: A bit of [youtube] tag adjustment

Postby Kimiko » Sun May 26, 2013 4:01 pm

Hmm, I'm not sure having different tags for the same thing is a great idea. I like Archaic's proposal of combining everything into one tag best. That will probably require some php-fu, but I think we have a few people with points in that skill around here :)

For now, changing the regular [youtube] tag so that it also handles https:// URLs would be a useful start. I've seen people use that a few times recently, and from that phpBB3 page it looks as if the change is trivial to implement.
Kimiko

Rewatching: Beast Player Erin


User avatar
AbyssArray
Ragelope
Posts: 31
Joined: Wed May 23, 2012 2:23 pm
Location: Canada
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: A bit of [youtube] tag adjustment

Postby AbyssArray » Sun Jul 21, 2013 12:01 am

Hmm.. a quick search tells me adding custom code would change it..

http://www.vbulletin.com/forum/forum/vb ... be-bb-code
Currently playing:
Pokémon Y - FC: 0275-7903-6128
Toxicosis - League of Legends - NA

User avatar
Archaic Sage
ItL Webmaster
Posts: 1323
Joined: Wed Feb 27, 2008 10:40 am
Location: England
Contact:

Re: A bit of [youtube] tag adjustment

Postby Archaic Sage » Tue Jul 23, 2013 11:24 pm

Except we use phpBB and not vBulletin. Sadly we don't have the ability for dynamic tags or effective wild cards.

[ | | | | ]


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
9 posts [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
• Page 1 of 1

Return to “Feedback and Suggestions”

Who is online

Users browsing this forum: No registered users and 3 guests