<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TinyMCE Forum - Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
		<link>http://www.tinymce.com/forum/viewtopic.php?id=23707</link>
		<description><![CDATA[The most recent posts in Database Operation Upon Clicking on Any MC Filemanager Button.]]></description>
		<lastBuildDate>Tue, 03 May 2011 13:48:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=89935#p89935</link>
			<description><![CDATA[<p>It&#039;s tricky to have a pure database storage plugin since some operations like image scaling is done on local files in the current version. Also I&#039;m not sure if we will support database blobs even in the 4.0 version since it&#039;s a very slow process getting an image out, manipulating it and putting it back in to the database.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Tue, 03 May 2011 13:48:00 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=89935#p89935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=89882#p89882</link>
			<description><![CDATA[<p>My need:<br />- I want the images to be stored and retrieved from a Database table rather than the folder.</p><p>Achieved so far:<br />- I have bought a license of Image Manager and File Manager.<br />- I have created my own plugin and am able to get the following parameters: action, file1 and file2</p><p>What are the next set of steps to be followed ? <img src="http://www.tinymce.com/forum/img/smilies/roll.png" width="15" height="15" alt="roll" /><br />Any guidance will be highly appreciated.</p>]]></description>
			<author><![CDATA[dummy@example.com (Rita)]]></author>
			<pubDate>Mon, 02 May 2011 09:31:05 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=89882#p89882</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=83055#p83055</link>
			<description><![CDATA[<p>Yeah some of those spammers are really tricky to spot. They start posting like a normal user then after a while they edit their post and add spam junk really annoying. But we have some ideas to prevent that in the future. <img src="http://www.tinymce.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Sun, 21 Nov 2010 11:13:58 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=83055#p83055</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=83050#p83050</link>
			<description><![CDATA[<p>Was some spam i deleted, at least I think so.</p>]]></description>
			<author><![CDATA[dummy@example.com (Afraithe)]]></author>
			<pubDate>Sun, 21 Nov 2010 03:17:43 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=83050#p83050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=83045#p83045</link>
			<description><![CDATA[<p>Who is annabelle?</p>]]></description>
			<author><![CDATA[dummy@example.com (Felix Riesterer)]]></author>
			<pubDate>Sat, 20 Nov 2010 21:59:25 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=83045#p83045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=83039#p83039</link>
			<description><![CDATA[<p>yeah spocke himself is a great help. he can answer all of us but i believe he does not have enough time. it is absolutely ok annabelle if you cant help me out</p>]]></description>
			<author><![CDATA[dummy@example.com (qamar)]]></author>
			<pubDate>Sat, 20 Nov 2010 10:55:43 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=83039#p83039</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82681#p82681</link>
			<description><![CDATA[<p>Ok.</p><p>1. Open filemanager\plugins\_Template\src\csharp\TemplatePlugin.cs<br />2. Locate OnFileAction<br />3. Notice that this method will be called everytime a file is added/removed/renamed etc.<br />4. Take the _Template plugin and create your own plugin.<br />5. Add the SQL stuff to the method described in 2 and 3.<br />6. Compile it to a DLL the dll can be placed in the bin directory in your plugin for example filemanager\plugins\myplugin\bin.<br />7. Open the filemanager/web.config<br />8. Add your new plugin to the plugins config section needs to be the name of the class you created in your plugin.</p><p>The above steps needs basic .NET development skills also the API documentation is found in filemanager\docs\FileManager_API.chm the different events are described with comments in the _Template plugin as well as in the API documentation.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Wed, 10 Nov 2010 22:36:49 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82681#p82681</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82669#p82669</link>
			<description><![CDATA[<p>i have been asking you the same question in different ways over and over. what is this onfileaction event ? is it a jscript function or a server side .net function? if server side how can i see this function (which file it resides)? hope this time its clear to you.</p>]]></description>
			<author><![CDATA[dummy@example.com (qamar)]]></author>
			<pubDate>Wed, 10 Nov 2010 17:08:27 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82669#p82669</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82655#p82655</link>
			<description><![CDATA[<p>You can write your own .NET plugin then tie in to the onFileAction event by implementing that method. We ship an example plugin with the package that should be enough details if you have basic .NET development skills.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Wed, 10 Nov 2010 13:14:48 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82655#p82655</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82639#p82639</link>
			<description><![CDATA[<p>at least let me know where should i write the sql query and all while uploading, deleting, editing and renaming the files?</p>]]></description>
			<author><![CDATA[dummy@example.com (qamar)]]></author>
			<pubDate>Wed, 10 Nov 2010 02:18:15 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82639#p82639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82611#p82611</link>
			<description><![CDATA[<p>No that is out side the scope of the support I can give for the products. The .NET API is very similar to the code above so see the code above as pseudo logic for that.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Tue, 09 Nov 2010 12:45:35 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82611#p82611</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82596#p82596</link>
			<description><![CDATA[<p>function onFileAction(&amp;$man, $action, $file1, $file2) {<br />&nbsp; &nbsp; if ($action == ADD_ACTION) {<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;File added: name=&quot; . $file1-&gt;getName() . &quot;, path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, parent: &quot; . $file1-&gt;getParent();<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if ($action == DELETE_ACTION) {<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;File added: name=&quot; . $file1-&gt;getName() . &quot;, path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, parent: &quot; . $file1-&gt;getParent();<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if ($action == RENAME_ACTION) {<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;File moved: from name=&quot; . $file1-&gt;getName() . &quot;, from path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, from parent: &quot; . $file1-&gt;getParent();<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;File moved: to name=&quot; . $file2-&gt;getName() . &quot;, to path: &quot; . $file2-&gt;getAbsolutePath() . &quot;, to parent: &quot; . $file2-&gt;getParent();<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; return true;<br />}</p><br /><p>can you provide me the .net implementation of this code? can you show me how can i write a plugin so that i can store the file name folder name in the database?</p><p>thanks,<br />qamar</p>]]></description>
			<author><![CDATA[dummy@example.com (qamar)]]></author>
			<pubDate>Tue, 09 Nov 2010 02:50:32 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82596#p82596</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82323#p82323</link>
			<description><![CDATA[<p>That is a bit more tricky the current implementation doesn&#039;t have a reference database file system. However we are making one for the upcoming 4.0 release. In theory it&#039;s possible in the 3.x versions since we have a file system abstraction layer. For example you can browse a Zip file just like a normal dir.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Tue, 02 Nov 2010 12:23:57 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82323#p82323</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82316#p82316</link>
			<description><![CDATA[<p>is it possible to load the files inside the file manager based on the file path saved in the database?</p>]]></description>
			<author><![CDATA[dummy@example.com (qamar)]]></author>
			<pubDate>Tue, 02 Nov 2010 09:42:12 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82316#p82316</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Operation Upon Clicking on Any MC Filemanager Button]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=82268#p82268</link>
			<description><![CDATA[<p>You can write a plugin and wait for the onFileAction event and handle it something like this:<br /></p><div class="codebox"><pre><code>function onFileAction(&amp;$man, $action, $file1, $file2) {
    if ($action == ADD_ACTION) {
        echo &quot;File added: name=&quot; . $file1-&gt;getName() . &quot;, path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, parent: &quot; . $file1-&gt;getParent();
    }

    if ($action == DELETE_ACTION) {
        echo &quot;File added: name=&quot; . $file1-&gt;getName() . &quot;, path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, parent: &quot; . $file1-&gt;getParent();
    }

    if ($action == RENAME_ACTION) {
        echo &quot;File moved: from name=&quot; . $file1-&gt;getName() . &quot;, from path: &quot; . $file1-&gt;getAbsolutePath() . &quot;, from parent: &quot; . $file1-&gt;getParent();
        echo &quot;File moved: to name=&quot; . $file2-&gt;getName() . &quot;, to path: &quot; . $file2-&gt;getAbsolutePath() . &quot;, to parent: &quot; . $file2-&gt;getParent();
    }

    return true;
}</code></pre></div><p>This should be enough information for most PHP developers. So you just need to add the SQL queries etc to insert/update the database depending on the action that happened. Check the filemanager/plugin/_Template directory for a baseline plugin.</p>]]></description>
			<author><![CDATA[dummy@example.com (spocke)]]></author>
			<pubDate>Mon, 01 Nov 2010 13:15:30 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=82268#p82268</guid>
		</item>
	</channel>
</rss>
