mj1919 Publish time 2013-07-23 15:07

Online and Gender code

To show member's gender and online or offline situation as on image :

Change 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 the 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="Bay"> <img src="static/image/common/online.gif" title="Online" />
<!--{elseif $post['gender'] == 2}--><img src="static/image/common/female.gif" title="Bayan"> <img src="static/image/common/online.gif" title="Online" /><!--{else}--><img

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

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

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

and trasfer images to static/image/common


khalid Publish time 2013-07-23 15:43

thx you !!!

Andre13 Publish time 2013-07-25 10:22

hi,
good job!
thank you for share


Pages: [1]
View full version: Online and Gender code