Start ::
Extensions and Distributions Support ::
Modules ::
EZComments in Top List
Moderated by: Support Team
-
- rank:
-
Helper
- registered:
- September 2004
- Status:
- offline
- last visit:
- 30.06.08
- Posts:
- 110
I was wondering, is it very difficult to add the "most comented stories" in Top List if you use EZComments?
I haven't seen any implementation of it yet, but it is probably not that hard to accomplish...
Anybody already has this? -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
The top list module is currently hard-coded to look at certain tables. So it would require adding a section of code to the module for EZComments. I've not done it and, at the moment, have no time to look at this code..... But it shouldn't be *that* difficult....
-Mark -
- rank:
-
Helper
- registered:
- September 2004
- Status:
- offline
- last visit:
- 30.06.08
- Posts:
- 110
I see, in the modules/Top_List/index.php file I found:
I guess it's just a matter to adjust for EZComments fields. Mmmm :D -
- rank:
-
Helper
- registered:
- September 2004
- Status:
- offline
- last visit:
- 30.06.08
- Posts:
- 110
This is my first try; of course, it does not work (Don't even try!) But I hope I can find the errors and fix it:
If anybody has suggestions, they will be greatly appreciated, since my knowledge of PostNuke is really low :( -
- rank:
-
Professional
- registered:
- January 2004
- Status:
- offline
- last visit:
- 05.08.08
- Posts:
- 632
first thing evident reading your code is that you need to add:
But this line should be before calling pnDBGetTables(); or it will not works.
Also in your SQL query you should test no only that that $column[sid] = $column1[objectid] but also that the ezcomment item is for the News module.
maybe there are other problems, you will need some testing.
-----
Visit my live reef aquarium.
My Amazon wish list.
Start ::
Extensions and Distributions Support ::
Modules ::
EZComments in Top List
