<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#333333">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Thanks. Is
there something like that to get me to the files directory?<br>
John<br>
</font></font><br>
Victor Kane wrote:
<blockquote
cite="mid:ff176450808020358n6bb1e369ue3ee136aafa868fa@mail.gmail.com"
type="cite">
<div dir="ltr"><code><span style="color: rgb(0, 0, 0);"><span
style="color: rgb(0, 0, 187);">Try the following:<br>
<br>
<?php base_path</span><span style="color: rgb(0, 119, 0);">() . </span><span
style="color: rgb(0, 0, 187);">path_to_theme</span><span
style="color: rgb(0, 119, 0);">() </span><span
style="color: rgb(0, 0, 187);">?></span></span>/box_bottom.png<br>
<br>
</code><code><img src="<span style="color: rgb(0, 0, 0);"><span
style="color: rgb(0, 0, 187);"><?php </span><span
style="color: rgb(0, 119, 0);">print </span><span
style="color: rgb(0, 0, 187);">base_path</span><span
style="color: rgb(0, 119, 0);">() . </span><span
style="color: rgb(0, 0, 187);">path_to_theme</span><span
style="color: rgb(0, 119, 0);">() . </span><span
style="color: rgb(221, 0, 0);">"/pic/mary.png"</span><span
style="color: rgb(0, 119, 0);">; </span><span
style="color: rgb(0, 0, 187);">?></span></span>" /></code><br>
<br>
Victor Kane<br>
<a moz-do-not-send="true" href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br>
<br>
<div class="gmail_quote">On Fri, Aug 1, 2008 at 10:28 PM, John
Horning <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:john@rivul.com">john@rivul.com</a>></span> 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 bgcolor="#ffffff" text="#333333">
Apparently Drupal does not allow you to reference absolute URL paths in
scripts, which is causing me a problem. I have a script in my
page.tpl.php that randomly picks images from a directory and displays
them in the header. This works when you're on the top level, but not
below since I'm using a relative path to get to the image directory.
Can anyone tell me the proper way of doing this?<br>
</div>
<br>
--<br>
[ Drupal support list | <a moz-do-not-send="true"
href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<br>
</blockquote>
</div>
<br>
</div>
<pre>No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-freetext" href="http://www.avg.com">http://www.avg.com</a>
Version: 8.0.138 / Virus Database: 270.5.10/1585 - Release Date: 8/1/2008 6:39 AM
</pre>
</blockquote>
</body>
</html>