Not Solved PHP in Templates and Template Conditionals
Not Solved
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:
<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:&nbsp;{$post['fid7']}</div><elseif $post['usergroup] == "21" then><div class="statpost">Vendor:&nbsp;</div><else><div class="statpost">Group:&nbsp;{$usergroup['title']}</div></if>
        <if $post['usergroup'] == "21" then><div class="statpost">Vendor:&nbsp;{$usergroup['title']}</div></if>
	<div class="statpost">{$post['replink']}</div>
        {$post['warninglevel']}<br />
<if $post['fid4'] then><div class="statpost">PSN:&nbsp;{$post['fid4']}</div></if>
<if $post['fid5'] then><div class="statpost">XBL:&nbsp;{$post['fid5']}</div></if>
<if $post['fid6'] then><div class="statpost">Steam ID:&nbsp;<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. :/
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Glitch - 2012-10-08, 03:23 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 75 Guest(s)