PDA

View Full Version : Problem with "Latest Topics from specific forum" module


Bergman
11-15-2004, 03:37 PM
Hi everyone,

i have successfully applied the following module/hack http://www.vbadvanced.com/forum/showthread.php?t=831

But i get soe strange errors when i try to add some more modules to view other forums ...

In the firs module i have put this WHERE open <> '10' AND thread.visible = 1 AND thread.forumid IN(4,5,6,32) $notdeleted

and in the second module i have put this WHERE open <> '10' AND thread.visible = 1 AND thread.forumid IN(17) $notdeleted

The problem is that module #2 is showing the posts from module #1. Anyone who can help me out so i can have separate modules for different forum categories ?

Bergman
11-15-2004, 03:53 PM
Sorry, found the answer ...

"Originally Posted by Brian
As for the threads being displayed twice, try opening your forum/modules/latesttopics.php file & the new file you created and look for:

unset($thread, $foruminfo['allowratings']);

Replace that with:

unset($thread, $threadbits, $foruminfo['allowratings']);

And it should fix the problem."