OK, here is my idea for multiple categories. I think this is a workable concept and was fairly easy to implement. While I struggled a little with the SQL statement, the code is actually pretty easy.
The primary purpose of the MOD is to show the INDEXU programmers that it is not all that hard to do. Having said that, they will need to deal with "removing" additional_cat1 and additional_cat1 from the code.
What it does: It allows the link owner to add an unlimited number Multiple Categories for one link. That is to say, the link can appear in many categories. The link owner can change which categories the link can appear in. or the link owner can remove all additional categories so that the link only appears in its main category.
Just a couple of things:
If you want to post anything to this thread, please post Click here to Discuss the Multiple Categories MOD.
- Please do not post to this thread
- Currently the MOD is only designed to work with v5.4
- Make sure you back up your files before installing
- Use at your own risk
- Do not consider this a completed MOD.
- I do not support this MOD
- If you use this MOD, you owe me $0.05 (a nickel)
I'm asking bruce to move any posts to this thread. In return, I'll edit this post and keep it current.
I make no guarentees about this MOD. There is lots of code for the INDEXU's official version of multiple categories. I have not looked at all of it to see if there is a conflict with this MOD. The MOD seems to work but you have been warned. I have ignored as much as I could the code for additional_cat1 and additional_cat1. If the MOD bombs after using it for some period of time, the only thing you are entitled to is a refund of what you paid for it.
There are things that probably need to but haven't benn don't yet. Primarily because I don't know what they are. I'll try to add them when I learn them. With "try" being the operative word. For example, there is no way for the admin to edit the idx_mcats file (this file holds the multiple categories for any link); you will need to use a SQL statement to edit the table or delete entries. The MOD does not currently allow for multiple categories during the add process.
Which brings me to support of this MOD. There is none. I'll try to help but don't count on it. I won't install it. If you can't get it to install, then ask someone else to help you.
If you use this MOD, you owe me a nickel which you can pay me the next time we meet.
Now for the general instruction for the MOD
- Run the query to create the idx_mcats table
- Install the new browse.php file or edit your existing browse.php file
- Add the BuildTreeRecMC and DisplayCategoryListBoxMC functions to the end of the category.class.php file.
- Add two lines to the Modify function in the link.class.php file
- Install the new modify.php file or edit your existing modify.php file
- Change the modify_form.html to replace the current multiple categories with the new one
.


