![]() |
Quote:
First, it finds all validly formatted calls to the BBCode and replaces them with [VALIDYOUTUBE12345]gakjh43hj34f[/VALIDYOUTUBE12345]. Anything left over is then bad calls to the BBCode (ex: [YOUTUBE]http://www.yahoo.com/[/YOUTUBE]). These get replaced with [INVALIDYOUTUBE] so that the BBCode parser doesn't replace them and make a broken embed box. Then once the BBCode parser is done, it replaces all of the [INVALIDYOUTUBE]'s with [YOUTUBE]. This results in them displaying as the user typed in (in plain text) with no HTML. However, it seems that second plugin (which puts the tags back) doesn't always work and I'm not quite sure why (since I'm new to vB). That's why you may see [INVALIDYOUTUBE]'s sometimes in your posts rather than [YOUTUBE]http://www.yahoo.com/[/YOUTUBE]. Valid calls to the BBCode though should always work and show up correctly. |
Quote:
|
Quote:
|
A CMPS module would be a great addition for this mod.
Also, if you could have your own player instead of using Google's and YouTube's, it would be a real nice option. |
Viper, great mod. I also run a SMF forum, version 1.1 RC3,
any chance you can port this over for 1.1RC3? They only have a similar mod for 1.1RC2 and all the suggested hacks to get it to work on RC3 fails. Plus you need to install 2 mods to get what your VB mod does! I know your mod would be greatly appreciated for SMF :) Any chance it happening? |
Quote:
|
Quote:
Now if I submit my reply without entering in a title within the tags, it does not display the video. I would recommend another pop-up window asking the user to enter in a description or title. |
Attention :
If you have used something like [gv] before this Update and want to change now all old Codes to [gvideo] operate this SQL Querie. Code:
UPDATE vb3_post SET pagetext = REPLACE(pagetext, '[gv]', '[gvideo]'); Attention - maybe you have to change Tableprefix. @Viper007Bond - include this to Installinstructions please or use it for coding a AdminCP Option. ;) |
Quote:
Attachment 56240 |
I am a little confused, you have the example usage thing but how do i make it so when they click to insert the video url it shows more than the [google][ /google] thing but instead the full Usage code you have posted above.
|
All times are GMT. The time now is 02:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|