a true multiple category MOD (to replace the current limit of 2 addtional categories), could either be real easy or impossible. At least impossible the way I did it.
I created a multiple category MOD for the free version of INDEXU 5 years ago next month (May 2003). By the end of the year, I had created a multiple category MOD for v3.2 and included it in my v3.2E enhanced version which many folks used.
Over 4 years ago I created a simple clone of INDEXU 5 called links_coder. For the most part, it does what I need: banners, multiple categories and search engine friendly urls in addtion to the standard, new, hot, editor picks, etc.
I say all that to say that the multiple categories MOD actually turned out to be pretty easy. The hard part was the SQL statement.
Here is the actual code from my browse.php page.
I did say easy or impossible. Here is the same SQL statement from v5.4.Code:$query="SELECT link_id, category_id, url, title, description, date, hits, url_name, thumb, pick, new FROM idx_link LEFT JOIN idx_mcats ON link_id = mlink_id WHERE category_id=$cat_id or mcat_id=$cat_id ORDER BY $order_by";
This is an hardcoded version (notice the idx_link.link_id <> '5' toward the end)Code:select idx_link.*, if (isnull(premium) || expire < now() || paid != 1, 0, premium) premium from idx_link left join idx_paid_listing on (idx_link.link_id = idx_paid_listing.link_id) left join idx_pagerank on (idx_link.link_id = idx_pagerank.link_id) where (category_id = '1' or cat1 = '1' or cat2 = '1') and suspended = 0 and idx_link.link_id <> '5' order by premium desc, bid desc
I can do simple SQL statements and some not-so-simple statements. But the statement above already has a left join and adding another may be impossible or easy for someone who is a SQL expert.
So here is the deal. If you know someone who can incorporate the gist of my statement into the INDEXU statement, I'm willing to see if I can make a true multiple category MOD for INDEXU DELUXE v6.
.




Like I said, it was a very complex SQL statement to begin with.
I can see ESM winning the Mod of the Month contest!!! 