WP Marketing » Tag: template - Recent Posts http://wpmarketing.org/forum/tags/template Wordpress for Internet and Affiliate Marketing en-US Sat, 21 May 2011 14:41:58 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php hanadaddy on "Insert flv into template theme files" http://wpmarketing.org/forum/topic/insert-flv-into-template-theme-files#post-58 Mon, 09 Nov 2009 12:23:04 +0000 hanadaddy 58@http://wpmarketing.org/forum/ <p>Hello kneelinghorse,</p> <p>Please note that <code>&lt;?php</code> and <code>?&gt;</code> are used to indicate the PHP script code. Therefore you should not use <code>&lt;?php</code> and <code>?&gt;</code> again when <code>&lt;?php</code> is already used to indicate the start of PHP script. Therefore, you can just take those <code>&lt;?php</code> and <code>?&gt;</code> out.</p> <pre> &lt;?php if (function_exists('hana_flv_player_template_call')){ $hana_arg=" video='$videolink' splashimage='$splashimage' player='2' width='180' height='150' more_2=\"showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false, showFullScreenButton: false, showMenu: false, controlsOverVideo: 'locked',controlBarBackgroundColor: -1, controlBarGloss: 'none', usePlayOverlay:false \" "; echo hana_flv_player_template_call($hana_arg); } ?&gt; </pre> <p>Thanks for using hana flv player. </p> kneelinghorse on "Insert flv into template theme files" http://wpmarketing.org/forum/topic/insert-flv-into-template-theme-files#post-56 Sun, 08 Nov 2009 01:55:13 +0000 kneelinghorse 56@http://wpmarketing.org/forum/ <p>Hi,<br /> I am trying to create a video page template. I essentially want to call a custom field from a page to fill in the video and splashimage fields. So from your template theme code:</p> <p><code>&lt;?php<br /> if (function_exists('hana_flv_player_template_call')){<br /> $hana_arg="<br /> video='http://www.kneelinghorse.com/wp-content/plugins/hana-flv-player/babyhana.flv'<br /> player='2'<br /> width='180'<br /> height='150'<br /> more_2=\"showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false,<br /> showFullScreenButton: false, showMenu: false, controlsOverVideo: 'locked',controlBarBackgroundColor: -1,<br /> controlBarGloss: 'none', usePlayOverlay:false \"<br /> ";<br /> echo hana_flv_player_template_call($hana_arg);<br /> }<br /> ?&gt;<br /> </code></p> <p>I would like to do something like this:</p> <p><code><br /> &lt;?php $videolink = get_post_custom_values($key = 'videolink'); ?&gt;<br /> &lt;?php $splashimage = get_post_custom_values($key = 'splashimage'); ?&gt;</code></p> <p><code><br /> &lt;?php<br /> if (function_exists('hana_flv_player_template_call')){<br /> $hana_arg="<br /> video='&lt;?php echo $videolink; ?&gt;'<br /> splashimage='&lt;?php echo $splashimage; ?&gt;'<br /> player='2'<br /> width='180'<br /> height='150'<br /> more_2=\"showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false,<br /> showFullScreenButton: false, showMenu: false, controlsOverVideo: 'locked',controlBarBackgroundColor: -1,<br /> controlBarGloss: 'none', usePlayOverlay:false \"<br /> ";<br /> echo hana_flv_player_template_call($hana_arg);<br /> }<br /> ?&gt;<br /> </code></p> <p>Is this possible? Or am I going about this all wrong?<br /> Thank you in advance for any help! </p>