Author |
Topic  |
|
HeLD
Starting Member
Switzerland
14 Posts |
Posted - 21 December 2000 : 05:36:03
|
i'm currently rewritting the entire forum code. while doing so, i noticed your COLSPANs are often incorrect. noone will notice this using Internet Explorer... but if you use the forum with Netscape, you'll notice black (or whatever the bordercolor is set to) cells on the right hand, especially in admin/moderator mode.
so i suggest you'll have a closer look at it, its quite easy to fix. for my forum, i wrote a small function for the three main listing pages DEFAULT.ASP, FORUM.ASP and TOPIC.ASP (its in active & search too, but same code). the following is the code from DEFAULT.ASP, you might consider using it... or not. <img src=icon_smile_wink.gif border=0 align=middle>
thats the function: <pre id=code><font face=courier size=2 id=code> Function sGetColspan(lIN, lOUT) if (strShowModerators = "1") Then lOut = lOut + 1 If (mlev = "4" or mlev = "3") then lOut = lOut + 1 If lOut > lIn then sGetColspan = lIN Else sGetColspan = lOUT End If End Function </font id=code></pre id=code>
and thants an example of usage: <pre id=code><font face=courier size=2 id=code> <td class="forum-main-statistics" colspan="<%=sGetColspan(6, 4)%>">Please welcome our newest member: [...]</font id=code></pre id=code>
|
|
HuwR
Forum Admin
    
United Kingdom
20587 Posts |
Posted - 21 December 2000 : 07:33:40
|
Excellent idea. I had to changesome of mine, because my stats are in a seperate include, and it just wouldn't work without changing some. Your function sounds gret, I will stick it in my clean sr3 code and see how it does.
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
|
Topic  |
|
|
|