MyBB Community Forums

Full Version: Hide YM Status If There Is No (staff) Users are Online
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
through this plugin, I want to try ... if No account staff of Yahoo Messenger users are online ... and display text such as (for example):

"no YM staff online"

<!-- php template -->
<if Yahoo then>
<div class="trow1 smalltext"><strong>Yahoo! Online</strong>
<br />

<!-- mybb code -->
<a href="ymsgr:SendIM?YOUR Yahoo ID">
<img border="0" src="http://opi.yahoo.com/online?u=YOUR Yahoo ID&amp;m=g&amp;t=2"></a>
<!-- mybb code -->

</div> 
<else>
<div class="trow1 smalltext"><strong>Staff Online</strong>
<br />
None
</div> 
</if>
<!-- php template -->

because of limited knowledge, I was not able to finish it. Please help. Big Grin

source:
Yahoo Messenger
BUMP


using the "Custom Profile Fields" I can modify. but still constrained because of the "status" remains visible Not Online (none) although I online (Yahoo!)

in logic, I want if there is online / active, the status (Yahoo!) will be displayed and if no one is online then it will not be displayed or none.

[attachment=36591]

please correct my code below  Confused

<div class="trow1 smalltext"><strong>Yahoo! Online</strong>
<br />
<if in_array($GLOBALS['mybb']->user['usergroup'], array(1,2,5,7,8)) 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> 
BUMP!!!

[attachment=36635]
Staff - Yahoo Online.

[attachment=36636]
Staff - Yahoo Not Online.

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

how do I do this with Thread Custom Fields and Php Templates in INDEX?
is it possible?  Sad
Need this to, can someone help?