Add Online and Gender code
Online and Gender codedemo
Open template/default/forum/viewthread_node.htm
Find
<a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post</a>$authorverifys</div>
and just before paste this code:
<span class="y">
<!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[$post]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
$post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
<!--{if $post['gender'] == 1}--><img src="static/image/common/male.gif" title="Male"> <img src="static/image/common/online.gif" title="Online" />
<!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Female"> <img src="static/image/common/online.gif" title="Online" /><!--{else}--><img
src="static/image/common/unknow.gif" title="Unknow"> <img src="static/image/common/online.gif" title="Online" /><!--{/if}--><!--{else}--><!--{if $post['gender'] == 1}
--><img src="static/image/common/male.gif" title="Male"> <img src="static/image/common/offline.gif" title="Offline" />
<!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Female"> <img src="static/image/common/offline.gif" title="Offline" /><!--{else}--><img
src="static/image/common/unknow.gif" title="Unknow"> <img src="static/image/common/offline.gif" title="Offline" /><!--{/if}--><!--{/if}--></span>
upload this imges to static/image/common
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
<span class="y"><!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[$post]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
$post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
<!--{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
src="static/image/common/unknow.gif" title="Inconnu"> <img src="static/image/common/online.gif" title="En-Ligne" /><!--{/if}--><!--{else}--><!--{if $post['gender'] == 1}
--><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
src="static/image/common/unknow.gif" title="Inconnu"> <img src="static/image/common/offline.gif" title="Hors-Ligne" /><!--{/if}--><!--{/if}--></span>;)
Idea is good.
But the code is terrible :)
Must be rewritten.... :victory: good
Pages:
[1]