Username Color for X2.5
DemoFirst of all you should decide what the color every group will use:
How to set a group color
Then we have to hack existing template!
First :-
1- Open viewthread_node.htm file
if you use default style it founded in template\default\forum
othertemplate\yourstyle\forum
find <strong><a href="home.php?mod=space&uid=$post" target="_blank" class="xi2">$post</a></strong>replace with<strong><a href="home.php?mod=space&uid=$post" target="_blank" class="xi2"{if $post} style="color: $post"{/if}>$post</a></strong>2- in same file
search<div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post</a>$authorverifys</div>
</div>replace with<div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1"{if $post} style="color: $post"{/if}>$post</a>$authorverifys</div>
</div>3- open forumdisplay_list.htm file in same dic
find<!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread" c="1">$thread</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread]<!--{/if}-->replace with <!--{if $thread['authorid'] && $thread['author']}-->
<a href="home.php?mod=space&uid=$thread" c="1"{if $groupcolor[$thread]} style="color: $groupcolor[$thread];"{/if}>$thread</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread]<!--{/if}-->Done
after this usergroup color will apply on username :)
P.S.
this functionality was got from x3 but was shorten.
if you want to have a full functionality, just update to x3 (it have this built-in already)
Wrong section. Is this template or... hack? :) I think, that's second. static/image/common/user_online.gif kaaleth static/image/common/clock.gif 2013-8-24 01:28
Wrong section. Is this template or... hack?I think, that's second.
As you like . The hack applied into x2.5.
#160 can it works on discuz 3.0
that can solve this problem
while replying color is not done
http://codersclub.org/discuzx/forum.php?mod=viewthread&tid=3738&extra=page%3D1 static/image/common/user_online.gif vot static/image/common/clock.gif 2013-8-28 13:21
The hack applied into x2.5.
#160
pls applied in 3.1 and 3.2 also and pls fix this issue vot sir
http://codersclub.org/discuzx/fo ... &extra=page%3D1
Pages:
[1]