<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-6748137641733869667</atom:id><lastBuildDate>Fri, 01 Feb 2008 02:00:47 +0000</lastBuildDate><title>PHPmotion help</title><description/><link>http://www.elixiraddons.com/blogs/phpmotion/</link><managingEditor>elixir</managingEditor><generator>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-4457375552575026976</guid><pubDate>Thu, 22 Nov 2007 03:55:00 +0000</pubDate><atom:updated>2007-11-21T19:59:47.238-08:00</atom:updated><title>Prevent robot spams using CAPTCHA IMAGE</title><description>I heard lot of complaints related to the relaxed registration rules of PHPMotion compared to Vbullettin and PHPBB etc.&lt;br /&gt;I myself ran into a serious robot spamming on my website CONTACT page.&lt;br /&gt;Here is a free, elegant solution I found from http://captchas.net&lt;br /&gt;&lt;br /&gt;Here is how it works.&lt;br /&gt;&lt;br /&gt;1) Register at http://captchas.net/ and get a userid and secret key for yourself.&lt;br /&gt;2) Download the following 3 files from http://captchas.net/ for PHP solution.&lt;br /&gt;They have solutions for ASP, Perl, Python and JSP also.&lt;br /&gt;&lt;br /&gt;2.1) query.php (The code you want to put in the page you want to protect against robot spam)&lt;br /&gt;2.2) check.php (The code you want to put in the page you process the data submitted by the form)&lt;br /&gt;2.3) CaptchasDotNet.php (you don't need to change this).&lt;br /&gt;&lt;br /&gt;3) Use the userid and key to customize the following invocation (files 1 and 2):&lt;br /&gt;$captchas = new CaptchasDotNet ('userid','secret_key',&lt;br /&gt;                                'file_loc','3600',&lt;br /&gt;                                'abcdefghkmnopqrstuvwxyz','6',&lt;br /&gt;                                '240','80');&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;file_loc&lt;/span&gt; is a path to a directory on your server with write access.&lt;br /&gt;&lt;br /&gt;See the code in action on &lt;a href="http://www.elixiraddons.com/contact.php"&gt;my site&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We can use the same to protect the registration page of PHPM as well.&lt;br /&gt;&lt;br /&gt;Hope this helps!</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/11/prevent-robot-spams-using-captcha-image.html</link><author>elixir</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-3302424684460018045</guid><pubDate>Sat, 13 Oct 2007 15:08:00 +0000</pubDate><atom:updated>2008-01-31T18:00:47.639-08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PHPmotion Category Counter</category><title>Category Counter (Part 2)</title><description>&lt;span style="font-weight:bold;"&gt;Part 1&lt;/span&gt; showed you how to add number of videos to the Category list on the left side menu in PHPmotion. &lt;br /&gt;&lt;br /&gt;This explains how to add the counter on the second page you see when you select videos from a specific category.&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://phpmotion.com/forum/index.php?topic=1333"&gt;PHPmotion forum&lt;/a&gt;  for more background.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://video.victorc21.com/category_home.php?cid=Comedy"&gt;See a live demo !&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Caution:&lt;/span&gt;This assumes that you have some experience modifying PHP code even though I made it as simple as I can.&lt;br /&gt;&lt;br /&gt;Basically you will be adding code to the following files. Make a copy of these files first.&lt;br /&gt;&lt;br /&gt;1) category_home.php (step 1)&lt;br /&gt;2) templates/inner_category_home.htm (step 2)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.elixiraddons.com/blogs/phpmotion/category_home.txt"&gt;View code&lt;/a&gt;</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/10/category-counter-part-2.html</link><author>elixir</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-5643582051348942608</guid><pubDate>Thu, 11 Oct 2007 03:30:00 +0000</pubDate><atom:updated>2007-10-13T08:21:55.616-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Category Counter</category><title>Category Counter (Part 1)</title><description>This explains the step by step procedure to add number of videos to the Category list on the left side menu in &lt;a href="http://phpmotion.com"&gt;PHPmotion&lt;/a&gt;. You access this by selecting CATEGORY tab.&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://phpmotion.com/forum/index.php?topic=1333"&gt;PHPmotion forum &lt;/a&gt; for more background.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://video.victorc21.com/category.php"&gt;View live demo !&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Caution:&lt;/b&gt;This assumes that you have some experience modifying PHP code even though I made it as simple as I can.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Basically you will be adding code to the following files. Make a copy of these files first.&lt;br /&gt;&lt;br /&gt;1) category.php (step 1)&lt;br /&gt;2) templates/inner_category.htm (step 2)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.elixiraddons.com/blogs/phpmotion/category.txt"&gt;View code&lt;/a&gt;</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/10/counter-count-for-categories.html</link><author>elixir</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-2123379184471117028</guid><pubDate>Wed, 10 Oct 2007 14:24:00 +0000</pubDate><atom:updated>2007-10-12T18:32:05.137-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PHPmotion Upload EDIT button</category><title>EDIT button for UPLOAD</title><description>This explains the step by step procedure to add EDIT on the second upload page in &lt;a href="http://phpmotion.com/"&gt;PHPmotion&lt;/a&gt; where you select the file.&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://phpmotion.com/forum/index.php?topic=1249"&gt;PHPmotion forum &lt;/a&gt;for more background.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The UPLOAD page has RESET and UPLOAD buttons now. We will be adding a new EDIT button so that you can go back to the previous page&lt;br /&gt;without loosing the details you entered. Please do not use the browser back button any more and use EDIT button instead.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Caution:&lt;/b&gt;This assumes that you have some experience modifying PHP code even though I made it as simple as I can. I have identified the new lines (total three places) using BEGIN/END boundary lines.&lt;br /&gt;&lt;br /&gt;Let me know if you need any help.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Basically you will be adding code to the following files. Make a copy of these files first (for later restoration) in case you mess up.&lt;br /&gt;&lt;br /&gt;1)uploader.php (step 1, two places)&lt;br /&gt;2)templates/templates/inner_upload_video.htm (step 2, one place) &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.elixiraddons.com/blogs/phpmotion/edit.txt"&gt;View code&lt;/a&gt;</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/10/edit-button-for-upload.html</link><author>elixir</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-4041317667461857150</guid><pubDate>Wed, 10 Oct 2007 04:51:00 +0000</pubDate><atom:updated>2007-10-12T21:55:11.099-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Template Engine TinyButStrong TBS</category><title>TinyButStrong (TBS) - PHP Template Engine of PHPmotion</title><description>PHPmotion uses a Template Engine for PHP called &lt;br /&gt;&lt;a href="http://www.tinybutstrong.com"&gt;TinyButStrong (TBS)&lt;/a&gt;. &lt;br /&gt;If you want to customize PHPmotion, you may have to edit the php code and the associated HTML template files.&lt;br /&gt;&lt;br /&gt;This is what you see in the php files of PHPmotion code.&lt;br /&gt;&lt;br /&gt;$TBS = new clsTinyButStrong;    &lt;br /&gt;$TBS-&gt;LoadTemplate("template_name");&lt;br /&gt;$TBS-&gt;Render = TBS_OUTPUT;&lt;br /&gt;$TBS-&gt;Show();&lt;br /&gt;&lt;br /&gt;Inside the HTML template you will see TBS specific tags like &lt;br /&gt;[blk1;block=begin][blk1.val][blk1;block=end]&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.tinybutstrong.com/examples.php"&gt;More details&lt;/a&gt;</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/10/phpmotion-uses-template-engine-for-php.html</link><author>elixir</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6748137641733869667.post-8408314788606128802</guid><pubDate>Sun, 07 Oct 2007 16:16:00 +0000</pubDate><atom:updated>2007-10-12T18:32:39.247-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PHPmotion YouTube videos</category><title>Import YouTube videos into PHPmotion</title><description>I took the &lt;a href="http://phpmotion.com/forum/index.php?topic=580.0"&gt;code to import You Tube videos &lt;/a&gt;&lt;br /&gt;posted on the &lt;a href="http://phpmotion.com/forum/index.php?topic=580.0"&gt;PHPmotion forum &lt;/a&gt; sometime back and worked on the issues (database insert, thumb nail image generation etc.) &lt;br /&gt;they mentioned and got it to work.&lt;br /&gt;&lt;br /&gt;Here is the end result &lt;a href="http://video.victorc21.com"&gt;http://video.victorc21.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This downloads the video (flv file) to your server, performs the DB insert into PHP motion database (makes think PHP motion that this was uploaded by a user) and creates a thumb nail image you see on the home page, using ffmpeg utility .&lt;br /&gt;&lt;br /&gt;Give it a try and let me know your thoughts.&lt;br /&gt;&lt;br /&gt;Did this due to the huge demand for this feature. PHPmotion sells a mod for this and I haven't seen it yet.&lt;br /&gt;Please let me know your feedback if you have used it. I don't want to re-invent the wheel.&lt;br /&gt;&lt;br /&gt;I am already looking at the Youtube APIs to get various reports (like top rated videos, comedy videos, most recent videos etc.) which can be used to automatically download to your PHPmotion site. Possibilities are plenty I guess ? Not sure what makes sense (if at all).&lt;br /&gt;&lt;br /&gt;This can be enhanced to:&lt;br /&gt;1) import videos to the members only area after login instead of importing to the public area without login or registration.&lt;br /&gt;&lt;br /&gt;2) Import 10 top rated comedy videos from YT within the last 24 hrs (members only).&lt;br /&gt;&lt;br /&gt;3)List video titles from YT and do selective import&lt;br /&gt;&lt;br /&gt;4) Anything interesting ?&lt;br /&gt;&lt;br /&gt;If there is sufficient demand, I will be more than happy to work on these features ....&lt;br /&gt;&lt;br /&gt;Looking forward to the feedback from the pros.</description><link>http://www.elixiraddons.com/blogs/phpmotion/2007/10/import-youtube-videos-into-phpmotion.html</link><author>elixir</author></item></channel></rss>
