<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WP Marketing &#187; Topic: Add video in post with a url</title>
		<link>http://wpmarketing.org/forum/topic/add-video-in-post-with-a-url</link>
		<description>Wordpress for Internet and Affiliate Marketing</description>
		<language>en-US</language>
		<pubDate>Fri, 30 Jul 2010 16:22:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wpmarketing.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://wpmarketing.org/forum/rss/topic/add-video-in-post-with-a-url" rel="self" type="application/rss+xml" />

		<item>
			<title>gravel22 on "Add video in post with a url"</title>
			<link>http://wpmarketing.org/forum/topic/add-video-in-post-with-a-url#post-109</link>
			<pubDate>Wed, 20 Jan 2010 17:37:24 +0000</pubDate>
			<dc:creator>gravel22</dc:creator>
			<guid isPermaLink="false">109@http://wpmarketing.org/forum/</guid>
			<description>&#60;p&#62;Thank you this is really great and complete answer, &#60;/p&#62;
&#60;p&#62;Have a good day !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hanadaddy on "Add video in post with a url"</title>
			<link>http://wpmarketing.org/forum/topic/add-video-in-post-with-a-url#post-104</link>
			<pubDate>Tue, 19 Jan 2010 23:40:40 +0000</pubDate>
			<dc:creator>hanadaddy</dc:creator>
			<guid isPermaLink="false">104@http://wpmarketing.org/forum/</guid>
			<description>&#60;p&#62;Hello, nice website.&#60;/p&#62;
&#60;p&#62;Yes you can use custom fields and use as the video file.&#60;/p&#62;
&#60;p&#62;First add below routine in your theme&#38;#39;s &#60;code&#62;single.php&#60;/code&#62; file. Make sure you add below lines after &#60;code&#62;the_post();&#60;/code&#62; is called.&#60;br /&#62;
The custom field from the post is only accessible after &#60;code&#62;the_post()&#60;/code&#62; is called.&#60;/p&#62;
&#60;p&#62;Note that I used &#38;#39;video&#38;#39; as the custom field name to remember easily.&#60;/p&#62;
&#60;pre&#62;
&#38;lt;?php

$tarray= get_post_custom_values(&#38;#39;video&#38;#39;);
if (isset($tarray[0])) { $video=$tarray[0]; }

echo &#38;quot;video:$video&#38;quot;;

if (function_exists(&#38;#39;hana_flv_player_template_call&#38;#39;)){
$hana_arg=&#38;quot;
video=&#38;#39;$video&#38;#39;
player=&#38;#39;2&#38;#39;
width=&#38;#39;180&#38;#39;
height=&#38;#39;150&#38;#39;
more_2=\&#38;quot;showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false,
showFullScreenButton: false, showMenu: false, controlsOverVideo: &#38;#39;locked&#38;#39;,controlBarBackgroundColor: -1,
controlBarGloss: &#38;#39;none&#38;#39;, usePlayOverlay:false \&#38;quot;
&#38;quot;;
echo hana_flv_player_template_call($hana_arg);

}
?&#38;gt;
&#60;/pre&#62;
&#60;p&#62;Then you will update the post and add the custom field with name &#60;code&#62;video&#60;/code&#62; and the value which should be the URL of the video file.&#60;/p&#62;
&#60;p&#62;Then visit the website!&#60;/p&#62;
&#60;p&#62;See the below screen capture for better explanation. Picture worth better than thousand words.&#60;/p&#62;
&#60;p&#62; &lt;a class=&#039;bb_attachments_link&#039; href=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=10&#039;&gt;&lt;img  src=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=10&amp;inline&#039; /&gt;&lt;/a&gt; &lt;a class=&#039;bb_attachments_link&#039; href=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=11&#039;&gt;&lt;img  src=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=11&amp;inline&#039; /&gt;&lt;/a&gt; &lt;a class=&#039;bb_attachments_link&#039; href=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=12&#039;&gt;&lt;img  src=&#039;http://wpmarketing.org/forum/?bb_attachments=104&amp;bbat=12&amp;inline&#039; /&gt;&lt;/a&gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gravel22 on "Add video in post with a url"</title>
			<link>http://wpmarketing.org/forum/topic/add-video-in-post-with-a-url#post-97</link>
			<pubDate>Tue, 19 Jan 2010 01:08:35 +0000</pubDate>
			<dc:creator>gravel22</dc:creator>
			<guid isPermaLink="false">97@http://wpmarketing.org/forum/</guid>
			<description>&#60;p&#62;Hi !&#60;/p&#62;
&#60;p&#62;First I'll thank you for the great flv player, really class all the way, thank you so much !&#60;/p&#62;
&#60;p&#62;My website here : &#60;a href=&#34;http://www.musixplore.ca/retour&#34; rel=&#34;nofollow&#34;&#62;http://www.musixplore.ca/retour&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I want the video player always at the same place in all of my post but I want to be able to change the video URL for each of my post.&#60;/p&#62;
&#60;p&#62;So I add theses lines in my single-video.php page into the editor.&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;if (function_exists('hana_flv_player_template_call')){&#60;br /&#62;
$hana_arg=&#34;&#60;br /&#62;
video='HERE I DONT WANT TO ADD ANY VIDEO URL !!!'&#60;br /&#62;
splashimage='$splashimage'&#60;br /&#62;
player='2'&#60;br /&#62;
width='180'&#60;br /&#62;
height='150'&#60;br /&#62;
more_2=\&#34;showStopButton: false, showScrubber: false, showVolumeSlider: false,showMuteVolumeButton: false,&#60;br /&#62;
showFullScreenButton: false, showMenu: false, controlsOverVideo: 'locked',controlBarBackgroundColor: -1,&#60;br /&#62;
controlBarGloss: 'none', usePlayOverlay:false \&#34;&#60;br /&#62;
&#34;;&#60;br /&#62;
echo hana_flv_player_template_call($hana_arg);&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
?&#38;gt;&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;I just dont know how to code this to make a custom field when I post a new article.&#60;/p&#62;
&#60;p&#62;Hope you understand what I want.&#60;/p&#62;
&#60;p&#62;PS: Ive tried the $videolink thing that I found on an other post and it's not working.&#60;/p&#62;
&#60;p&#62;Ill be really glad if you figure my problem and Ill donate money if you help me !&#60;/p&#62;
&#60;p&#62;Have a good day, &#60;/p&#62;
&#60;p&#62;Gravel22 from Quebec !
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
