Based on what I understand you're trying to do, you do not need to use PHP to accomplish this.<div>Set "<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; ">" and the type "<front>" and "/blog/*" (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 "<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; ">" 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"><<a href="mailto:r.cahilig@gmail.com">r.cahilig@gmail.com</a>></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><code><br>To display in front page:<br><?php if (drupal_is_front_page()) : ?><br>
</code><br><br><code><br>To display in reverse:<br><?php if (!drupal_is_front_page()) : ?><br></code><br>in the "Page specific visibility settings"--->" Show if the following PHP code returns TRUE (PHP-mode, experts only). " but it doesn'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>