Page 1 of 2

Need help with dailymotion video pop up BBcode

Posted: 13 Jun 2010, 23:19
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.

Re: Need help with dailymotion video pop up BBcode

Posted: 13 Jun 2010, 23:47
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!

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 00:13
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

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 03:16
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!

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 09:28
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

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 14:21
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

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 20:15
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: ;)

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 20:33
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

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 20:41
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

Re: Need help with dailymotion video pop up BBcode

Posted: 14 Jun 2010, 20:51
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]