Post by Chris on Apr 4, 2008 20:52:04 GMT -8
Please read the entire thread.
To start things off, this code was a pain to get working, but was worth it. I hope you guys enjoy it.
Prerequisites
Before attempting to use this code, read over this list and make sure all is as follows:
1. You should be familiar with the ProBoards admin panel. This add-on functions directly via the admin panel and may cause issues for beginners.
2. You must have "Display # of Sub-Boards" set to "Yes" in the General Settings section of your admin panel.
3. This code is NOT Opera compatible.
Once you meet those two prerequisites, we'll begin the installation process.
A Note Before Continuing
This code works completely on a workaround method. It creates a separate category for the sub-sub-boards, places the sub-sub-boards in the category, and then will properly place them under their correct parent board when necessary. This code uses persistent storage to hold onto the data between page loads. Thus, a sub-board is only as accurate as the last time a user visited the main page. This is not a bug. Also, because of this workaround method, there is a separate admin section that is used to manage the sub-sub-boards, so please use it.
Another note: THIS CODE WILL NOT RUN WITH ADVANCED MODERATION ENABLED IN INTERNET EXPLORER. Why? Because IE is crap. It's either this or you get an "operation aborted" error in IE and the page won't load. Just disable Advanced Moderation Mode when you are done using the code and the sub-sub-boards will start appearing again. It's as simple as that. I'm still attempting to find a work around... but that's not going too well.
Installation
The installation is fairly simple. You'll begin by just putting the code in your global footers and then save them. On the admin page, you'll now see a "Install Sub-Sub-Boards" links under the "Boards" section. Click this. Follow the instructions in the table at the top very carefully. Once that's done, click "Create Category" and move onto installation step 2 by clicking the link in the confirmation box. If you accidentally miss getting to step 2, click the "Install Sub-Sub-Boards" link again in the "Boards" section. It'll let you skip directly to step 2. Follow step 2's instructions and you're set.
The Code
That is the actual code. You should put it in your Global Footers. It MUST be ABOVE your forum resize code. In fact, top of your global footers is the optimal place for this code.
Uninstalling
To uninstall this code, just remove the code from your global footers. You'll then have direct access to the category that holds the sub-sub-boards. You can move them, modify them, etc. as necessary to organize your forum. Uninstalling will NOT delete anything from your forum.
Support/Feature Requests/Bug Reports
If you need support for this code, please post in the code support boards. If you have an idea for the code, feel free to PM me or post it here. If you believe you have found a bug, please post in the code support board. I'll deal with it as I find time. Hopefully all bugs were rooted out during the beta testing.
Credits
Big thanks to all those who helped beta test the code. And a big thanks to Eric for helping by creating the PB_Date() function which obtained the time stamp for the time. It made life 100 times easier.
To start things off, this code was a pain to get working, but was worth it. I hope you guys enjoy it.
Prerequisites
Before attempting to use this code, read over this list and make sure all is as follows:
1. You should be familiar with the ProBoards admin panel. This add-on functions directly via the admin panel and may cause issues for beginners.
2. You must have "Display # of Sub-Boards" set to "Yes" in the General Settings section of your admin panel.
3. This code is NOT Opera compatible.
Once you meet those two prerequisites, we'll begin the installation process.
A Note Before Continuing
This code works completely on a workaround method. It creates a separate category for the sub-sub-boards, places the sub-sub-boards in the category, and then will properly place them under their correct parent board when necessary. This code uses persistent storage to hold onto the data between page loads. Thus, a sub-board is only as accurate as the last time a user visited the main page. This is not a bug. Also, because of this workaround method, there is a separate admin section that is used to manage the sub-sub-boards, so please use it.
Another note: THIS CODE WILL NOT RUN WITH ADVANCED MODERATION ENABLED IN INTERNET EXPLORER. Why? Because IE is crap. It's either this or you get an "operation aborted" error in IE and the page won't load. Just disable Advanced Moderation Mode when you are done using the code and the sub-sub-boards will start appearing again. It's as simple as that. I'm still attempting to find a work around... but that's not going too well.
Installation
The installation is fairly simple. You'll begin by just putting the code in your global footers and then save them. On the admin page, you'll now see a "Install Sub-Sub-Boards" links under the "Boards" section. Click this. Follow the instructions in the table at the top very carefully. Once that's done, click "Create Category" and move onto installation step 2 by clicking the link in the confirmation box. If you accidentally miss getting to step 2, click the "Install Sub-Sub-Boards" link again in the "Boards" section. It'll let you skip directly to step 2. Follow step 2's instructions and you're set.
The Code
<script type="text/Javascript">
// Sub-Sub-Boards v1 by Chris of Studio Zero (http://studiozero.proboards44.com)
// Do not redistribute without permission of the creator
// Don't edit unless instructed to.
var ssb = {
cid: "subsubboardscatid",
installed: false,
on: "images.proboards.com/on.gif",
off: "images.proboards.com/off.gif",
version: "1.0.0"
};
document.write("<script type='text/Javascript' src='http://iycatacombs.com/codes/subsubv1/globalfooters.js'><\/script>");
</script>
That is the actual code. You should put it in your Global Footers. It MUST be ABOVE your forum resize code. In fact, top of your global footers is the optimal place for this code.
Uninstalling
To uninstall this code, just remove the code from your global footers. You'll then have direct access to the category that holds the sub-sub-boards. You can move them, modify them, etc. as necessary to organize your forum. Uninstalling will NOT delete anything from your forum.
Support/Feature Requests/Bug Reports
If you need support for this code, please post in the code support boards. If you have an idea for the code, feel free to PM me or post it here. If you believe you have found a bug, please post in the code support board. I'll deal with it as I find time. Hopefully all bugs were rooted out during the beta testing.
Credits
Big thanks to all those who helped beta test the code. And a big thanks to Eric for helping by creating the PB_Date() function which obtained the time stamp for the time. It made life 100 times easier.