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 :: Unread Messages :: Polls :: Message Navigator
| Unsubscribe from topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
custom tags display area and forum rank [message #158480] Thu, 26 February 2009 18:30 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
add to buddy list
ignore all messages by this user
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 18:31]

Report message to a moderator

icon6.gif  Re: custom tags display area and forum rank [message #159566 is a reply to message #158480] Thu, 11 June 2009 08:50 Go to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
add to buddy list
ignore all messages by this user
You don't think it would leave too much blank space in the middle?
And how would that affect the left and right aligned layouts?


"I'm a Witcher, I solve human problems; not always using a sword!"
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Thu Apr 24 00:23:23 EDT 2025

Total time taken to generate the page: 0.03579 seconds