PDA

View Full Version : Using Custom profile Field


ajmcce
02-03-2007, 07:01 PM
.....
to allow users to set a meta refresh time on the search page.

am using the folling code but for the life of me i cannot get the custom field to return a value.



<if condition="$action == 'getnew'"><META HTTP-EQUIV="Refresh" CONTENT="<if condition="$userinfo['field7'] != ''">$userinfo[field7]<else />30</if>;URL=search.php?do=getnew"><else /></if>

<if condition="$action == 'getdaily'"><META HTTP-EQUIV="Refresh" CONTENT="<if condition="$userinfo['field7'] != ''">$userinfo[field7]<else />30</if>;URL=search.php?do=getdaily"><else /></if>


Hence the refresh defaults to 30 seconds. Am I caling this custom profile value incorrectly?


thanks.

Kirk Y
02-03-2007, 07:02 PM
Try $bbuserinfo instead of $userinfo.

You can also just say:
<if condition="$bbuserinfo[field7]">

Rather than:
<if condition="$bbuserinfo[field7] != ''">

ajmcce
02-03-2007, 08:22 PM
Perfect. Thanks! Now the users have a definable refresh rate on the search pages.

:-)