I've seen several requests to run multiple instances of the core Reviews module. I understand that several people are working on different reviews modules that will be much more functional than
this minor hack but if anyone has a pressing need in the meantime to run multiple instances of Reviews feel free to use this.
I'm not providing any support on this; I am not the author of the module, all credit goes to the original author and the core dev team, this hack is simply the result of copying, pasting, searching and replacing stuff that they wrote.
After sending the user this solution, he then asked about the possiblity of running a third instance of the Reviews module and here's the email I sent him with the instructions:
To hack your reviews module so that you can run more than one reviews section on your site, follow the following steps (In this case, we will assume that we are going to call this third module 'teviews' and we will work with the
Seviews files that I sent you):
1) Make a copy of your
Seviews
2) paste it somewhere else and change the name of the directory to 'Teviews'
3) open up the
SQL file that I sent you and do a search and replace. Replace every instance of "Seviews" with "Teviews" and every instance of "seviews" with "teviews" (case sensitive). save the new
SQL file.
4) open up each of the admin.php, index.php, and version.php files in your Teviews directory and do the same case sensitive find and replace. Save each of the files.
5) Open up the global.php file located in the Teviews/lang/eng directory. Replace every instance of "SEVIEW" with "TEVIEW" (case sensitive, again-This should change only the defines themselves and should keep the English definition looking normal,
e.g., your visitors to your site won't see, "Click here to write a Teview") Save the file.
6) Open up the pntables.php. Copy lines 518 - 560 (you will see that that's the stuff that apppears in my between my comments - The first comment is "//This is the part I added for a second reviews section. djbt" Paste that section in notepad, or whatever you use for an editor. Replace all instances of "seviews" with "teviews" (This is all lower case so you don't have to do the case sensitive find and replace). Copy the results and paste them back into pntables.php (I would recommend adding your comments in there, just so you can find your sections if you ever upgrade your
PostNuke and need to add that stuff back in there.) Save the pntables.php file.
7) You're all done now, you can load up the
SQL file and your module and test it out. You can repeat this as many times as you want. Just call it something different each time, and don't name it the same as any other modules.
Good luck and happy reviewing!
-Raleigh, pnCorps[/b]