![]() |
Added a YouTube BBCode
Now you can share your most sordid programming videos with the TalkPHP community! I added the
[youtube] BBCode which accepts the YouTube ID (not the entire URL).For example, with the following YouTube video link: http://www.youtube.com/watch?v=WWhWV8lt_1I you would add it to your post like so: [youtube]WWhWV8lt_1I[/youtube]In action: (Incidentally, if anybody can think of any useful BBCodes they would like to see, I will add them.) |
not sure if this would work but i did something like this before,
add, -> php.net/<value>, Then like -> for example[phptag]print[/phptag] and that will then end up where the value is so in the end it will in a post echo out php.net/print etc.. |
codefreek, we already have the
[function] bbcode for that. Using the text editor (not in quick reply) there is a "func" button beside the "php" button.Thanks for the addition WH, though is there really much demand for embedding YouTube videos? Either way, it will be very handy for the occasion when people do want a video on their post. :-) |
ops, i forgot. Well i might look for other useful BBcode,
maybe wiki search BBcode could be good to have ;) PS: one thing you could do for lazy people hehe :D add the function tag -> on sidebar of Quick Reply. ;) |
Hehe. I haven't had any need until a couple of days ago when I wanted to embed a Bing video.
|
Hopefully there will be many more, videos provide a nice change to plain text. :-)
|
Very interesting, I'll have to find some youtube clips now...
|
And if anybody wants to do some PHP video tutorials then by all means!
|
Quote:
|
Quote:
|
I have made some of these for my personal forum. They are just ideas and have popped a few responses.
Wikipedia Tag: Just input the /wiki/{Text To Search} between the tags and it creates a Wikipedia link that opens in a new tab/window. Code:
The BB CodeHTML Code:
<!-- The HTML to replace and use with the link. -->------------------------------------------ Google Search: The same idea as the Wikipedia only this uses Google. I would suggest that other search engines be used for equality. Code:
The BB CodeHTML Code:
<!-- The HTML to replace and use with the link. --> |
Thank you very much for the ideas :-) I like the idea of the Google and Wikipedia BB codes.
|
Quote:
|
vBulletin Spoiler Code
Any way you could add a spoiler code?
Maybe an advance one. Here is one I just typed up. I'm not sure if it works because I haven't tested it. Here is the replacements: Code:
<div style="margin: 5px;"> |
Also code syntaxing when using the code tags for javascript/html/php/xml
|
| All times are GMT. The time now is 02:14 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0