Setting up better Youtube tags with MyCode? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: MyCodes (https://community.mybb.com/forum-117.html) +--- Thread: Setting up better Youtube tags with MyCode? (/thread-95571.html) |
Setting up better Youtube tags with MyCode? - CaptainBritish - 2011-06-01 I'm trying to set up some MyCode Youtube tags that will allow the embedding of HD videos as well as a larger standard Youtube tag. At the moment I have: Regular Expression
Replacement
Regular Expression
Replacement
For the standard Youtube and HD tags respectively, now these work fine in their own right but if I attempt to use two Youtube tags in the same post the MyCode will break entirely. I can use a Youtube and a HD tag in the same post as demonstrated here but not more than one of each tag. An example of the code breaking is here. Anyone have any ideas what I could do? Also, could anyone advise me as to how I could add the new Youtube tags as buttons to the Advanced Post editor? Thanks in advance! I also posted this in General Support but I think that might have been in the wrong place RE: Setting up better Youtube tags with MyCode? - Aries-Belgium - 2011-06-01 Replace "(.*)" with "(.*?)" in both regular expressions to make it not greedy. RE: Setting up better Youtube tags with MyCode? - CaptainBritish - 2011-06-01 Thanks a bunch! RE: Setting up better Youtube tags with MyCode? - Aries-Belgium - 2011-06-01 (2011-06-01, 04:04 PM)CaptainBritish Wrote: Thanks a bunch! Glad I could help |