2015-08-23, 08:47 PM
Hello,
I added a custom Postbit to my forums, the problem is it will always show, even if the user has left the entry blank.
My code in postbit_author_user template looks like this.
I'm pretty sure there needs to be some php executed somewhere that will hide this image from Postbits if it's blank.
The problem is, I'm not aware of the proper structure nor do I know where such php code should be executed from. I don't even know if this is the best method for doing what I want to achieve. I'm still learning and I'm not very experienced.
Any ideas? In advanced, thanks!
I added a custom Postbit to my forums, the problem is it will always show, even if the user has left the entry blank.
My code in postbit_author_user template looks like this.
{$lang->postbit_posts} {$post['postnum']}<br />
{$lang->postbit_threads} {$post['threadnum']}<br />
{$lang->postbit_joined} {$post['userregdate']}
{$post['replink']}{$post['profilefield']}{$post['warninglevel']}<br />
<a href="{$post['fid4']}"><img src="images/Rusted/steam.png"></a>
I'm pretty sure there needs to be some php executed somewhere that will hide this image from Postbits if it's blank.
Quote:if {$post['fid4']} == null
don't show image
The problem is, I'm not aware of the proper structure nor do I know where such php code should be executed from. I don't even know if this is the best method for doing what I want to achieve. I'm still learning and I'm not very experienced.
Any ideas? In advanced, thanks!