Display user ratio in user list, [Hack] TTClassic Beta4


Display user ratio in user list - TorrentTrader Forums /* * Cascading Style Sheet(CSS 467), for Invision Power Board 2.2.0 * Author: James A. Mathias, admin@leihu.com, http://www.1lotus.com * Copyright: 2005 Invision Power Services, all rights reserved * * All style attributes in alpha-numeric order starting from 0 * */ /* * ======================================== * global element styles * ======================================== */ html{ overflow-x: auto; /* fixes MSIE scrollbar bug DO NOT REMOVE, has no effect in Mozilla, or Opera */ } body{ background: #FFF; color: #222; font-family: Verdana, Tahoma, Arial, "Trebuchet MS", Sans-Serif, Georgia, Courier, "Times New Roman", Serif; font-size: 11px; line-height: 135%; margin: 0px; padding: 0px; /* required for Opera to have 0 margin */ text-align: center; /* centers board in MSIE */ } /* * ======================================== * Set up IPB table * ======================================== */ .ipbtable { width:100% } table.ipbtable, tr.ipbtable, td.ipbtable { /* required for text in tables, because tables do not inherit from body */ background: transparent; color: #222; font-size: 11px; line-height: 135%; } .ipbtable td, .divpad{ /* gives all tables faux cellpadding of 5px */ padding: 5px; } td.nopad{ /* allows some tables to have no padding on the td */ padding: 0; } /* Safari... */ th { text-align: left; } form{ display: inline; margin: 0; /* removes mystery form tag gapping */ padding: 0; /* removes mystery form tag gapping */ } img{ border: 0; /* makes sure linked images do not have a border */ vertical-align: middle; } /* * ======================================== * global hyperlink styles * ======================================== */ a:link, a:visited, a:active{ background: transparent; color: #222; text-decoration: underline; } a:hover{ background: transparent; color: #34498B; } /* * ======================================== * Main wrapper, this controls the overall width of the board in you browser view window. * ======================================== */ #ipbwrapper{ margin: 20px auto 20px auto; /* centers the box, no matter the overall width, also applies a 20px gap at the top and bottom of the board */ text-align: left; /* re_aligns text to left second part of two part MSIE centering workaround */ /* EDIT THIS TO CHANGE THE WIDTH OF THE BOARD -> 960px is a common fixed resolution size */ width: 98%; } /* * ======================================== * styles for pagination links * ======================================== */ .pagelink, .pagelinklast, .pagecurrent, .minipagelink, .minipagelinklast{ background: #F0F5FA; border: 1px solid #072A66; padding: 1px 3px 1px 3px; } .pagelinklast, .minipagelinklast{ background: #DFE6EF; } .pagecurrent{ background: #FFC9A5; } .minipagelink, .minipagelinklast{ border: 1px solid #C2CFDF; font-size: 10px; margin: 0 1px 0 0; } .pagelink a:active, .pagelink a:visited, .pagelink a:link, .pagelinklast a:active, .pagelinklast a:visited, .pagelinklast a:link, .pagecurrent a:active, .pagecurrent a:visited, .pagecurrent a:link, .minipagelink a:active, .minipagelink a:visited, .minipagelink a:link, .minipagelinklast a:active, .minipagelinklast a:visited, .minipagelinklast a:link{ text-decoration: none; } /* fake button effect for some links */ .fauxbutton{ background: #BFCDE0; border: 1px solid #072A66; font-size: 11px; font-weight: bold; padding: 4px; } .fauxbutton a:link, .fauxbutton a:visited, .fauxbutton a:active{ color: #222 !important; text-decoration: none; } .forumdesc, .forumdesc a:link, .forumdesc a:visited, .forumdesc a:active{ background: transparent; font-size: 10px; color: #666; line-height: 135%; margin: 2px 0 0 0; padding: 0; } /* =================================================================================== */ /* =================================================================================== */ /* =================================================================================== */ .searchlite { background-color:yellow; font-weight:bold; color: red; } .activeusers{ background: #FFF; border: 1px solid #072A66; color: #000; margin: 0px; padding: 1px; } .activeuserposting a:link, .activeuserposting a:visited, .activeuserposting a:active, .activeuserposting { font-style:italic; text-decoration: none; border-bottom:1px dotted black; } fieldset.search{ line-height: 150%; padding: 6px; } label{ cursor: pointer; } img.attach{ background: #808080 url(style_images/1/click2enlarge.gif) no-repeat top right; border: 1px solid #808080; margin: 0 2px 0 0; padding: 11px 2px 2px 2px; } .thumbwrap, .thumbwrapp, .fullimagewrap { border: 1px solid #072A66; margin: 2px; } .thumbwrapp{ border: 2px solid #660707; } .fullimagewrap{ background: #F5F9FD; text-align: center; margin: 5px 0 5px 0; padding: 5px; } .thumbwrap h4, .thumbwrapp h4{ background: #DDE6F2; border: 0 !important; border-bottom: 1px solid #5176B5 !important; color: #5176B5; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .thumbwrap p, .thumbwrapp p{ background: #EEF2F7 !important; border: 0 !important; border-top: 1px solid #5176B5 !important; margin: 0 !important; padding: 5px !important; text-align: left; } .thumbwrap p.alt, .thumbwrapp p.alt{ background: #DFE6EF !important; margin: 0 !important; padding: 5px !important; text-align: left; } .thumbwrapp p.pin{ background: #EFDFDF !important; text-align: center !important; } .thumbwrap img.galattach, .thumbwrapp img.galattach{ background: #FFF url(style_images/1/img_larger.gif) no-repeat bottom right; border: 1px solid #072A66; margin: 5px; padding: 2px 2px 10px 2px; } li.helprow{ margin: 0 0 10px 0; padding: 0; } ul#help{ padding: 0 0 0 15px; } .warngood, .warnbad{ color: #0B9500; font-weight: bold; } .warnbad{ color: #DD0000; } #padandcenter{ margin: 0 auto 0 auto; padding: 14px 0 14px 0; text-align: center; } #profilename{ font-size: 28px; font-weight: bold; } #photowrap{ padding: 6px; } #phototitle{ border-bottom: 1px solid #000; font-size: 24px; } #photoimg{ margin: 15px 0 0 0; text-align: center; } #ucpmenu, #ucpcontent{ background: #F5F9FD; border: 1px solid #345487; line-height: 150%; } #ucpmenu p{ margin: 0; padding: 2px 5px 6px 9px; } #ucpmenu a:link, #ucpmenu a:active, #ucpmenu a:visited{ text-decoration: none; } #ucpcontent{ width: auto; } #ucpcontent p{ margin: 0; padding: 10px; } .activeuserstrip{ background: #BCD0ED; padding: 6px; } /* Topic View elements */ .signature{ background: transparent; color: #339; font-size: 10px; line-height: 150%; } .postdetails{ font-size: 10px; line-height:140%; } .postcolor{ font-size: 12px; line-height: 160%; } .normalname{ color: #003; font-size: 12px; font-weight: bold; } .normalname a:link, .normalname a:visited, .normalname a:active{ font-size: 12px; } .post1, .bg1{ background: #F5F9FD; } .post2, .bg3{ background: #EEF2F7; } .row2shaded, .post1shaded { background-color: #DEDBE4 } .row4shaded, .post2shaded { background-color: #E3DFE7 } .row1{ background: #DFE6EF; } .row2{ background: #E4EAF2; } .rowhighlight{ background-color: #FFF9BA; } .darkrow1{ background: #BCD0ED; color: #3A4F6C; } .darkrow3{ background: #D1DCEB; color: #3A4F6C; } /* tableborders gives the white column / row lines effect */ .plainborder, .tablefill, .tablepad{ background: #F5F9FD; border: 1px solid #345487; } .tablefill, .tablepad{ padding: 6px; } .tablepad{ border: 0 !important; } .wrapmini{ float: left; line-height: 1.5em; width: 25%; } .pagelinks{ float: left; line-height: 1.2em; width: 35%; } .desc{ font-size: 11px; color: #434951; } .lastaction { font-size: 10px; color: #434951; } .edit{ font-size: 9px; } .thin{ border: 1px solid #FFF; border-left: 0; border-right: 0; line-height: 150%; margin: 2px 0 2px 0; padding: 6px 0 6px 0; } /* =================================================================================== */ /* =================================================================================== */ /* =================================================================================== */ /* * ======================================== * calendar styles * ======================================== */ .calmonths{ background: #F0F5FA; border: 1px solid #C2CFDF; font-size: 18px; font-weight: bold; margin: 5px 0 5px 0; padding: 8px; text-align: center; } .weekday{ font-size: 14px; font-weight: bold; } .calmonths a{ text-decoration: none; } .calday, .calweekday{ background: #DFE6EF; color: #666; font-size: 11px; font-weight: bold; margin: 0; padding: 4px; text-align: right; } .calweekday{ border-right: 1px solid #AAA; color: #222; font-size: 14px; padding: 6px; text-align: center; } .celltodayshaded, .celldateshaded, .cellblank, .celldate, .celltoday, .mcellblank, .mcelldate, .mcelltoday{ background: #EEF2F7; height: 100px; margin: 0; padding: 0; vertical-align: top; } .celltodayshaded, .celldateshaded { background: #E3DFE7; } .mcellblank, .mcelldate, .mcelltoday{ height: auto; } .cellblank, .mcellblank{ background: #C2CFDF; } .celltoday, .celltodayshaded, .mcelltoday{ border: 2px solid #8B0000; } .calranged { border: 2px outset #C2CFDF; background: #C2CFDF; padding:4px; } .calitem { border-bottom: 1px dotted #C2CFDF; padding:4px; } /* * ======================================== * form styles * ======================================== */ .input-warn, .input-green, .input-checkbox, input, textarea, select{ background: #FFF; border: 1px solid #4C77B6; color: #000; font-family: verdana, helvetica, sans-serif; font-size: 11px; margin: 5px; padding: 2px; vertical-align: middle; } select { margin: 0px; } .input-checkbox { border: none; } .input-warn, .input-warn-content { border: 1px solid #C00; } .input-ok, .input-ok-content { border: 1px solid #0C0; } .input-warn-content { padding: 4px; margin: 4px; background-color: #FCC; } .input-ok-content { padding: 4px; margin: 4px; background-color: #CFC; } .input-text { color: #900; } input.button{ margin: 0; width: auto; cursor: pointer; } optgroup option{ font-family: verdana, helvetica, sans-serif; font-size: 12px; } .codebuttons{ font-family: Verdana, Helvetica, Sans-Serif; font-size: 10px; vertical-align: middle; margin:2px; } .textarea, .searchinput, .button, .gobutton{ background: #FFF; border: 1px solid #4C77B6; color: #000; font-family: Verdana, Helvetica, Sans-Serif; font-size: 11px; padding: 2px; vertical-align: middle; } .button{ background: #DFE6EF; } .gobutton{ background: transparent; border: 0; color: #072A66; margin: 0; vertical-align: middle; } .radiobutton, .checkbox, .helpbox { border: 0; vertical-align: middle; background: transparent; } /* * class.formtable * * used for tabled forms * technically tables should not be used for form display * but, in the case of IPB a table is easier to work with * for the average webmaster, who has little to no CSS knowledge. * */ .formtable{ background: transparent; } .formtable td, .pformleft, .pformleftw, .pformright{ background:#F5F9FD; border: 1px solid #C2CFDF; border-bottom: 0; border-left: 0; font-weight: bold; margin: 1px 0 0 0; padding: 6px; width: 25%; } .formtable td.wider, .pformleftw, .pformright{ width: 40%; } .formtable td.formright, .pformright{ border-right: 0px; font-weight: normal; width: auto; } .formtable td.formtitle, .formsubtitle{ background: #D1DCEB; border: 1px solid #9FB9D4; border-bottom: 0; border-left: 0; border-right: 0; font-weight: normal; } .formsubtitle{ border: 0; color: #3A4F6C; font-weight: bold; padding: 5px; } .formtable td.formstrip{ background: #DDE8F2; border: 1px solid #9FB9D4; border-left: 0; border-right: 0; font-weight: normal; } /* * ======================================== * new style quote and code wrappers MATT's DESIGN * ======================================== */ .quotetop{ background: #E4EAF2 url(style_images/1/css_img_quote.gif) no-repeat right; border: 1px dotted #000; border-bottom: 0; border-left: 4px solid #8394B2; color: #000; font-weight: bold; font-size: 10px; margin: 2px auto 0 auto; padding: 3px; } .quotemain{ background: #FAFCFE; border: 1px dotted #000; border-left: 4px solid #8394B2; border-top: 0; color: #465584; padding: 4px; margin: 0 auto 0 auto; } .codetop, .sqltop, .htmltop{ background: #FDDBCC url(style_images/1/css_img_code.gif) no-repeat right; color: #000; font-weight: bold; margin: 0 auto 0 auto; padding: 3px; } .codemain, .sqlmain, .htmlmain{ background: #FAFCFE; border: 1px dotted #000; color: #465584; font-family: Courier, "Courier New", Verdana, Arial; margin: 0 auto 0 auto; padding: 2px; } /* * ======================================== * old school quote and code styles - backwards compatibility * ======================================== */ #QUOTE, #CODE{ background: #FAFCFE; border: 1px solid #000; color: #465584; font-family: Verdana, Arial; font-size: 11px; padding: 2px; white-space: normal; } #CODE{ font-family: Courier, "Courier New", Verdana, Arial; } /* * ======================================== * All New Styles * ======================================== */ .cleared{ clear: both; } .borderwrap, .borderwrapm{ /* this will affect the outlining border of all the tables and boxes through-out the skin. */ background: #FFF; border: 1px solid #072A66; padding: 0px; margin: 0px; } .borderwrapm{ margin: 5px; } .borderwrap h3, .maintitle, .maintitlecollapse{ background: url(style_images/1/tile_cat.gif); border: 1px solid #FFF; border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .maintitle td { color: #FFF; font-size: 12px; font-weight: bold; } .maintitlecollapse{ border: 1px solid #FFF; } .maintitle p, .maintitlecollapse p, .formsubtitle p{ background: transparent !important; border: 0 !important; margin: 0 !important; padding: 0 !important; } .maintitle p.expand, .maintitle p.goto, .maintitlecollapse p.expand, .formsubtitle p.members{ float: right; width: auto !important; } .maintitle a:link, .maintitle a:visited, .maintitlecollapse a:link, .maintitlecollapse a:visited{ background: transparent; color: #FFF; text-decoration: none; } .maintitle a:hover, .maintitle a:active, .maintitlecollapse a:hover, .maintitlecollapse a:active{ background: transparent; color: #F1F1F1; } table th, .borderwrap table th, .subtitle, .subtitlediv, .postlinksbar{ background: transparent url(style_images/1/tile_sub.gif); border-bottom: 1px solid #5176B5; color: #3A4F6C; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0; padding: 5px; } .subtitlediv{ border: 1px solid #FFF; border-bottom: 1px solid #5176B5; text-align: right; } .borderwrap table th a:link, .subtitle a:link, .subtitlediv a:link, .borderwrap table th a:visited, .subtitle a:visited, .subtitlediv a:visited, .borderwrap table th a:active, .subtitle a:active, .subtitlediv a:active, .borderwrap table th a:hover, .subtitle a:hover, .subtitlediv a:hover{ background: transparent; color: #3A4F6C; text-decoration: none; } .borderwrap h4{ background: #DDE6F2; border: 1px solid #FFF; border-bottom: 1px solid #5176B5; border-top: 1px solid #5176B5; color: #5176B5; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .borderwrap p{ background: #F9F9F9; border: 1px solid #CCC; margin: 5px; padding: 10px; text-align: left; } td.formbuttonrow, .pformstrip, .borderwrap p.formbuttonrow, .borderwrap p.formbuttonrow1{ background: #D1DCEB !important; border: 1px solid #FFF; border-top: 1px solid #5176B5; margin: 0px !important; padding: 5px !important; text-align: center; } td.formbuttonrow{ border-bottom: 0; border-left: 0; border-right: 0; } .borderwrap p.formbuttonrow1{ background: #F9F9F9 !important; border: 0; border-top: 1px solid #CCC; } .bar, .barb, .barc{ background: #DFE6EF; border: 1px solid #FFF; } .barc{ border-bottom: 0; } .bar p, .barb p, .barc p{ background: transparent; border: 0; color: #222; font-size: 11px; margin: 0; padding: 5px; text-align: left; } .barb p{ text-align: right; } .bar p.over, .bar p.overs, .barc p.over, .barc p.overs{ float: right; } .barb p.over, .barb p.overs{ float: left; } .bar p.overs, .barb p.overs, .barc p.overs{ position: relative; top: 5px; } .catend{ background: #8394B2; color: #000; font-size: 1px; height: 5px; } .newslink{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 0; width: 100%; } .newslink td{ color: #222; font-size: 10px; padding: 5px 5px 5px 10px; } .newslink span{ background: transparent; color: #072A66; font-style: italic; font-weight: normal; } .newslink input{ background: #FFF; border: 1px solid #999; color: #072A66; font-size: 10px; padding: 3px; vertical-align: middle; width: auto; } .newslink input.button{ background: transparent; border: 0; color: #072A66; vertical-align: middle; } .fieldwrap{ background: #F9F9F9; border: 1px solid #CCC; border-top: 0; margin: 5px; padding: 0; text-align: left; } .fieldwrap h4{ background: #EEE; border: 1px solid #CCC; border-left: 0; border-right: 0; color: #444; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .errorwrap { background: #F2DDDD; border: 1px solid #992A2A; border-top: 0; margin: 5px; padding: 0; } .errorwrap h4 { background: #E3C0C0; border: 1px solid #992A2A; border-left: 0; border-right: 0; color: #992A2A; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .errorwrap p { background: transparent; border: 0; color: #992A2A; margin: 0; padding: 8px; } .ruleswrap{ background: #F2DDDD; border: 1px solid #992A2A; color: #992A2A; margin: 5px 0 5px 0; padding: 5px; } #redirectwrap{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 200px auto 0 auto; text-align: left; width: 500px; } #redirectwrap h4{ background: #D0DDEA; border-bottom: 1px solid #C2CFDF; color: #3A4F6C; font-size: 14px; margin: 0; padding: 5px; } #redirectwrap p{ margin: 0; padding: 5px; } #redirectwrap p.redirectfoot{ background: #E3EBF4; border-top: 1px solid #C2CFDF; text-align: center; } #gfooter{ background: #8394B2; margin: 5px 0 5px 0; padding: 0; width: 100%; } #gfooter td{ color: #FFF; font-size: 10px; padding: 4px; } #gfooter a:link, #gfooter a:visited{ color: #FFF; } #logostrip{ background: #3860BB url(style_images/1/tile_back.gif); border: 1px solid #FFF; height: 68px; margin: 0; padding: 0; } #logographic{ background: transparent url(style_images/1/logo4.gif) no-repeat left; height: 68px; margin: 0; padding: 0; } #submenu{ background: transparent url(style_images/1/tile_sub.gif); border: 1px solid #FFF; border-top: 0; color: #3A4F6C; margin: 0; height: 29px; text-align: right; } .ipb-top-left-link, .ipb-top-right-link { background: transparent url(style_images/1/tile_sub-lite.gif); float: right; font-size: 10px; font-weight: bold; letter-spacing: 0.5px; margin: 0px; padding: 7px 0 7px 0; width: auto; border-left: 1px solid #dce3ee; } .ipb-top-left-link { float: left; border-left: 0px; border-right: 1px solid #dce3ee; } .ipb-top-left-link a:link, .ipb-top-left-link a:visited, .ipb-top-right-link a:link, .ipb-top-right-link a:visited { background: transparent; color: #3A4F6C; padding: 0 6px 0 6px; text-decoration: none; } .ipb-top-left-link a:hover, .ipb-top-left-link a:active, .ipb-top-right-link a:hover, .ipb-top-right-link a:active { background: transparent; color: #5176B5; } #userlinks, #userlinksguest{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 5px 0 5px 0; padding: 0 5px 0 5px; } #userlinksguest{ background: #F4E7EA; border: 1px solid #986265; } #userlinks p, #userlinksguest p{ background: transparent !important; border: 0 !important; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0 !important; padding: 7px 0 7px 0; text-align: right; } #userlinks p, #userlinksguest p{ font-weight: normal; letter-spacing: 0; } #userlinksguest p.pcen{ text-align: center; } #userlinks p.home, #userlinksguest p.home{ float: left; } #navstrip{ background: transparent; color: #999; font-size: 12px; font-weight: bold; margin: 0 0 5px 0; padding: 14px 0px 8px 0px; } #navstrip a:link, #navstrip a:visited{ background: transparent; color: #222; text-decoration: none; } #navstrip a:hover, #navstrip a:active{ background: transparent; color: #5176B5; } .toplinks{ background: transparent; color: #000; margin: 0; padding: 0 0 5px 0; text-align: right; } .toplinks span{ background: #F0F5FA; border: 1px solid #C2CFDF; border-bottom: 0; color: #000; font-size: 10px; font-weight: bold; margin: 0 10px 0 0; padding: 5px; } .copyright{ background: #EEE; font-size: 11px; margin: 0 0 5px 0; padding: 8px; } /* * ======================================== * print page styles * ======================================== */ #print{ margin: 20px auto 20px auto; padding: 0; text-align: left; width: 85%; } #print h1, #print h2, #print h3, #print h4, #print p{ color: #036; font-size: 18px; font-weight: bold; margin: 0; padding: 8px; } #print h2, #print h3, #print p{ border-bottom: 1px solid #999; font-size: 11px; font-weight: normal; } #print h3{ background: #F5F5F5; font-size: 12px; font-weight: bold; margin: 0 0 10px 0; } #print h4{ background: #F9F9F9; font-size: 11px; } #print p{ margin: 0 0 5px 0; padding: 10px; } #print p.printcopy{ border: 0; color: #000; text-align: center; } .dny-edit-title { border:0px; padding:3px; margin:0px; background: #D1DCEB; color: #3A4F6C; } /* ======================================== */ /* TABS /* ======================================== */ .tabon { border-top:1px solid #999; border-left:1px solid #999; border-right:1px solid #999; background-color:#FFF; padding:8px; padding-bottom:9px; font-size:10px; float:left; width:auto; margin-top:3px; } .taboff { border-top: 1px solid #777; border-left: 1px solid #777; border-right: 1px solid #777; background-color: #B5C3D9; color: #333; padding: 8px; font-size:10px; float: left; width: auto; margin-top:3px; } .tabon a:link, .tabon a:visited, .tabon a:active { text-decoration:none; color: #000; } .taboff a:link, .taboff a:visited, .taboff a:active { text-decoration:none; color: #333; } .mya-back { background: #072A66; margin:1px; padding: 1px; } .mya-content { background: #FFF; padding:8px; margin: 1px; border: 1px solid #777; } .mya-content-tbl { background: #F0F5FA; border: 1px solid #777; text-align:left; font-size:10px; white-space:nowrap; margin:1px; } .mya-fieldwrap { background: transparent; margin-top: 2px; margin-bottom: 2px; padding: 4px; border: 1px solid #C5C7CD; -moz-border-radius: 5px; width: auto; display: block; } /* -------------------------------- */ /* Create PM box defaults */ /* -------------------------------- */ .iframeshim { position:absolute; display:none; background: #FFF; border:0px; width:auto; height:auto; } /* -------------------------------- */ /* Experimental */ /* -------------------------------- */ .popupmenu, .popupmenu-new { background: #F0F5FA; border: 1px solid #3A4F6C; text-align:left; font-size:10px; white-space:nowrap; /*padding:3px 5px 3px 3px;*/ /*width:300px;*/ } .popupmenu-item { padding: 5px; /*margin-top:4px;*/ white-space: nowrap; border-bottom: 1px solid #C2CFDF; color: #000000; font-weight: normal; } .popupmenu-item-last { padding: 5px; /*margin-top:4px;*/ white-space: nowrap; color: #000000; font-weight: normal; } .popmenubutton-new, .popmenubutton { width:120px; white-space:nowrap; background-color: #C2CFDF; border:1px solid #3A4F6C; color: #3A4F6C; font-weight:bold; float:right; height:18px; text-align:center; margin:0px; font-size:11px; padding:3px; } .popmenubutton-new { float:none; width:auto; text-align:left; height:auto; padding:3px; font-weight:normal; background-color:#EEF2F7; background-image: url(style_images/1/menu_action_down-padded.gif); background-repeat: no-repeat; background-position: right; } .popmenubutton-new-out { padding:4px; } .popupmenu-new { background-color: #DFE6EF; } .popmenubutton a:link, .popmenubutton a:visited, .popmenubutton-new a:link, .popmenubutton-new a:visited, .popupmenu-item a:link, .popupmenu-item a:visited, .popupmenu-item-last a:link, .popupmenu-item-last a:visited { color: #3A4F6C; text-decoration: none; } .popmenubutton a:hover, .popmenubutton-new a:hover, .popupmenu-item a:hover, .popupmenu-item-last a:hover { color: #5176B5; text-decoration: none; } .popupmenu-category { background: transparent url(style_images/1/tile_sub.gif); border-top: 1px solid #5176B5; border-bottom: 1px solid #5176B5; color: #3A4F6C; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0; padding: 5px; } /* -------------------------------- */ /* Loading box /* -------------------------------- */ #loading-layer-inner { width:220px; height:28px; padding:18px 10px 10px 10px; text-align:center; color: #000; border: 1px solid; border-color:#CCC #666 #666 #CCC; background-color: #FCF8C7; } /* -------------------------------- */ /* Message in a bo(x|ttle) /* -------------------------------- */ #ipd-msg-wrapper { display: none; width: 220px; } #ipd-msg-inner { width:100%; height:45px; padding: 6px 4px 4px 4px; margin: 0px; text-align:center; color: #000; border: 1px solid; border-color:#ccc #666 #666 #ccc; background-color: #FCF8C7; filter:alpha(opacity=75); opacity:.75 } #ipd-msg-title { width: 100%; height:20px; margin: 0px; padding: 6px 4px 4px 4px; background: transparent url(style_images/1/css_pp_header.gif); border: 1px solid #3A4F6C; border-bottom: 0px; color: #FFF; } .linked-image { margin: 0px; padding: 0px; border: 0px; } .resized-linked-image { margin: 1px 0px 0px 0px; padding: 0px; background-color: #000; border: 0px; color: #FFF; font-size: 10px; width: auto; -moz-border-radius-topleft: 7px; -moz-border-radius-topright: 7px; } .resized-linked-image-zoom { width: 200px; height: 30px; filter:alpha(opacity=85); opacity:.85; background-color: #FFF; padding-top: 6px; padding-left: 5px; top: 0px; left: 0px; position: absolute; display: none; } /* -------------------------------- */ /* Edit post reason /* -------------------------------- */ .post-edit-reason { background: #E7EAEF; margin-top: 9px; margin-bottom: 0px; padding: 4px; color: #333; font-size: 10px; border: 1px solid #C5C7CD; -moz-border-radius: 5px; width: auto; display: block; } /* -------------------------------- */ /* Personal Profile /* -------------------------------- */ .pp-name { background: #F0F5FA; border: 1px solid #C2CFDF; margin: 0px; padding: 10px; } .pp-name h3 { margin:0px; padding:0px 0px 5px 0px; font-size:24px; } .pp-header { background: transparent url(style_images/1/tile_sub.gif); color: #3A4F6C; font-size: 10px; font-weight: bold; margin: 0px 0px 1px 0px; padding: 5px; } .pp-title { background: url(style_images/1/css_pp_header.gif); border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .pp-datebox { text-align: center; background: #FFFFFF; border: 1px solid #555555; padding: 4px; margin: 0px; font-size:18px; font-weight:bold; line-height: 100%; letter-spacing: -1px; float:right; width: auto; } .pp-datebox em { color: #AAA; font-weight: normal; font-style: normal; } .pp-contentbox-back { background-image: url(style_images/1/folder_profile_portal/pp-css-contentblock.gif); background-repeat: repeat-x; background-color: #ACBFD9; padding: 6px; } .pp-contentbox-entry, .pp-contentbox-entry-noheight, .pp-contentbox-entry-noheight-mod, .pp-contentbox-entry-noheight-sel { background-color: #EEF2F7; border: 1px solid #888888; line-height: 140%; padding: 8px; margin-bottom: 6px; height: 200px; overflow: auto; overflow-x: auto; } .pp-contentbox-entry-noheight-sel { background-color:#FCECCD; } .pp-contentbox-entry-noheight-mod { background-color:#FDF1DA; } .pp-contentbox-entry-noheight, .pp-contentbox-entry-noheight-mod, .pp-contentbox-entry-noheight-sel { height: auto; margin-bottom: 1px; } .pp-image-thumb-wrap, .pp-image-thumb-wrap-floatright, .pp-image-mini-wrap, .pp-image-mini-wrap-floatright { width: 52px; height: 52px; text-align: center; background: #FFFFFF; border: 1px solid #555555; padding: 4px; margin-top: auto; margin-bottom: auto; } .pp-image-mini-wrap, .pp-image-mini-wrap-floatright { width: 27px; height: 27px; margin-top: auto; margin-bottom: auto; } .pp-image-thumb-wrap-floatright, .pp-image-mini-wrap-floatright { float:right; } .pp-tiny-text { color: gray; font-size: 10px; } .pp-mini-content-entry, .pp-mini-content-entry-noheight, .pp-mini-entry-noheight-shaded { background-color: #F5F9FD; padding: 6px; border-bottom: 1px dotted #555555; clear:both; width: auto; height: 60px; } .pp-mini-entry-noheight-shaded { background-color: #E3DFE7; } .pp-mini-content-entry-noheight, .pp-mini-entry-noheight-shaded { height: auto; } .pp-tabclear, .pp-maintitle { background: url(style_images/1/css_pp_header.gif); border: 1px solid #FFF; border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .pp-tabclear { border:0px; border-right: 1px solid #072A66; border-left: 1px solid #072A66; } .pp-tabon { border-top:1px solid #3363A1; border-left:1px solid #072A66; border-right:1px solid #072A66; background-color:#6696D6; color:#FFFFFF; padding:8px; float:left; width:auto; background-image: url(style_images/1/css_pp_tab_on.gif); background-repeat: repeat-x; background-position: left bottom; margin-top:3px; font-size:10px; } .pp-taboff, .pp-tabshaded { border-top: 1px solid #759BC7; border-left: 1px solid #759BC7; border-right: 1px solid #759BC7; background-color: #3363A1; color: #3363A1; padding:8px; float: left; width: auto; background-image: url(style_images/1/css_pp_tab_off.gif); background-repeat: repeat-x; background-position: left bottom; margin-top:3px; font-size:10px; } .pp-tabshaded { background-image: url(style_images/1/css_pp_tab_shaded.gif); background-repeat: repeat-x; background-position: left bottom; color: #516795; border-top: 1px solid #7f9BBC; border-left: 1px solid #7f9BBC; border-right: 1px solid #7f9BBC; } .pp-tabon a:link, .pp-tabon a:visited, .pp-tabon a:active { text-decoration:none; color: #FFFFFF; } .pp-taboff a:link, .pp-taboff a:visited, .pp-taboff a:active, .pp-tabshaded a:link, .pp-tabshaded a:visited, .pp-tabshaded a:active { text-decoration:none; color: #3363A1; } .pp-tabwrap { height: 34px; margin:0px; padding:0px; } @import url( "http://www.torrenttrader.org/style_images/1/folder_editor_images/css_rte.css" ); // // Features Forums SourceForge Download Premium Support Custom Services VBTT VBTT Download Help Search Members Calendar Search this forum only? More Search Options ipsmenu.register( "ipb-tl-search", 'document.getElementById("ipb-tl-search-box").focus();' ); gbl_check_search_box(); [X] My Assistant Loading. Please Wait...   Site Message (Message will auto close in 2 seconds) Logged in as: small_bigguy ( Log Out ) My Controls · View New Posts · My Assistant · My Friends · 0 New Messages  TorrentTrader Forums > TorrentTrader PREMIUM > PREMIUM Hacks & Modifications //  Posting Rules Please remember that all hacks and modifications found in the premium area are for premium members only.DO NOT DISTRIBUTE!

   Display user ratio in user list, [Hack] TTClassic Beta4 Options nightmare View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-8718", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Feb 27 2006, 07:01 PM Post #1 Advanced Member Group: Premium Posts: 1,138 Joined: 3-October 05 From: PT. Lisbon Member No.: 93 This hack make the ratio of each user appear in userlist and its onli avalaible to Admins, Smoderators, Moderators.Edit your file "extras-users.php"Search for:CODEprint("<tr><td class=ttable_head align=left>" . USERNAME . "</td><td class=ttable_head>" . REGISTERED . "</td><td class=ttable_head>" . LAST_ACCESS . "</td><td class=ttable_head>" . RANK . "</td><td class=ttable_head>Ratio</td><td class=ttable_head>" . COUNTRY . "</td></tr>\n");Replace by:CODEprint("<tr><td class=ttable_head align=left>" . USERNAME . "</td><td class=ttable_head>" . REGISTERED . "</td><td class=ttable_head>" . LAST_ACCESS . "</td><td class=ttable_head>" . RANK . "</td>");//////////////////RATIO HACK by Nightmare///////////////////////////////if (get_user_class() >= UC_JMODERATOR) {print("<td class=ttable_head>Ratio</td>");}print("<td class=ttable_head>" . COUNTRY . "</td></tr>\n");///////////////END RATIO HACK by Nightmare//////////////////////////////Serach for:CODEprint("<tr><td class=ttable_col1 align=left><a href=account-details.php?id=$arr[id]>" .($arr["class"] > 1 ? "" : "")."<b>$arr[username]</b></a>" .($arr["donated"] > 0 ? "<img src=$SITEURL/images/star.gif border=0 alt='Donated'>" : "")."</td>" .  "<td align=\"center\" class=ttable_col2>$arr[added]</td><td align=\"center\" class=ttable_col1>$arr[last_access]</td>".    "<td class=ttable_col2 align=center>" . get_user_class_name($arr["class"]) . "</td><td>R</td>$country</tr>\n");}Replace with:CODEecho"<tr><td class=ttable_col1 align=left><a href=account-details.php?id=$arr[id]>" .($arr["class"] > 1 ? "" : "")."<b>$arr[username]</b></a>" .($arr["donated"] > 0 ? "<img src=$SITEURL/images/star.gif border=0 alt='Donated'>" : "")."</td>" .  "<td align=\"center\" class=ttable_col2>$arr[added]</td><td align=\"center\" class=ttable_col1>$arr[last_access]</td>".    "<td class=ttable_col2 align=center>" . get_user_class_name($arr["class"]) . "</td>";/////////////////RATIO HACK by Nightmare/////////////////////////////  if (get_user_class() >= UC_JMODERATOR) {    $res2 = mysql_query("SELECT downloaded,uploaded FROM users");    $arr2 = mysql_fetch_assoc($res2);    if ($arr["downloaded"] > 0)    {      $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);      $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";    }    else      if ($arr["uploaded"] > 0)        $ratio = "Inf.";      else        $ratio = "---";    /////////////////END RATIO HACK///////////////////////////////////////    echo"<td class=ttable_col1 align=center>$ratio</td>";}echo"$country</tr>\n";}Obviously you can change in CODEif (get_user_class() >= UC_JMODERATOR) { the ">=UC_JMODERATOR" by what you want, or simply remove it if you want the ratio showed to all users.Cheers --------------------   giugiu77 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-8904", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Mar 5 2006, 12:05 PM Post #2 Advanced Member Group: Premium Posts: 142 Joined: 19-January 06 From: PARIS Member No.: 1,340 I noticed a problem with flags (COUNTRY) displayIf you code: if (get_user_class() <= UC_JMODERATOR) {(because the most interesting I think is to have ratio for class=0)=> for the moderators and admins, the flag is displayed on ratio column and no ratio is displayedThen if you want to display ratio for all members in the list, then you have to comment the test of the class (and the last "}" ) : in this case ratio is displayed well but flags are not displayed anymore...   giugiu77 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-8907", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Mar 5 2006, 12:47 PM Post #3 Advanced Member Group: Premium Posts: 142 Joined: 19-January 06 From: PARIS Member No.: 1,340 another thing,You tell to search, in extra-users.php :CODEprint("<tr><td class=ttable_head align=left>" . USERNAME . "</td><td class=ttable_head>" . REGISTERED . "</td><td class=ttable_head>" . LAST_ACCESS . "</td><td class=ttable_head>" . RANK . "</td><td class=ttable_head>Ratio</td><td class=ttable_head>" . COUNTRY . "</td></tr>\n");but we can't find it... because there was no "Ratio" displayed before ...   giugiu77 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-8911", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Mar 5 2006, 01:17 PM Post #4 Advanced Member Group: Premium Posts: 142 Joined: 19-January 06 From: PARIS Member No.: 1,340 Here is the whole script extra-users.php if you want to add ratio display for all members in "members list" :CODE<?//// - Theme And Language Updated 26.Nov.05ob_start();require "backend/functions.php";dbconn();loggedinorreturn();$search = trim($HTTP_GET_VARS['search']);$class = $HTTP_GET_VARS['class'];if ($class == '-' || !is_valid_id($class))  $class = '';if ($search != '' || $class){  $query = "username LIKE " . sqlesc("%$search%") . " AND status='confirmed'";  $q = 'search=' . htmlspecialchars($search);}else{    $letter = trim($_GET["letter"]);  if (strlen($letter) > 1)    die;  if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false)    $query = "status='confirmed'";  else      $query = "username LIKE '$letter%' AND status='confirmed'";  $q = "letter=$letter";}if ($class){  $query .= " AND class=$class";  $q .= '&class=$class';}stdhead("" . USERS . "");begin_frame("" . MEMBERS . "", center);print("<br /><form method=get action=?>\n");print("" . SEARCH . ": <input type=text size=30 name=search>\n");print("<select name=class>\n");print("<option value='-'>(any class)</option>\n");for ($i = 0;;++$i){    if ($c = get_user_class_name($i))   print("<option value=$i" . ($class && $class == $i ? " selected" : "") . ">$c</option>\n");    else   break;}print("</select>\n");print("<input type=submit value='". SEARCH . "'>\n");print("</form>\n");print("<p>\n");print("<a href=extras-users.php><b>" . ALL . "</b></a> - \n");for ($i = 97; $i < 123; ++$i){    $l = chr($i);    $L = chr($i - 32);    if ($l == $letter)    print("<b>$L</b>\n");    else    print("<a href=?letter=$l><b>$L</b></a>\n");}print("</p>\n");$page = $_GET['page'];$perpage = 100;$res = mysql_query("SELECT COUNT(*) FROM users WHERE $query") or sqlerr();$arr = mysql_fetch_row($res);$pages = floor($arr[0] / $perpage);if ($pages * $perpage < $arr[0])  ++$pages;if ($page < 1)  $page = 1;else  if ($page > $pages)    $page = $pages;for ($i = 1; $i <= $pages; ++$i)  if ($i == $page)    $pagemenu .= "$i\n";  else    $pagemenu .= "<a href=?$q&page=$i>$i</a>\n";if ($page == 1)  $browsemenu .= "";//  $browsemenu .= "[Prev]";else  $browsemenu .= "<a href=?$q&page=" . ($page - 1) . ">[Prev]</a>";$browsemenu .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";if ($page == $pages)  $browsemenu .= "";//  $browsemenu .= "[Next]";else  $browsemenu .= "<a href=?$q&page=" . ($page + 1) . ">[Next]</a>";$offset = ($page * $perpage) - $perpage;$res = mysql_query("SELECT * FROM users WHERE $query ORDER BY username LIMIT $offset,$perpage") or sqlerr();$num = mysql_num_rows($res);begin_table();print("<tr><td class=ttable_head align=left>" . USERNAME . "</td><td class=ttable_head>" . REGISTERED . "</td><td class=ttable_head>" . LAST_ACCESS . "</td><td class=ttable_head>" . RANK . "</td><td class=ttable_head>Ratio</td><td class=ttable_head>" . COUNTRY . "</td></tr>\n");for ($i = 0; $i < $num; ++$i){  $arr = mysql_fetch_assoc($res);  if ($arr['country'] > 0)  {    $cres = mysql_query("SELECT name,flagpic FROM countries WHERE id=$arr[country]");    if (mysql_num_rows($cres) == 1)    {      $carr = mysql_fetch_assoc($cres);      $country = "<td align=\"center\" class=ttable_col1 style='padding: 0px' align='center'><img src=". $SITEURL ."/images/flag/$carr[flagpic] alt='$carr[name]' /></td>\n";    }  }  else    $country = "<td align=\"center\"  class=ttable_col1 style='padding: 0px' align='center'><img src=". $SITEURL ."/images/flag/unknown.gif alt=Unknown /></td>\n";  if ($arr['added'] == '0000-00-00 00:00:00')    $arr['added'] = '-';  if ($arr['last_access'] == '0000-00-00 00:00:00')    $arr['last_access'] = '-';$res2 = mysql_query("SELECT downloaded,uploaded FROM users");   $arr2 = mysql_fetch_assoc($res2);   if ($arr["downloaded"] > 0)   {     $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);     $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";   }   else     if ($arr["uploaded"] > 0)       $ratio = "Inf.";     else       $ratio = "---";       print("<tr><td class=ttable_col1 align=left><a href=account-details.php?id=$arr[id]>" .($arr["class"] > 1 ? "" : "")."<b>$arr[username]</b></a>" .($arr["donated"] > 0 ? "<img src=$SITEURL/images/star.gif border=0 alt='Donated'>" : "")."</td>" . "<td align=\"center\" class=ttable_col2>$arr[added]</td><td align=\"center\" class=ttable_col1>$arr[last_access]</td>".   "<td class=ttable_col2 align=\"center\">" . get_user_class_name($arr["class"]) . "<td align=\"center\" class=ttable_col1>$ratio</td>" . "$country");} end_table();print("<p>$pagemenu<br />$browsemenu</p>");end_frame();stdfoot();die;?>   nightmare View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-8933", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Mar 5 2006, 09:12 PM Post #5 Advanced Member Group: Premium Posts: 1,138 Joined: 3-October 05 From: PT. Lisbon Member No.: 93 It's working fine in my site like i post it, members don't see the rstio but see flags, moderators see the ratio and the flags. --------------------   giugiu77 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-9728", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Mar 26 2006, 07:08 PM Post #6 Advanced Member Group: Premium Posts: 142 Joined: 19-January 06 From: PARIS Member No.: 1,340 QUOTE(nightmare @ Mar 5 2006, 09:12 PM)It's working fine in my site like i post it, members don't see the rstio but see flags, moderators see the ratio and the flags.You were right, NightmareYour hack works fineSorry   SssLukasSss View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-22971", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Feb 4 2007, 01:06 PM Post #7 Advanced Member Group: Premium Posts: 149 Joined: 26-January 07 From: Wilno - Litwa :) Member No.: 5,686 screenshot?   « Next Oldest · PREMIUM Hacks & Modifications · Next Newest »    Fast Reply    Enable email notification of replies |  Enable Smilies |  Enable Signature     Forum Home Search Help Main   |-- Site News Updates and Rules   |-- General Chat   |-- Your Tracker TorrentTrader   |-- Technical Support   |-- Mod Requests   |-- Hacks And Modifications   |-- Themes & Styles   |-- TT4XBT VBTT   |-- VBTT Version 1.x   |---- Releases   |---- Support   |---- Mods   |-- VBTT Version 2.x   |---- Releases   |---- Support   |---- Mods   |-- VBTT Version 3.x   |---- Releases   |---- Support   |---- Mods TorrentTrader PREMIUM   |-- PREMIUM Support   |-- PREMIUM Hacks & Modifications   |-- PREMIUM BETA Source Codes   |-- PREMIUM Themes   Display Mode: Standard · Switch to: Linear+ · Switch to: Outline Track this topic · Email this topic · Print this topic · Subscribe to this forum // IPB 2.2.0 Default English Lo-Fi Version Time is now: 22nd August 2007 - 01:20 PM // Powered By IP.Board 2.3.1 © 2007  IPS, Inc. Licensed to: TorrentTrader.org

Wyszukiwarka