Need help with dailymotion video pop up BBcode

Support for PhpBB3 BBCodes. Post here to get help with any BBCode related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Need help with dailymotion video pop up BBcode

Post by kevinviet »

In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.

Hi all
I have the html part for dailymotion video pop up but i don't know how to make it become a BBcode, so members can post these kind videos on my board. Can anyone please help me to make this BBcode.

Here is the html part i have :

Code: Select all

<div class="content"><p align="center"><a href="http://www.dailymotion.com/swf/xck2ho" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 725, height: 550, wrapperClassName: 'draggable-header' } )"><img style="width: 130px; height: 97px;" alt="Dailymotion" src="http://ak2.static.dailymotion.com/static/video/047/190/21091740:jpeg_preview_medium.jpg?20100315152318" alt="Lady Gaga - Telephone" class="dmco_image" title="Lady Gaga - Telephone" /></a></p></div>
Here the link do dailymotion video : http://www.dailymotion.com/video/xck2ho ... hone_music

Thank you very much for any help.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Need help with dailymotion video pop up BBcode

Post by cisco007 »

where exactly is the link on the page to get the pop up embed code? i can find the regular embed code but not the pop up embed code!
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Re: Need help with dailymotion video pop up BBcode

Post by kevinviet »

Well actually this pop up html code is from youtube pop up BBcode by Stoker and i just changed the url and it works on my portal page. Now, is it possible to make it a BBcode for member to post this pop up video on my board ?

Thanks for reply cisco
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Need help with dailymotion video pop up BBcode

Post by cisco007 »

well there are a couple of ways that i would do it!
one i would use the html replacement you posted, and use a default picture to click on,

Code: Select all

<div class="content"><p align="center"><a href="http://www.dailymotion.com/swf/video/{SIMPLETEXT}" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 725, height: 550, wrapperClassName: 'draggable-header' } )"><img style="width: 130px; height: 97px;" alt="Dailymotion" src="http://i42.tinypic.com/ev73gp.jpg" alt="" class="dmco_image" title=""  /></a></p></div>
for the helpline it would be

Code: Select all

[dailymotion]xck2ho[/dailymotion]
which would be the id in the url, the red part, http://www.dailymotion.com/video/xck2ho_lady-gaga-telephone_music

or use the image from the video in which case you will need to add two tokens!

Code: Select all

<div class="content"><p align="center"><a href="http://www.dailymotion.com/swf/video/{SIMPLETEXT}" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 725, height: 550, wrapperClassName: 'draggable-header' } )"><img style="width: 130px; height: 97px;" alt="Dailymotion" src="{URL}" alt="" class="dmco_image" title=""  /></a></p></div>
and helpline would be

Code: Select all

[dailymotion]xck2ho,http://ak2.static.dailymotion.com/static/video/047/190/21091740:jpeg_preview_medium.jpg?20100315152318[/dailymotion]
but i don't know where you got that image from, i could not find it in the embed code, unless you are willing to tell your users where to get it, it's up to you which one to use!
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Re: Need help with dailymotion video pop up BBcode

Post by kevinviet »

Excellent, Thanks cisco. instead of using image for the video I want using text to write the name of that video, How do I change the html code ? Can you rewrite the html code for me please ?

Thanks cisco
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Need help with dailymotion video pop up BBcode

Post by cisco007 »

wow you are really making me do some work are you!?

Code: Select all

<div class="content"><p align="center"><a href="http://www.dailymotion.com/swf/video/{SIMPLETEXT}" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 725, height: 550, wrapperClassName: 'draggable-header' } )">{SIMPLETEXT}</a></p></div>
and you will use the end part of the video url

http://www.dailymotion.com/video/xck2ho_lady-gaga-telephone_music
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Re: Need help with dailymotion video pop up BBcode

Post by kevinviet »

:D Thanks cisco, but I didn't mean the text of video, I meant i write down the text and when click on the text it pop up a video. It like url text. Some thing like this
lady-gaga music

Can you rewrite the this BBcode again 1 more time cisco ? please :D

Thank you so much :theman: ;)
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Need help with dailymotion video pop up BBcode

Post by cisco007 »

that is what this code will do! and only use one token. check this out!

http://layerbabuena.org/viewtopic.php?f ... p=371#p371
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 04:52

Re: Need help with dailymotion video pop up BBcode

Post by kevinviet »

yes, but I don't want to display the video code and the real name of the video, I want to hide the code and write down any text i want.

Thanks for fast reply cisco
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Need help with dailymotion video pop up BBcode

Post by cisco007 »

at times like this is when i wished i charged money! :?

bbcode usage:

Code: Select all

[dailymotion]{SIMPLETEXT1},{SIMPLETEXT2}[/dailymotion]
HTML:

Code: Select all

<div class="content"><p align="center"><a href="http://www.dailymotion.com/swf/video/{SIMPLETEXT1}" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 725, height: 550, wrapperClassName: 'draggable-header' } )">{SIMPLETEXT2}</a></p></div>
helpline:

Code: Select all

[dailymotion]xck2ho_lady-gaga-telephone_music,put whatever text your heart desires here[/dailymotion]
Locked