Now, I have a 8x8 grid.
How do I assign an unique id to each of the squares? What formula to use?
*I need a formula that can return a unit number of each squares which is less than 8191.
This will go from 0 to 65 which is the best you can do.
So the location (3,7) would be
(3 - 1) + 8 * (7 - 1) = 50.
edit: If you increase your grid to let's say 30 colums and rows then your formula will be
(x - 1) + 30 * (y - 1)
and the maximum number you will then get is 30*30 - 1 = 899
Well, given the requirements, using 10 instead of 8 has the advantage of the "index" being readable.
If you see 42 for example, you know it comes from 4 and 2,
whereas with x * 8 + y... you need to think about it first
I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"