MyBB Community Forums
$Colspan problems - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.4 (https://community.mybb.com/forum-80.html)
+------ Forum: MyBB 1.4 General Support (https://community.mybb.com/forum-81.html)
+------ Thread: $Colspan problems (/thread-37123.html)



$Colspan problems - Ultron - 2008-09-02

I've got $colspan problems. It seem the number of columns is being calculated appropriately. So it leaves one or two columns not done in some rows. It this particular theme, they remain in dark blue at the end. I've copied the result HTML to Dreamweaver, and what seems is that the $colspan ends up being 8 when it should be 9, or somesuch, thus it doesn't cover the whole table.

Url: www.thecomicszone.com

A couple of pages displaying the problem:

http://www.thecomicszone.com/news-f-2.html

In the separator row.

http://www.thecomicszone.com/general-f-24.html

In the separator and footer rows.

Thanks in advance!


RE: $Colspan problems - Yumi - 2008-09-02

If you need to change the numbers in $colspan, you can do so by editing forumdisplay.php. You should find 3 lines regarding $colspan:
$colspan = "7";
$colspan = "6";
++$colspan;
The first line is the number of columns when thread ratings are enabled, the second is when they're disabled. The 3rd line just means to add 1 to the number of columns if the user is a moderator (to show the inline moderator checkboxes).


RE: $Colspan problems - Ultron - 2008-09-02

Thanks a bunch, added one to the default values and it's fixed.