PDA

View Full Version : Embedded Youtube- Send to Friend button



Powerboatie
Sun 20th Apr '08, 9:28am
Hi folks,

Firstly, I'm not a techie !!

I've cut and past some code from these forums which allows my forum users to post youtube videos within posts. All is working very well there.

I've implemented this code using the Custom BB Code feature.

I am now trying to add some code from CPH tools which will give me a "send video to a friend feature". I think that this button is a nice feature to accompany the embedded viseo feature as it will facilitate a certain amount of friendly viral marketing by my forum users.

When I add the code from cph to the end of the code for the video embedding, the send to a friend button button appears but won't work for some reason. I've posted the two code groups below.

If any guru can spot an obvious and simple correction I'd be very grateful !

Kind regards,

Stuart ( Code groups follow !)


<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>



<!-- CPH Tools http://www.coolpagehelp.com DO NOT EDIT THIS CODE -->
<!--Copyright (c) 3Dize, Inc. 2002, All Rights Reserved -->
<FORM name='email_friend_script'>
<TABLE>
<TR>
<TD><INPUT type='text' name='address' size='25' maxsize='128'></TD>
<TD><INPUT type='button' value='Email video link to a friend' onClick='jsMailThisUrl();'></TD>
</TR>
</TABLE>
</FORM>
<SCRIPT language='javascript'>
<!--
function jsMailThisUrl()
{
var email_subject = 'Thought you'd appreciate this Video Link';
var email_body = 'Thought you'd appreciate this Video Link on Club Powerboat.ie';
var page_url = window.self.location.href.split( '?' )[0];
page_url = page_url + '?source=email_friend';
var field = document.email_friend_script.address;
window.location = 'mailto:' + field.value + '?subject=' +
escape( email_subject ) + '&body=' +
escape( document.title + ': ' + email_body + ': ' + page_url );
}
//-->
</SCRIPT>

peterska2
Tue 22nd Apr '08, 3:06am
You cannot use forms inside posts as forms do not nest very well and there is already a form there for the inline moderation.

Therefore, this requires modifying the code. We cannot officially support code modifications or forums running modified code, however you can try searching or asking for help with this over at vBulletin.org (www.vbulletin.org).