Hi again, <br><br>The modification is really simple, attached is the new smarty.setup.php, it will work in 5.0.3 + patch, all what is needed is copy all content of Smarty/templates to Smarty/templates/default and after that you can start creating directories for your templates. 
<br><br>Just to be clear, I used the theme as control to keep the same vtiger structure, So you will be able to create new functionalities for theme/template pair.<br><br>In my humble-nobody-asked-for opinion it should be enough to include new functionalities without brake the great original code and without bore the developers team. 
<br><br>I hope some of you could test and send some opinions, critics or lessons about how can I do it correctly.&nbsp; Also in my humble-nobody-asked for opinion a many-to-many relationship between templates and themes is not necessary. 
<br><br>I really hope it help, Thank you for your time and attention, and please forgive my English.<br clear="all"><span class="sg"><br></span><br><br>
<div><span class="gmail_quote">On 6/11/07, <b class="gmail_sendername">David V.</b> &lt;<a href="mailto:davidv.net@gmail.com">davidv.net@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Good job Frank !<br><br>David V.<br><br>2007/6/11, Frank Alcantara &lt;<a href="mailto:frank@thyamad.com">
frank@thyamad.com</a>&gt;:<br>&gt; First of all, this is my first post in this list so, Congratulations vtiger<br>&gt; is a excellent project.<br>&gt; Second, we are Brazilians, and we have some special needs to implement in
<br>&gt; Vtiger, some about legislation and some about each client requests. I&#39;ve<br>&gt; been working with vtiger last week to accomplish some of those needs and end<br>&gt; up for create a new template/themes structure.
<br>&gt;<br>&gt; In few words I did a smarty.config.php modification to point the templates<br>&gt; files to a dir structure which is very similar to the theme structure. In<br>&gt; few words if you want to create a new template struture for a special theme
<br>&gt; all you need to do is create a directory under smarty/template with the same<br>&gt; name of your theme. As my English is so bad, I Will try to explain better.<br>&gt;<br>&gt; I have company called thyamad, so I did a theme also called thyamad and did
<br>&gt; all my theme&#39;s modifications there. However thyamad needs some special<br>&gt; template modifications new functionalities etc, then I create a directory<br>&gt; in smarty/template/thyamad copied all files from smarty/template to this new
<br>&gt; directory and now all modifications in Thyamad template will only change<br>&gt; thyamad functionalities. By the way, I removed all files from<br>&gt; smarty/templates to smarty/templates/default so I have no files on
<br>&gt; smarty/templates and there is a default directory where all default template<br>&gt; files are. I tested this structure against all themes in version 5.0.3 and<br>&gt; it worked well.<br>&gt;<br>&gt; As I did not followed this project since its begin I am wondering if such
<br>&gt; theme/template structure is useful for someone else or not and if I am did<br>&gt; it correctly.<br>&gt;<br>&gt; Thank you very much for your time and attention. Of course all comments will<br>&gt; be really very welcome.
<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Frank Alcantara<br>&gt; <a href="http://tecnologia.thyamad.com">http://tecnologia.thyamad.com</a><br>&gt; <a href="http://www.linkedin.com/in/frankalcantara">http://www.linkedin.com/in/frankalcantara
</a><br>&gt; ________________________________________<br>&gt; Warning: this e-mail occasionally contains strong language (which may be<br>&gt; unsuitable for children), unusual humor (which may be unsuitable for<br>&gt; adults), and advanced engineering (which may be unsuitable for everyone
<br>&gt; else).<br>&gt; _______________________________________________<br>&gt; Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>&gt;<br>_______________________________________________
<br>Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>Frank Coelho de&nbsp;&nbsp;Alcantara<br>New Project`s Director, <br>ITDeusto
<br><a href="http://www.itdeusto.com">http://www.itdeusto.com</a><br><a href="mailto:falcantara@itdeusto.com">falcantara@itdeusto.com</a><br>Skype: frankalcantara<br>IM: 19178039 (ICQ)<br>work: 55 41 3256-7311<br>mobile: 55 41 8864-8483
<br><br><a href="http://tecnologia.thyamad.com">http://tecnologia.thyamad.com</a><br><a href="http://www.linkedin.com/in/frankalcantara">http://www.linkedin.com/in/frankalcantara</a><br>________________________________________
<br>Warning: this e-mail occasionally contains strong language (which may be unsuitable for children), unusual humor (which may be unsuitable for adults), and advanced engineering (which may be unsuitable for everyone else).