Hiding posts from recent posts - Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2975)
Taken over by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/) from: Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111)
For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).
This modification allows the categories, boards and topics of your choices to be removed from the recent post lists.
Just go to
Administration Center > Modification Settings > Recent Posts Setting
and put the ids of categories, boards and topics you want to remove from recent posts list.
For example if you want to remove category 1 and 2 from the list, just put the category ids like
1,2 (just have a comma in between and don't leave any space).
Same goes for boards and topics also.
Update -
1. You can also hide the topics by clicking "Hide" button within the topics. One can unhide/undo the topic using the same button.
2. You can set permission for each member group who can access the hide button in topics. To adjust the permission go to permission section in admin panel and set the permission for each group separately.
- Note: This mod only hides the items in the recent post listing that is shown on the board index.
Change Log
Version 1.3
- Implemented permission on hide button as per suggestion over here (http://www.simplemachines.org/community/index.php?topic=434749.msg3443590#msg3443590).
Version 1.2
- Minor fixes
- Added a feature described here (http://www.simplemachines.org/community/index.php?topic=434749.msg3422492#msg3422492)
- Change in license of mod
Version 1.1
- Mod updated for SMF 2.0 final
- License added to the mod
License
* This SMF Modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/License
Nice Mod, i want this for 1.1.15 :) Thank you
Quote from: kichu on December 15, 2011, 08:15:45 AM
Nice Mod, i want this for 1.1.15 :) Thank you
Sorry, I'm not back-porting any of my mods to SMF 1.x as a stable version of SMF 2.0 is already released :).
Pls help, i can't install in SMF 2.0.2 :(
Quote from: lttung on April 08, 2012, 03:00:42 PM
Pls help, i can't install in SMF 2.0.2 :(
And the issue is?
Can't find and replace in Subs-Recent.php:
AND b.id_board != {int:recycle_board}' : '') . '
and can't find and insert:
'recycle_board' => $modSettings['recycle_board'],
Can you attach the file here
Source/Subs-Recent.php
Quote from: Joker™ on April 10, 2012, 10:30:58 PM
Can you attach the file here
Source/Subs-Recent.php
Yes, pls see attach file
Problem is the SSI script bypasses many of these mods for hiding posts - including this one I think...(?) when I tested it.
site.com/SSI.php?ssi_function=boardNews reveals all unless access to it is denied.
QuoteBut this mod only hide posts from a very specific area. Mod description never said that posts are going to be hidden from everywhere.
... yes ok, fair enough.
Quote from: lttung on April 11, 2012, 10:14:17 AM
Quote from: Joker™ on April 10, 2012, 10:30:58 PM
Can you attach the file here
Source/Subs-Recent.php
Yes, pls see attach file
File looks strange to me. What mods you have installed on the forum?
Quote from: igirisjin on April 11, 2012, 10:23:11 AM
Problem is the SSI script bypasses many of these mods for hiding posts - including this one I think...(?) when I tested it.
site.com/SSI.php?ssi_function=boardNews reveals all unless access to it is denied.
But this mod only hide posts from a very specific area. Mod description never said that posts are going to be hidden from everywhere.
QuoteFile looks strange to me. What mods you have installed on the forum?
So many mod, but have two mod related:
30. Recent Topics On Board Index 1.03
31. Move recent to the top 2.7
Quote from: lttung on April 11, 2012, 11:08:21 PM
Recent Topics On Board Index
This mod got into conflict with above quoted mod. Umm, I'll be working on this by weekend only.
Thanks and waiting...
Quote from: lttung on April 13, 2012, 05:24:15 AM
Thanks and waiting...
Please use the attached package.
Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "
Recent Topics On Board Index 1.03" first and then "
Hiding posts from recent posts"
Quote from: Joker™ on April 15, 2012, 09:55:39 AM
Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Thank so much. Work great for me.
Other question: How to know topic ID after install Pretty URLs mod ?
Quote from: lttung on April 17, 2012, 12:02:55 AM
Other question: How to know topic ID after install Pretty URLs mod ?
Its a long time since I even looked at that mod. Have you faced any issue while using this mod with pretty url?
Quote from: lttung on April 17, 2012, 12:02:55 AM
Other question: How to know topic ID after install Pretty URLs mod ?
Wow your post gave me some nice idea.
Working on next upgrade of mod which is going to have a hide button with every post and board, so that you dont have to fill in the id's manually.
Stay tuned and happy coding :D.
Ver 1.2 not work in my forum
Error: can't find
Quote'recycle_board' => $modSettings['recycle_board'],
AND b.id_board != {int:recycle_board}' : '') . '
to insert and replace in Sub-recent.php
P/s: I found nd replace in Recent.php, but not work
Quote from: lttung on November 22, 2012, 07:07:50 AM
Ver 1.2 not work in my forum
Error: can't find
Quote'recycle_board' => $modSettings['recycle_board'],
AND b.id_board != {int:recycle_board}' : '') . '
to insert and replace in Sub-recent.php
P/s: I found nd replace in Recent.php, but not work
Hi,
A little more information would be much helpful.
- Version of SMF you are using
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?
- What other mods do you have installed
- Do you have a recycle bin board?
- Version of SMF you are using: 2.0.2
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?: I can insert manualy and click button, but topic not HIDE in recent
- What other mods do you have installed: Yes, i think conflict with Recent Topics On Board Index 1.03
- Do you have a recycle bin board? : Yes
I attachments Sub-recent.php
Quote from: lttung on November 22, 2012, 12:52:46 PM
- Version of SMF you are using: 2.0.2
- Error came while inserting the id manually or while clicking the 'Hide topic' button within the topics?: I can insert manualy and click button, but topic not HIDE in recent
- What other mods do you have installed: Yes, i think conflict with Recent Topics On Board Index 1.03
- Do you have a recycle bin board? : Yes
I attachments Sub-recent.php
The file you have doesn't event contain any reference of 'recycle_board'. Can you post the complete error over here
When setup ver 1.2:
Can't find in Subs-recent.php:
AND b.id_board != {int:recycle_board}' : '') . '
and
'recycle_board' => $modSettings['recycle_board'],
(But i can found in Recent.php)
after setup, i set board or topic hide, but not hide
Quote from: Joker™ on April 15, 2012, 09:55:39 AM
Quote from: lttung on April 13, 2012, 05:24:15 AM
Thanks and waiting...
Please use the attached package.
Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
I back this version, board hide, but topic not hide
Try the attached mod.
Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "Recent Topics On Board Index 1.03" first and then "Hiding posts from recent posts"
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.
Just an idea for you, perhaps you could have an option, maybe with a tabbed view in Info Center (so as to save space), of assigning boards to different groups of recent posts/topics. For example, one group could be about serious issues the forum deals with, and the other about off-topic discussion, so that people can easily focus on the most important stuff.
I would say that this should be an admin option.
Quote from: spiros on December 10, 2012, 03:50:38 PM
Just an idea for you, perhaps you could have an option, maybe with a tabbed view in Info Center (so as to save space), of assigning boards to different groups of recent posts/topics. For example, one group could be about serious issues the forum deals with, and the other about off-topic discussion, so that people can easily focus on the most important stuff.
I would say that this should be an admin option.
Umm I understood a partial bit of your idea, i.e tabbed view in info center. After that it went a bit above my head. Can you explain it in a bit more detailed manner :P.
Just imagine there are two info centers. 1st one showing topics/posts from x categories/boards and 2nd one topics/posts from y categories/boards.
Now, instead of having two boxes one below each other, you could have 2 (or more) tabs, so when clicking one sees the posts of the different set of categories/boards.
Is this clear enough?
For a tabbed implementation, see for example:
http://www.dpgr.gr/forum/index.php (Info center on top)
Quote from: spiros on December 11, 2012, 03:36:07 AM
Just imagine there are two info centers. 1st one showing topics/posts from x categories/boards and 2nd one topics/posts from y categories/boards.
Now, instead of having two boxes one below each other, you could have 2 (or more) tabs, so when clicking one sees the posts of the different set of categories/boards.
Is this clear enough?
For a tabbed implementation, see for example:
http://www.dpgr.gr/forum/index.php (Info center on top)
What if a user have 20 odd categories. Take SMF for example.
Each group (tab) can/should be assignable to multiple categories. This is standard functionality in SSI for example.
Quote from: spiros on December 11, 2012, 07:10:45 AM
Each group (tab) can/should be assignable to multiple categories. This is standard functionality in SSI for example.
Well, if thats the case, then one should worry about the query rate.
Well, you will not have 10 groups. Anyway, that is the way it is done in the link I gave you.
Quote from: spiros on December 12, 2012, 01:48:22 PM
Well, you will not have 10 groups. Anyway, that is the way it is done in the link I gave you.
Ok. I'll try to see what I can do. TBH, it seems more like a separate mod to me.
Yes, it is an idea for a different mod.
I have so many error in error log
http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic
"can't read main interface"
May be because this mod ?
Quote from: lttung on January 20, 2013, 02:16:36 PM
I have so many error in error log
http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic
"can't read main interface"
May be because this mod ?
Please post the complete error from error log.
Quote from: Joker™ on January 20, 2013, 10:50:48 PM
Quote from: lttung on January 20, 2013, 02:16:36 PM
I have so many error in error log
http://xxxxxxx.com/yyyyy&action=hidetopic;hide_topic
"can't read main interface"
May be because this mod ?
Please post the complete error from error log.
pls see capture screen
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg41.imageshack.us%2Fimg41%2F5605%2Ffullscreencapture121201.jpg&hash=7b81a743ca73c0e31d3d43a9c693d14548594d32)
Please share the pretty URL settings you are using, i.e the settings you have made in admin about what sort of url should be re-written by pretty url.
Quote from: Joker™ on November 26, 2012, 02:29:06 PM
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.
Any update on this? At the moment even guests can hide topics!!
Quote from: swordsman1 on May 11, 2013, 03:03:29 PM
Quote from: Joker™ on November 26, 2012, 02:29:06 PM
Quote from: lttung on November 26, 2012, 02:00:55 AM
Thanks, worked with my forum. But any body can hide any topic.
I only want Admin can hide topic in recent, how to ?
I'll try to roll out a new version asap covering the issue.
Any update on this? At the moment even guests can hide topics!!
Not sure how I missed this major update. Working on this right away, will be updated in a day or two :).
Mod updated. Please try out the new version.
Thanks. Any chance of a version compatible with the "Recent Topics On Board Index 1.03" mod as before?
Quote from: swordsman1 on May 14, 2013, 07:34:22 AM
Thanks. Any chance of a version compatible with the "Recent Topics On Board Index 1.03" mod as before?
Please use the attached package.
Note - This package is only for those users who want to use this mod with Recent Topics On Board Index 1.03 (http://custom.simplemachines.org/mods/index.php?mod=1314). Install "
Recent Topics On Board Index 1.03" first and then "
Hiding posts from recent posts"
Very very thanks Joker for the last file in your message. I want to use thiş mod but I coudn't install perfect because by Recent Topics On Board Index
Nice one Joker. Works great.
Hi Joker,
Any chance to do this on SMF 1?
I need this mod on SMF 1.1.18
Hi Pedram,
Sorry, I'm not back porting any of my mods to SMF 1.x branch, as SMF has already released a stable version of SMF 2x.
Ok right, no problem , thanks Joker.
Apparently it doesn't work properly anymore with 2.0.8
1) If I choose to hide one board specifically - it only hides its content from "recent posts" list on forum home, it doesn't hide it when clicked on "view the most recent posts on the forum".
2) If I choose to hide one topic - it hides it. But if I choose more of them - it hides nothing.
I'm trying to hide just 1 category and it isn't doing anything.....using smf2.0.8 with dream portal 1.1
Quote from: cortez on August 03, 2014, 05:53:28 PM
Apparently it doesn't work properly anymore with 2.0.8
1) If I choose to hide one board specifically - it only hides its content from "recent posts" list on forum home, it doesn't hide it when clicked on "view the most recent posts on the forum".
2) If I choose to hide one topic - it hides it. But if I choose more of them - it hides nothing.
Quote from: Oscworth on August 29, 2014, 01:23:16 PM
I'm trying to hide just 1 category and it isn't doing anything.....using smf2.0.8 with dream portal 1.1
- Note: This mod only hides the items in the recent post listing that is shown on the board index.
Hiya all.
I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod.
This is one is a very nice mod.
Thank you for supporting this mod and do feel free to ask for support.
Hello any idea how to make this mod with with this other recent post mod?
This mod works fine for me on SMF 2.1 RC2 :)