FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » custom tags display area and forum rank
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
custom tags display area and forum rank [message #158480] Thu, 26 February 2009 23:30 Go to previous message
Marticus   United States
Messages: 272
Registered: June 2002
Karma:
Senior Member
I really hate seeing the scrollbar when two or more custom tags exist for a user. I also really really hate seeing the forum rank there. Would much rather see it below the post count. This is a much cleaner display of rank and tags. It might be worth considering for inclusion into cvs if enough people find interest.

Change forum.css.tmpl:
div.ctags {
    overflow: hidden;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
    /* width: 100%; */
    /* height: 36px; */
}

Change drawmsg.tmpl: note the addition of
<br /><b>{MSG: posts_level}</b> {VAR: level_name}
--- drawmsg.tmpl.orig   2009-02-25 09:59:52.000000000 -0700
+++ drawmsg.tmpl    2009-02-26 16:20:07.000000000 -0700
@@ -118,11 +118,11 @@
 {SECTION: END}

 {SECTION: dmsg_tags}
-<div class="ctags">{VAR: level_name}{VAR: custom_tag}</div>
+<div class="ctags">{VAR: custom_tag}</div>
 {SECTION: END}

 {SECTION: dmsg_custom_tags}
-<br />{VAR: obj->custom_status}
+{VAR: obj->custom_status}<br />
 {SECTION: END}

 {SECTION: dmsg_no_custom_tags}
@@ -345,7 +345,7 @@
 <tr class="MsgR2"><td class="MsgR2" colspan="2"><table cellspacing="0" cellpadding="0" class="ContentTable">
 <tr class="MsgR2">
 {TEMPLATE-DATA: avatar}
-<td class="msgud">{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}{IF: !$hide_controls}{IF: $obj->flag_cc && $GLOBALS['FUD_OPT_3'] & 524288}&nbsp;&nbsp;<img src="images/flags/{VAR: obj->flag_cc}.png" border="0" width="16" height="11" title="{VAR: obj->flag_country}" alt="{VAR: obj->flag_country}"/>{ENDIFI}{IF: $obj->user_id}<br /><b>{MSG: posts_c}</b> {VAR: obj->posted_msg_count}<br /><b>{MSG: registered}</b> {TEMPLATE: dmsg_join_date} {TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}</td>
+<td class="msgud">{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}{IF: !$hide_controls}{IF: $obj->flag_cc && $GLOBALS['FUD_OPT_3'] & 524288}&nbsp;&nbsp;<img src="images/flags/{VAR: obj->flag_cc}.png" border="0" width="16" height="11" title="{VAR: obj->flag_country}" alt="{VAR: obj->flag_country}"/>{ENDIFI}{IF: $obj->user_id}<br /><b>{MSG: posts_c}</b> {VAR: obj->posted_msg_count}<br /><b>{MSG: posts_level}</b> {VAR: level_name}<br /><b>{MSG: registered}</b> {TEMPLATE: dmsg_join_date} {TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}</td>
 <td class="msgud">{TEMPLATE-DATA: dmsg_tags}</td>
 <td class="msgot">{TEMPLATE-DATA: dmsg_bd_il}{TEMPLATE-DATA: dmsg_im_row}{IF: !$hide_controls}{IF: ($obj->host_name && $o1 & 268435456)}<b>{MSG: from}</b> {VAR: obj->host_name}<br />{ENDIFI}{IF: ($b & 1048576 || $usr->md || $o1 & 134217728)}<b>{MSG: dmsg_ip}</b> <a href="{TEMPLATE: dmsg_ip_address_url}" target="_blank">{VAR: obj->ip_addr}</a>{ENDIFI}{ENDIFI}</td>
 </tr></table></td>

Change your language msg file somewhere around posts_c and make it say what you want. The white space is a tab or two. This file doesn't like single spaces:
posts_level:        Forum Rank:

[Updated on: Thu, 26 February 2009 23:31]

Report message to a moderator

[Message index]
 
Read Message
Read Message icon6.gif
Previous Topic: searching for substrings in words in message-search
Next Topic: DailyHaHa Plugin (embeddable games)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 04:00:03 GMT 2024

Total time taken to generate the page: 0.04761 seconds