<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Colorful PHP &#187; ubb</title>
	<atom:link href="http://blog.colorfulphp.com/tag/ubb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.colorfulphp.com</link>
	<description>LuckyMouse&#039;s Php And Js Labs...</description>
	<lastBuildDate>Tue, 13 Jul 2010 03:28:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use colorful ubb editor.</title>
		<link>http://blog.colorfulphp.com/2009/11/how-to-use-colorful-ubb-editor/</link>
		<comments>http://blog.colorfulphp.com/2009/11/how-to-use-colorful-ubb-editor/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 02:08:37 +0000</pubDate>
		<dc:creator>LuckyMouse</dc:creator>
				<category><![CDATA[UBB WYSWYG Editor]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[ubb]]></category>
		<category><![CDATA[WYSWYG]]></category>

		<guid isPermaLink="false">http://blog.colorfulphp.com/?p=3</guid>
		<description><![CDATA[It is easy for install colorful ubb editor on your webpage. You just need to load this script before ”&#60;/body&#62;”(Document End) .
(Demo:  http://api.colorfulphp.com/ubb/ &#124;      Happy Songtext  )
First Step: 
Please insert this code before ”&#60;/body&#62;” tag, and after you Textarea (Form).
&#60;script type="text/javascript" src="http://api.colorfulphp.com/ubb/ubb.js"&#62;&#60;/script&#62;
Second Step: 
You should config UBB Editor Code before load the script [...]]]></description>
			<content:encoded><![CDATA[<p>It is easy for install colorful ubb editor on your webpage. You just need to load this script before ”&lt;/body&gt;”(Document End) .</p>
<p>(Demo:  <a href="http://api.colorfulphp.com/ubb/" target="_blank">http://api.colorfulphp.com/ubb/</a> |      <a href="http://www.musiksongtext.com/songtext_leona-lewis_song_happy/" target="_blank">Happy Songtext </a> )</p>
<p><strong>First Step: </strong></p>
<p>Please insert this code before ”&lt;/body&gt;” tag, and after you Textarea (Form).</p>
<blockquote><p><code>&lt;script type="text/javascript" src="http://api.colorfulphp.com/ubb/ubb.js"&gt;&lt;/script&gt;</code></p></blockquote>
<p><strong>Second Step: </strong></p>
<p>You should config UBB Editor Code before load the script above.(Insert this config code <strong>before </strong>above script.)  example:</p>
<blockquote><p><code>&lt;script type="text/javascript"&gt; coUBB_c = {'<strong>id</strong>':'do_content', 'mode':'basic', 'ver':'0.1', 'width':'99%', 'height':'200px', 'auto':1, 'css':':default', 'css_e':}; &lt;/script&gt;</code></p></blockquote>
<p>About Config Arguments:</p>
<p><span style="color: #ff0000;">You must edit the arg of  &#8220;id&#8221;  to the id of you textarea or input.</span></p>
<p>Example:</p>
<blockquote><p><code>&lt;textarea cols="50"  rows="10" name="<strong>do_content</strong>"  id="<strong>do_content</strong>"  style="width:99%" onclick="if(typeof(coUBB) == 'object'){coUBB.make(coUBB_c);}"&gt;&lt;/textarea&gt;</code></p></blockquote>
<p><strong>do_content</strong> is the <strong>id</strong> value.</p>
<p>Don&#8217;t modify arg: <strong>mode</strong> , <strong>ver</strong>. Because there are no other version at present.</p>
<p>&#8220;width&#8221;  and &#8221; height&#8221; is default value if you are use a INPUT element.</p>
<p>You can load your css as:         &#8216;css&#8217; : &#8216;http://yourpath&#8217;</p>
<p>Please check <a href="http://blog.colorfulphp.com/2009/11/colorful-ubb-editor-css/">about css</a> for more information.</p>
<p>Full Example:</p>
<p>1. textarea id is &#8220;do_content&#8221; same as default config, so you don&#8217;t need config it.</p>
<blockquote><p><code><br />
&lt;form method="post"&gt;<br />
&lt;<span>textarea</span><span> cols</span>=<span>"50" </span><span>rows</span>=<span>"10" </span><span>name</span>=<span>"do_content" </span><span>id</span>=<span>"do_content" </span><span>style</span>=<span>"width:99%" </span><span>onclick</span>=<span>"if(typeof(coUBB) == 'object'){coUBB.make(coUBB_c);}"</span>&gt;&lt;/<span>textarea</span>&gt;<br />
&lt;input type="submit" /&gt;<br />
&lt;/form&gt;<br />
&lt;script type="text/javascript" src="http://api.colorfulphp.com/ubb/ubb.js"&gt;&lt;/script&gt;</code></p></blockquote>
<p>2: use your custom config</p>
<blockquote><p><code><br />
&lt;form method="post"&gt;<br />
&lt;<span>textarea</span><span> cols</span>=<span>"50" </span><span>rows</span>=<span>"10" </span><span>name</span>=<span>"myname" </span><span>id</span>=<span>"</span></code><code><span>myname</span></code><code><span>" </span><span>style</span>=<span>"width:99%" </span><span>onclick</span>=<span>"if(typeof(coUBB) == 'object'){coUBB.make(coUBB_c);}"</span>&gt;&lt;/<span>textarea</span>&gt;<br />
&lt;input type="submit" /&gt;<br />
&lt;/form&gt;</code></p>
<p><code>&lt;script type="text/javascript"&gt; coUBB_c = {'<strong>id</strong>':'</code><code><span>myname</span></code><code>', 'mode':'basic', 'ver':'0.1', 'auto':1,'css':'http://mycsspath', 'css_e':}; &lt;/script&gt;</code><br />
<code> &lt;script type="text/javascript" src="http://api.colorfulphp.com/ubb/ubb.js"&gt;&lt;/script&gt;</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.colorfulphp.com/2009/11/how-to-use-colorful-ubb-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
