I am desperately trying to find a way to make certain boards posts not show up in the list when members click on "Show unread posts since last visit." I found a mod that was for 1.1 and i see one for 2 but I see nothing for 1.1.8
This is a major problem for my site. I like to welcome our new members but I really dont want all the welcomes in the show unread posts since last visit list as it distracts and burries the posts that our members signed up to read. However I dont want to remove the welcome posts as I like the warmth it ads to our sites atmosphere.
Please help me with this.
Going on a month now and no one can help me out with this?
Please. I need to accomplish this. It is very important that I can achieve this for my forums.
Someone please help me out.
Thank you
basically what I am looking for is this mod: http://custom.simplemachines.org/mods/index.php?mod=1338
BUT I need it for 1.1.8
I can NOT update to 2.x so that is not a solution.
Please help.
Quote from: Sarge on March 27, 2009, 06:42:20 PM
Quote from: Harvester on March 04, 2009, 08:13:26 PM
I found a mod that was for 1.1
Which mod was that?
TBH its been so long that I dont remember. I cant find one for 1.1 now.
Would you like Ignore_board_in_new_posts (http://custom.simplemachines.org/mods/index.php?mod=1338) by Deprecated for version 1.1.8?
Try this. In default/languages/ModSettings.english.php or default/languages/Modifications.english.php, add at the bottom.
$txt['ignore_board_in_new_posts'] = 'Ignore board in new posts';
Sources/ModSettings.php, find
array('check', 'enableReportPM'),
array('check', 'enableReportPM'),
'',
// Ignore board in new posts
array('text', 'ignore_board_in_new_posts', '6'),
'',
Sources/Recent.php
AND b.ID_BOARD != " . (int) $modSettings['recycle_board'] : ''), __FILE__, __LINE__);
AND b.ID_BOARD != " . (int) $modSettings['recycle_board'] : '') . (!empty($modSettings['ignore_board_in_new_posts']) && $modSettings['ignore_board_in_new_posts'] > 0 ? "
AND b.ID_BOARD != " . (int) $modSettings['ignore_board_in_new_posts'] : ''), __FILE__, __LINE__);
You can then add the board id in Admin -> Features and Options "Ignore board in new posts".
this is exactly what I would like to do! YAYE! :D
I am going to go stick the code in now. I will let you know how I do :D
Thank you so much!
Looks like it works :D Thank you! :D
Only thing... only the first board gets ignored.
I mean if I put more than one board in the box in admin panel, like this:
17,176,202,146 no spaces
or this
17, 176, 202, 146 with spaces
only board 17 gets ignored.
the rest dont.
If I swap it around and put 146 up front.. only it gets ignored.
board 17 is the one that drove to find a mod like this but if possible it would be cool if I could ignore multiple boards.
That mod is for only 1 board.
I haven't tested this, but for multiple boards you can try the following instead:
In default/languages/ModSettings.english.php or default/languages/Modifications.english.php, add at the bottom:
$txt['ignore_boards_in_new_posts'] = 'Ignore boards in new posts';
In Sources/ModSettings.php, find:
array('check', 'enableReportPM'),
and replace it with:
array('check', 'enableReportPM'),
'',
// Ignore board in new posts
array('text', 'ignore_boards_in_new_posts', '6'),
'',
(The number 6 in the code above is the box length; if it's too small for you, replace it with 10 or 12.)
Now, in Sources/Recent.php, find:
AND b.ID_BOARD != " . (int) $modSettings['recycle_board'] : ''), __FILE__, __LINE__);
and replace it with:
AND b.ID_BOARD != " . (int) $modSettings['recycle_board'] : '') . (!empty($modSettings['ignore_boards_in_new_posts']) && $modSettings['ignore_boards_in_new_posts'] > 0 ? '
AND NOT FIND_IN_SET(b.ID_BOARD, "' . $modSettings['ignore_boards_in_new_posts'] . '")' : ''), __FILE__, __LINE__);
In the SMF Admin area, enter the board IDs by separating with commas (and no spaces!).
Again, I haven't tested this, so backup your forum files and database before trying!
Let us know how it goes. :)
Awesome! Thank you Sarge! I see why you are an SMF Hero! :D
Hmm, this does not seem to be working for me... Are the posts not supposed to show up here?
http://www.simplemachines.org/community/index.php?action=recent
Or on the forum homepage? For me they are still showing up. >:(
If not, can someone help me accomplish THAT?
THANKS!
If I can get this to work, it will be a HUGE bonus! ;)
[edit] I tested it and see it only works on the Show unread posts since my last visit feature... (as described!) Can someone help me use the same modsetting modification to not show these boards in the recent posts?
[edit edit!] Would there be anyway to do this for boards within a category? I have quite a few boards in a certain category, that I do not want to appear in ANY of the recent posts results..... THANKS! 8)