vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add Send to Friend button on embedded (in post) You Tube Video (https://vborg.vbsupport.ru/showthread.php?t=176783)

powerboat.ie 04-21-2008 02:29 PM

Add Send to Friend button on embedded (in post) You Tube Video
 
Hi folks,

Firstly, I'm not a techie !!

While I can't write HTML and BB Code, I have been able to manage the backend (Admin) of my forums quite well and have been able with the help of people such as your selves to carry out various mods ( adsense etc).

I've cut and past some BB code from these forums ( Thanks !!) which now allows my forum users to post you tube videos within their posts. All is working very well there.

I've implemented this code using the Custom BB Code feature. HTML access is witched of for users.

I am now trying to add some code from CPH tools which will give me a "send video to a friend" button. 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 in the correct format and location, 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 suspect that it is something to do with the BB concersion ?) 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>


All times are GMT. The time now is 01:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete