Based on what I understand you&#39;re trying to do, you do not need to use PHP to accomplish this.<div>Set &quot;<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; border-collapse: collapse; color: rgb(34, 34, 34); ">Show on only the listed pages.<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial; font-size: small; ">&quot; and the type &quot;&lt;front&gt;&quot; and &quot;/blog/*&quot; (or whatever the path is) on two lines in the box.</span></span></div>
<div><font class="Apple-style-span" face="arial, Arial, Helvetica, sans-serif">Then do the same thing with &quot;<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; border-collapse: collapse; color: rgb(34, 34, 34); ">Show on every page except the listed pages.<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial, Arial, Helvetica, sans-serif; font-size: small; ">&quot; set.</span></span></font></div>
<div><font class="Apple-style-span" face="arial, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, Arial, Helvetica, sans-serif">Brian</font></div><div><br><br><div class="gmail_quote">
On Sun, Apr 25, 2010 at 4:17 PM, Richard Cahilig <span dir="ltr">&lt;<a href="mailto:r.cahilig@gmail.com">r.cahilig@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;">
Hi,<br><br>How do I display specific blocks in frontpage and blog page and to do it in reverse also. I tried putting these codes <br>&lt;code&gt;<br>To display in front page:<br>&lt;?php if (drupal_is_front_page()) : ?&gt;<br>

&lt;/code&gt;<br><br>&lt;code&gt;<br>To display in reverse:<br>&lt;?php if (!drupal_is_front_page()) : ?&gt;<br>&lt;/code&gt;<br>in the &quot;Page specific visibility settings&quot;---&gt;&quot;  Show if the following PHP code returns TRUE (PHP-mode, experts only). &quot; but it doesn&#39;t work.<br>

Your help is highly appreciated. Thank you very much.<br><br>Regards,<br><br>Richard R. Cahilig<br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br>
</div>