Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Show / Hide Yahoo! ID Condition
terzier Offline
Member
***
Posts: 90
Joined: Feb 2012
Post: #1
Show / Hide Yahoo! ID Condition
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:
1
2
3
4
5
6
7
8
9
<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.


Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
07-27-2016 01:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 90
Joined: Feb 2012
Post: #2
RE: Show / Hide Yahoo! ID Condition
   
Staff - Yahoo Online

   
Staff - Yahoo Not Online

   
Member - Yahoo! will not be displayed.

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

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
07-27-2016 03:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: