| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 8167|Reply: 2
Collapse the left

Online and Gender code

[Copy link]
Post time: 2013-07-23 15:07
| Show all posts |Read mode
Addon
Title: Online and Gender code
Version: ?
Author: ?
Author URL: http://www.discuz.eu/forum.php?mod=viewthread&tid=382&highlight=Online%2BGender%2Bcode
Description: To show member's gender and online or offline situation as on image
Discuz! X Version: X3 X2.5 
Language(s): no language needed
Create Date:
Last Update:
Screenshot:
To show member's gender and online or offline situation as on image :

Change template/default/forum/viewthread_node.htm

Find
  1. <a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post[author]</a>$authorverifys</div>
Copy the Code
and just before paste the code:
  1. <span class="y">
  2. <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -

  3. $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->

  4. <!--{if $post['gender'] == 1}--><img src="static/image/common/male.gif" title="Bay"> <img src="static/image/common/online.gif" title="Online" />
  5. <!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Bayan"> <img src="static/image/common/online.gif" title="Online" /><!--{else}--><img

  6. src="static/image/common/unknow.gif" title="Belirsiz"> <img src="static/image/common/online.gif" title="Online" /><!--{/if}--><!--{else}--><!--{if $post['gender'] == 1}

  7. --><img src="static/image/common/male.gif" title="Bay"> <img src="static/image/common/offline.gif" title="Offline" />
  8. <!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Bayan"> <img src="static/image/common/offline.gif" title="Offline" /><!--{else}--><img

  9. src="static/image/common/unknow.gif" title="Belirsiz"> <img src="static/image/common/offline.gif" title="Offline" /><!--{/if}--><!--{/if}--></span>
Copy the Code
change words : Bay : male
Bayan : female
Belirsiz : unknow

and trasfer images to static/image/common


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Palestine

Post time: 2013-07-23 15:43
| Show all posts
thx you !!!

Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1 Very nice!

View Rating Log

Post time: 2013-07-25 10:22
| Show all posts
hi,
good job!
thank you for share


Rate

Number of participants 1Rating +1 Collapse Reason
mj1919 + 1 Very nice!

View Rating Log

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 05:06 GMT+3 , Processed in 0.037756 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list