Sorry for raising an old thread but I just have one question related to the plugin.
On my board, I have a custom profile field in the (classic) postbit and want to replace the content inside the div with something else for just one usergroup/user. I've tried using elseif to achieve this but I either return PHP errors or nothing's changed.
Thread in which I'm using: http://www.vaulthunters.com/showthread.php?19-Howdy
Here's my postbit_author_user template:
I put a second if statement to see if the code was correct. It is. It's the elseif statement giving me guff. :/
On my board, I have a custom profile field in the (classic) postbit and want to replace the content inside the div with something else for just one usergroup/user. I've tried using elseif to achieve this but I either return PHP errors or nothing's changed.
Thread in which I'm using: http://www.vaulthunters.com/showthread.php?19-Howdy
Here's my postbit_author_user template:
<div class="statpost">{$lang->postbit_posts} {$post['postnum']}</div>
<div class="statpost">{$lang->postbit_joined} {$post['userregdate']}</div>
<if $post['fid7'] then><div class="statpost">Class: {$post['fid7']}</div><elseif $post['usergroup] == "21" then><div class="statpost">Vendor: </div><else><div class="statpost">Group: {$usergroup['title']}</div></if>
<if $post['usergroup'] == "21" then><div class="statpost">Vendor: {$usergroup['title']}</div></if>
<div class="statpost">{$post['replink']}</div>
{$post['warninglevel']}<br />
<if $post['fid4'] then><div class="statpost">PSN: {$post['fid4']}</div></if>
<if $post['fid5'] then><div class="statpost">XBL: {$post['fid5']}</div></if>
<if $post['fid6'] then><div class="statpost">Steam ID: <a href="http://steamcommunity.com/id/{$post['fid6']}" target="_blank" rel="nofollow">{$post['fid6']}</a></div></if>
I put a second if statement to see if the code was correct. It is. It's the elseif statement giving me guff. :/