WP Marketing » Topic: Hana Code Insert v2.2 http://wpmarketing.org/forum/topic/hana-code-insert-v22 Wordpress for Internet and Affiliate Marketing en-US Fri, 29 Aug 2014 02:58:35 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php Grand Blogxon on "Hana Code Insert v2.2" http://wpmarketing.org/forum/topic/hana-code-insert-v22#post-162 Tue, 18 May 2010 06:56:57 +0000 Grand Blogxon 162@http://wpmarketing.org/forum/ <p>(first, sorry for my english, I'm french and speak better french :))</p> <p>I Enjoy Hana Code Insert using on my WP-Mu install with no problem - The basic need to install this plug in is to give users hability to personnalize css adds or other code in each blog - without changing original themes files. Best way is probably put the code in an invisible Text Widget.<br /> So I use this wonderfull plugin ... and I'm waiting with hope for the Text Widget support !</p> <p>Thanks :) </p> hanadaddy on "Hana Code Insert v2.2" http://wpmarketing.org/forum/topic/hana-code-insert-v22#post-16 Sun, 04 Oct 2009 14:17:00 +0000 hanadaddy 16@http://wpmarketing.org/forum/ <p><strong>v2.2 (10/04/2009)</strong> : </p> <p><strong>1. PHP code content evaluation</strong><br /> Some modification on PHP evaluation that you can use <code>&lt;?php</code> and <code>?&gt;</code> within the entry content for PHP evaluation. </p> <p>So, in the previous version, if you wanted PHP code output, you could not use <code>&lt;?php</code> and <code>?&gt;</code>. But now you can use them inside the entry item.</p> <p>Previously you could only define PHP codes only.</p> <pre> print "&lt;div style='border:1px dotted red; padding: 5px;'&gt;"; print date("m/d/Y H:i:s"); print "&lt;/div&gt;"; </pre> <p>But now, below code will work too.</p> <pre> &lt;div style='border:1px dotted red; padding: 5px;'&gt; &lt;?php print date("m/d/Y H:i:s");?&gt; &lt;/div&gt; </pre> <p><strong>2. Custom ShortCode</strong><br /> Also extra feature for custom short code is added. You can define your own custom short code prefix and post fix. So you don't have to use <code>[hana-code-insert]</code> shortcode any more.</p> <p>If defined, custom short code format can be used instead of <code>[hana-code-insert name=&#39;Entry Name&#39; /]</code>. For example, if you define <code>{{</code> for start indicator, <code>}}</code> for end indicator, you can use <code>{{Entry Name}}</code>. But beware, your new shortcode format may conflict with other plugins and cause one or more plugins to fail. </p> <p>There are some restrictions. <code>^</code> and <code>\</code> characters are not allowed. And start and end indicators should not be used part of entry name. HTML comment tag is a good candidate for the customs shortcodes indicators. (Start indicator <code>&lt;!--</code> , End indicator : <code>--&gt;</code>) In this way, even if the Hana Code Insert is disabled, these shortcodes will not show this way.</p> <p>Some of the tested custom Short Codes</p> <pre> =================== [[testing123]] =================== ~~testing123~~ =================== {{testing123}} =================== This time it uses html comment. &lt;!-- testing123 --&gt; =================== [hana-code-insert name='testing123' /] </pre> <p>I am planning to implement Text Widget Support and enhancement in the Admin settings screen in the next version. (Additional description to recognize code snippet better, Search Fuction, etc..)</p> <p>Enjoy! Let me know if you experience any problem. </p>