Try it. Do some debugging <div>print_r($path)</div><div>dsm($path)</div><div>etc.</div><div>Knock yourself out.<br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 11:40 PM, Chris McCreery <span dir="ltr">&lt;<a href="mailto:chris.mccreery@gmail.com">chris.mccreery@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Any downfall to using this?<div><br><div>$path = drupal_get_path_alias($_GET[&#39;q&#39;]); </div><div>if (strlen(strstr($path,&#39;yepp&#39;))&gt;0): ?&gt;<div>

<div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 10:12 PM, Victor Kane <span dir="ltr">&lt;<a href="mailto:victorkane@gmail.com" target="_blank">victorkane@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Would have to try it, but you might have to pass the drupal path through the <a href="http://api.drupal.org/api/function/drupal_get_path_alias/6" target="_blank">http://api.drupal.org/api/function/drupal_get_path_alias/6</a> function first, and then do a text search for yepp<div>





<br></div><div>Victor Kane</div><div><a href="http://awebfactory.com.ar" target="_blank">http://awebfactory.com.ar</a><br><br><div class="gmail_quote"><div><div></div><div>On Fri, Aug 27, 2010 at 11:07 PM, Khalid Baheyeldin <span dir="ltr">&lt;<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><div>On Fri, Aug 27, 2010 at 9:56 PM, Chris McCreery <span dir="ltr">&lt;<a href="mailto:chris.mccreery@gmail.com" target="_blank">chris.mccreery@gmail.com</a>&gt;</span> wrote:<br>





</div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
I am trying to do the following but having issues.<div><br></div><div>I would like to insert a specific div tag in my page.tpl.php when the url alias contains yepp for example when <a href="http://www.domain.com/yepp" target="_blank">www.domain.com/yepp</a> or <a href="http://www.domain.com/yepp/page1" target="_blank">www.domain.com/yepp/page1</a></div>








<div><br></div><div>If I try using arg(0) it just returns the internal system path &quot;node&quot;.</div></blockquote></div><div><br>There is more than one way of doing this. <br><br>Here is a simple one:<br><br>$a = explode(&#39;/&#39;, check_plain($_SERVER[&#39;REQUEST_URI&#39;]));<br>







if ($a[1] == &#39;yepp&#39;) {<br>

  // Go wild<br>

}<br><br></div></div>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br><a href="http://2bits.com" target="_blank">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>






Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>
<br></div></div>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org" target="_blank">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org" target="_blank">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div>-- <br>Chris McCreery<br>
</div></div>
<br>_______________________________________________<br>
themes mailing list<br>
<a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">http://lists.drupal.org/mailman/listinfo/themes</a><br>
<br></blockquote></div><br></div>