PDA

View Full Version : Why does this work for Administrators but not for users?


azarl
06-24-2007, 09:07 AM
I'm trying to display two userfields in the postbits of a single forum only (234). I'm using:

<if condition="$forum['forumid'] == 234">
<div class="smallfont">$post[field6]<br>$post[field7]<br></div>
</if>

Inserted immediately after:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>

But it only displays for administrators. Any ideas please?

Thanks

Dismounted
06-25-2007, 06:31 AM
Is the field an Admin-only field?

Guest190829
06-25-2007, 06:34 AM
Yeah, make sure you do not have the field set to private in the Custom Field manager.

(You can check this in the AdminCP's Profile field manager.)

azarl
06-25-2007, 09:47 AM
Yes, that's the problem.

I don't want to make these public fields as they are personal details on a Club membership system. But I do want to display them either on a specific forum which is only open to my members or to the usergroup member.

Any ideas please?

Thanks

Roger

azarl
07-06-2007, 06:28 PM
Anybody?

EnIgMa1234
07-06-2007, 06:53 PM
Shouldn't it be $foruminfo[forumid]

Dismounted
07-07-2007, 06:27 AM
Yes, that's the problem.

I don't want to make these public fields as they are personal details on a Club membership system. But I do want to display them either on a specific forum which is only open to my members or to the usergroup member.

Any ideas please?

Thanks

Roger
Then make it public, it only shows when you actually put the code into templates....