MyBB Hacks

Full Version: Show / Hide Yahoo! ID Condition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
with "Custom Profile Fields" (in the forum index) I want to try show the online status ("YahooID" property of the staff only) belongs to the staff if they ("YahooID" property of the staff only) online and hide ("YahooID" property of the staff only) belongs to the staff if nothing online Or/And replace with "None"

PHP Code:
<div class="trow1 smalltext"><strong>Yahoo! Online</strong>
<br />
<if $mybb->user['fid4'] then>
<a href="ymsgr:sendIM?{$mybb->user['fid4']}">
<img src="http://opi.yahoo.com/online?u={$mybb->user['fid4']}&amp;m=g&amp;t=5" border="0"></a>
<else>
None
</if>
</div>


is this possible?
if possible, such as whether the code?
please correct my code if it is possible.

[attachment=1091]
Staff - Yahoo Online

[attachment=1092]
Staff - Yahoo Not Online

[attachment=1093]
Member - Yahoo! will not be displayed.

how do I do this with Thread Custom Fields and Php Templates in INDEX?
is it possible?
Reference URL's