Ah, this is interesting.<br><br>Correct me if I am wrong, but css background images, for example, are relative according to best practices; likewise, in a module, things like the following are best practices (if you are forced to invoke from theme):
<br><br>&nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo base_path() . &#39;misc/collapse.js&#39;?&gt;&quot;&gt;&lt;/script&gt;<br><br>likewise path_to_theme(), drupal_get_path()<br><br>define(&quot;JS_directory&quot;, drupal_get_path(&#39;module&#39;, &#39;this_wonderful_module&#39;) . &#39;/js/&#39;);
<br><br>Anyway, on a joyous note, today Tao Starbow announces yet another module, scanner, which offers search and replace in configurable content types and tables... maybe not everything being sought here, but a big help to some of the PITA procedures being mentioned.
<br><br>See his Global Search and Replace article <a href="http://www.starbowconsulting.com/node/88">http://www.starbowconsulting.com/node/88</a><br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar
</a><br><br><br><br><br><div class="gmail_quote">On Dec 9, 2007 1:24 PM, Khalid Baheyeldin &lt;<a href="mailto:kb@2bits.com">kb@2bits.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><span></span>On Dec 9, 2007 10:54 AM, Michelle Cox &lt;<a href="mailto:mcox@charter.net" target="_blank">mcox@charter.net</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><br>----- Original Message -----<br>From: &quot;adrian rossouw&quot; &lt;<a href="mailto:adrian@bryght.com" target="_blank">adrian@bryght.com</a>&gt;<br>To: &lt;<a href="mailto:development@drupal.org" target="_blank">
development@drupal.org
</a>&gt;<br>Sent: Sunday, December 09, 2007 8:37 AM<br>Subject: Re: [development] Files directory on installation usability fix<br>notquite usable. ; )<br><br><br>&gt; Perhaps the path in the files table should be relative to where the
<br>&gt; files directory is.<br><br></div>I&#39;ve been wondering about this myself since I got bit by it in 4.7. I never<br>understood why the whole path is stuck in there. Makes it a real PITA to<br>move the files directory.
<br><font color="#888888"><br>Michelle<br><br></font></blockquote></div><br></div></div>Good point. This needs to be solved.<br><br>But, it will not address any themes or modules that are under site specific <br>directories (
e.g. sites/example.com/modules, sites/example.com/themes). 
<br>For those, the domain name is still in the path of all images, css, and js<br>files.<br><font color="#888888">-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a><br><a href="http://2bits.com" target="_blank">
http://2bits.com</a><br>Drupal optimization, development, customization and consulting.
</font></blockquote></div><br>