| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7189|Reply: 1
Collapse the left

Improved YouTube BBcode. Get a video by ID!

  [Copy link]
Post time: 2013-06-24 00:04
| Show all posts |Read mode
Edytowano przez kaaleth dnia 2013-6-23 23:26

DiscuzX allows us to add youtube video in standard way but I'd like to show you improved option.

What's new?
- separate button for YouTube,
- HTTPS (Hypertext Transfer Protocol Secure) adds a layer of protection around information traveling between your computer and a web server,
- more privacy (YouTube won’t store information about visitors on your web page unless they play the video),
- 100% width in topics for all resolutions,

How to do?
1. Log into your Admin Control Panel.
2. Go to Styles -> Editor Settings -> BBCode.
3. Add new TAG, for example: yt . In Icon File write yt.png
You can use a nice icon for BBCode bar. Click and download  . Copy to static/image/common.
5. Check boxes: Available & Display. You can also set order. For example: 18.
6. Click on details and now fill:

Tag(s) yt
Replacement content
  1. <iframe width="100%" height="415" src="https://www.youtube-nocookie.com/embed/{1}" frameborder="1" allowfullscreen></iframe>
Copy the Code
Example [yt]4F-CpE73o2M[/yt]
Explanation [yt]movie ID[/yt]
Number of parameters 1
Parameter prompt Please enter the movie ID
Nested depth 1
Allow this BB-code for the user group Select as you wish.

Example: How to use?
Your YouTube video:
  1. http://www.youtube.com/watch?v=4F-CpE73o2M
Copy the Code
Your video's ID
  1. [yt]4F-CpE73o2M[/yt]
Copy the Code
Demo:




Other way is here.

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Rate

Number of participants 1Rating +1 Collapse Reason
vot + 1 Very nice!

View Rating Log

Related threads

Post time: 2015-02-26 21:47
| Show all posts
This is great for pc but don found in movil, but it is a super grat theme
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 07:35 GMT+3 , Processed in 0.041964 sec., 13 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list