Sorry to bring up an old topic, but I was just thinking, do any of you know of an easy way perhaps instead of hardcoding this into the theme .php to just make a link or button maybe at the bottom of the forums that would say Hide Left blocks.
This way the forum would default with the forum being shown as a part of Nuke but if the user chose to they could show the forum full screen?
Perhaps just have it do an insert into the user table into a new field called $forum_full and then use that snippet of code I was mulling over before:
Code:
if ($name=='Forums') and ($forum_full=='1') {
/* Don't display it. */
}
else {
blocks(left);
}
Would this work? Also would need help on what the best way would be to code the php to insert the data into the table. Also guess it would be more complicated because the button should say Hide Left blocks when the users $forum_full = 0 and pressing it would insert a value of 1, but then the button should change to read "show Left Blocks" if the users $forum_full = 1 amd pressing it at that point would change the value back to 0.
Could any of you code junkies make this magic happen?