| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5760|Reply: 3
Collapse the left

Add Online and Gender code

[Copy link]

 Palestine

Post time: 2011-12-20 13:35
| Show all posts |Read mode
  Online and Gender code

demo




Open 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 this 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="Male"> <img src="static/image/common/online.gif" title="Online" />
  5. <!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Female"> <img src="static/image/common/online.gif" title="Online" /><!--{else}--><img

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

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

  9. src="static/image/common/unknow.gif" title="Unknow"> <img src="static/image/common/offline.gif" title="Offline" /><!--{/if}--><!--{/if}--></span>
Copy the Code

upload this imges to static/image/common





This post contains more resources

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

x
Post time: 2011-12-20 14:01
| Show all posts
Edited by Andre13 at 2011-12-20 15:02

thanks you very good
In French langage

Online = En-Ligne (where) Online / EnLigne / Connecté
Offline = Hors-Ligne (where) Offline / HorsLigne / Déconnecté
Unknow = Inconnu
Male = Masculin
Female = Féminin
  1. <span class="y"><!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
  2. $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
  3. <!--{if $post['gender'] == 1}--><img src="static/image/common/male.gif" title="Masculin"> <img src="static/image/common/online.gif" title="En-Ligne" /><!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Féminin"> <img src="static/image/common/online.gif" title="En-Ligne" /><!--{else}--><img
  4. src="static/image/common/unknow.gif" title="Inconnu"> <img src="static/image/common/online.gif" title="En-Ligne" /><!--{/if}--><!--{else}--><!--{if $post['gender'] == 1}
  5. --><img src="static/image/common/male.gif" title="Masculin"> <img src="static/image/common/offline.gif" title="Hors-Ligne" /><!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Féminin"> <img src="static/image/common/offline.gif" title="Hors-Ligne" /><!--{else}--><img
  6. src="static/image/common/unknow.gif" title="Inconnu"> <img src="static/image/common/offline.gif" title="Hors-Ligne" /><!--{/if}--><!--{/if}--></span>
Copy the Code
;)



Comments

You are welcome  Post time 2011-12-20 14:53

 Russia

Post time: 2011-12-20 18:39
| Show all posts
Idea is good.
But the code is terrible

Must be rewritten....
Post time: 2011-12-24 02:05
| Show all posts
good
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-24 06:10 GMT+3 , Processed in 0.046114 sec., 9 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