<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am almost there. Right now I have:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?php<BR>if(arg(0)==user &&
ctype_digit(arg(1)) && arg(2)!=edit) { <BR>return TRUE; <BR>} else {
<BR>return FALSE; <BR>}<BR>?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>which prevents the block from showing on
user/2/edit, etc. Is there a way I can check for the existence of arg(2) and not
show the block if it exists? That would eliminate user/2/edit, user/2/track,
user/2/contact and some other possibilities. I could manually alter my current
code to block out contact/track but I'd prefer a kill-all solution.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Neil</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=shai@content2zero.com href="mailto:shai@content2zero.com">Shai
Gluskin</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=support@drupal.org
href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, May 28, 2008 1:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [support] Block visibility
quandry</DIV>
<DIV><BR></DIV>Hi Neil,<BR><BR>I don't know if the UI for the block module
settings will allow regular expressions. I doubt it, but give it a try and
report back.<BR><BR>However, what will surely work is putting in your own php.
Have you noticed that radio for adding PHP to return "TRUE" to make block
visible? That's your answer.<BR><BR>Here's a code snippet that should get you
started:<BR><A
href="http://drupal.org/node/64135#page-visibility">http://drupal.org/node/64135#page-visibility</A><BR><BR>Here
is one that is a little more sophisticated which was designed for the Google
Analytics module... when to include the tracking code on a page -- totally
analogous to block visibility:<BR><A
href="http://drupal.org/node/261997">http://drupal.org/node/261997</A><BR><BR>Good
luck. And please add your snippet to the handbook page.<BR><BR>Shai<BR><BR>
<DIV class=gmail_quote>On Wed, May 28, 2008 at 5:57 AM, Neil: <A
href="http://esl-lounge.com">esl-lounge.com</A> <<A
href="mailto:neil@esl-lounge.com">neil@esl-lounge.com</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>I have a block which I show on a user's main
page, user/1, user/2, etc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have set block visibility to "only show on
pages" with user/* entered below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Unfortunately, it's also showing on
user/register, user/password.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't suppose I can use regular expressions
to make the wildcard ONLY numeric, can I? How would I get the block to show
on user/7 but not user/register?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2><BR><FONT
color=#888888>Neil</FONT></FONT></DIV></DIV><BR>--<BR>[ Drupal support list
| <A href="http://lists.drupal.org/"
target=_blank>http://lists.drupal.org/</A> ]<BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>-- <BR>[ Drupal support list | http://lists.drupal.org/
]</BLOCKQUOTE></BODY></HTML>