MyBB Support

PHP Question

Submitted by Tropical, , Thread ID: 4976

Thread Closed

RE: PHP Question

OP
This post was last modified: 22-06-2015, 05:43 AM by Tropical
#3
22-06-2015, 05:16 AM
Kill Wrote:
@akay is good with mybb. I need to fiddle it omg

I think I did this code correct, i dunno..
PHP Code:
<if $usergroup ['gid'] == 11 then><class="btn">ALREADY UPGRADED</a><else><class="btn">BUY</a></if> 

I figured this out myself, it was:
PHP Code:
<if $mybb->user['usergroup'] == "11" then>
<
class="btn">ALREADY UPGRADED</a>

<elseif 
$mybb->user['usergroup'] == "9" then>
<
class="btn">BUY</a>
</if> 

Users browsing this thread: 2 Guest(s)