Help - Search - Members - Calendar
Full Version: IBF Logic / Report Button
Invision Power Services > Community Forums > Community General Chat
tomturd
Hi im wondering if its possible using IBF logic to allow the report this post button to only show for certain member groups? The code for the button is...

{$post['report_link']}

im guessing its possible but ive never used ibf logic before any ideas?
Michael P
CODE
<if="ipb.member['g_id'] == 3">
{$post['report_link']}
</if>


where 3 is the group ID of the member original.gif
If that doesnt work try without the { } thingies.
tomturd
thanks how could i include 2 member groups?

Does something like the following work?

<if="ipb.member['g_id'] == 3" || if="ipb.member['g_id'] == 4">
Michael P
put two of the statements? there is an else statement I think:

This should help original.gif

http://docs.invisionpower.com/kb/article.php?id=023

Just spotted I think u need to remove the $ symbols too
Chris Griego
<if="ipb.member['g_id'] == 3 || ipb.member['g_id'] == 4">

original.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.