Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 incorrect colspan issue
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HeLD
Starting Member

Switzerland
14 Posts

Posted - 21 December 2000 :  05:36:03  Show Profile  Visit HeLD's Homepage
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  Show Profile  Visit HuwR's Homepage
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>
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07