WHERE b.ID_CAT = thecategorynumberyouwrotedown AND t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($int_num_topics, 5)) . "
b) If you want to show post of a specific board, donīt do the former modification. Just look for the ID_BOARD value in the [smfprefix]_boards and write it down.
- backup any file you are about to modify before doing so
-In mod_smf_recenttopics(i tested it on 2.0) where it says:
WHERE b.ID_BOARD = theboardnumberyouwrotedown AND t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($int_num_topics, 5)) . "
I find this can be specially helpful if you are running a bilingual site and have a separate forum category for each language. Then, you can guess what else you have to do to display the latest topics in the forum in the language chosen by the user
Note to Wolverine: It would be very cool to be able to have this as 2 parameters in the moduleīs backend
I think that showing posts from an specific category works, but not exluding one of them. At least, from my poor knowledge, both codes are identical. Please, I'm interested A LOT in excluding a category, help me^^ Thanks in advance!
I think that showing posts from an specific category works, but not exluding one of them. At least, from my poor knowledge, both codes are identical. Please, I'm interested A LOT in excluding a category, help me^^ Thanks in advance!
eNoyx: To exclude specifica boards, at the start of mod_smf_recenttopics.php look for this line:
Code:
$exclude_boards = array();
If you would want to esclude boards 3, 7 and 9 for example, you should change that to:
Oeps sorry for got to mention I mean the above solution. I want to exclude some board in the recent topics. So that the post that in that board are not shown in the module.
I changed this but it seems not to exclude these boards $exclude_boards = array(3,7,9);
Yes I used my own board numbers
About your question Wolverine has answered that question all ready
I just tried it again and it works for me. The topics that are shown in the module, stop showing when i include the board they belong to in that array.
I asume that you didnīt add that line yourself. If you had to, it means that you are using a different version of the module.
Also, in my module i have modified the sql query to query the topics from category 1 or category 2, depending on the Joomla Language selected with Joomfish. I am not sure if this could be affecting the behaviour of that exclude array.
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use